Author Topic: Advanced In-game Scripting  (Read 2993 times)

Nividia Stormlance

  • Hydlaa Resident
  • *
  • Posts: 79
  • Umm... Sure you want to hear about me?
    • View Profile
    • Disciples of Darkness
Advanced In-game Scripting
« on: April 25, 2006, 01:31:21 am »
I love programming.. :) love creating my own hotkeys in the game but... Need more commands! Dont know what language youre using, so cant say if thats easy to ad.

------------------------------------------------
First we need an If command and arrays example and a delay command

/cast summon missile
var1=2
/delaycode(3)
                               /if(var1=2)
{
/cast flame burst
var1=3
delaycode(3)
}
                              /if(var1=3)
{
/cast Grand Finale
}

--------------------------------------------------
And a reply command witch is running in the background!

                                                                /tellcommand <what the player tells you>=<what you tell him/what happends>

/tellwizardON
/tellcommand goodmorning=/tellback thanks
/tellcommand i hate you=/tellback I also hate you
/tellcommand may i join your guild=of course yust a second
if Payer a tells you:goodmorning

if player a tells you:I hate you

if player a tells you:may i join your guild
------------------------------------------------------
Dice game V1.00
/tellwizardON
/tellcommand ROLL=var1=1
if(var1=1)
{
/rolldice 1-6=var2
If(var2=1)
{
/tellback to bad try again!
]
if(var2=2)
{
/tellback to bad try getting a higher number
}
if(var2=3)
{
/tellback nice ill give you some gold
/giveback 10 trias
}
if(var2=4)
{
/tellback GREAT! ill give you a weapon
/giveback 1 anninhilators broad sword
}
if(var2=5)
{
/tellback Wohoo! Lucky one!
/giveback 5 diamond ores
}
if(var2=6)
{
/tellback Yipieeeeeee won the game
/giveback 1.000.000.000 trias
}
----------------------------------------------------------------
****update*****

AUTO mining
/dig gold
/delay(5)
/Runmad                                      -runs the script over and over again until a key is pressed
-------------------------------------
/freeze -freezes the game and your char totally so you can put your computer on standby without having to re enter planeshift
/away im AFK (away from keyboard)
----------------------------------------------------------
/Shop(5) im trading fish for mushrooms - writes the message in the auction room every in this example 5 minutes
/shopOFF - turns stopcommand off
------------------------------------------------------------

Ill ad some more soon!


New commands i used

/giveback <amount> <item/trias>

/tellback tells a message to the player who contacted you

/TellwizardON executes commands made with the /tellcommand

/tellcommand <input>=<output to player or variable>

/delaycode(6) this is a wonderfull command that pauses the code in this example for 3 seconds (cant be used to attack monsters)

/if command This is a vital command in all programming languages

/var1=1 stores 1 in var1 lets say if Var1 were a box we putted 1 inside the box

/Runmad  -runs the script over and over again until a key is pressed

/freeze -freezes the game and your char totally so you can put your computer on standby without having to re enter planeshift

/Shop(5) im trading fish for mushrooms - writes the message in the auction room every in this example 5 minutes
/shopOFF - turns stopcommand off


Released under the GNU-GpL licence  :P
« Last Edit: April 25, 2006, 01:45:34 am by Nividia Stormlance »
Leader in the disciples of darkness

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
Re: Advanced In-game Scripting
« Reply #1 on: April 25, 2006, 01:37:34 am »
God no.  NO, NO, NO.

You're supposed to play the game, not click a button and run a script.  We don't need macros.  Every moron will just set their character into auto-mode and go off somewhere else while they mine and get rich.  And we don't need players too lazy to talk.  It's just a bad idea.
« Last Edit: April 25, 2006, 01:40:53 am by DaveG »

::  PlaneShift Team Programmer  ::

Nividia Stormlance

  • Hydlaa Resident
  • *
  • Posts: 79
  • Umm... Sure you want to hear about me?
    • View Profile
    • Disciples of Darkness
Re: Advanced In-game Scripting
« Reply #2 on: April 25, 2006, 01:48:02 am »
All of them Cant be bad? the dice game wanst that great?
or the shop command?
and you cant get rich because cant mine same place in a row thingy thing and again you cant carry tons of gold. And again it could maybe help some people not getting hurt in their hand by clicking to much. And again why its almost the same you yust dont need to click yourself mad.
whats the problem about smart autoreplys i always say the same thing when someone says goodmorning to me or bye.
« Last Edit: April 25, 2006, 01:56:35 am by Nividia Stormlance »
Leader in the disciples of darkness

zanzibar

  • Forum Legend
  • *
  • Posts: 6523
    • View Profile
Re: Advanced In-game Scripting
« Reply #3 on: April 25, 2006, 02:05:38 am »
Someone actually wrote a massive multiplayer online game at one point which was in the direction you're heading.  Basically, you go online, start the game up, and the game plays itself.  It levels up, collects gold and experience, even duels other players.  All automatically.  You never have to actually do anything - you just let it run.  I forget the name of it, but it sounds like you might enjoy it.
Quote from: Raa
Immaturity is FTW.

Nividia Stormlance

  • Hydlaa Resident
  • *
  • Posts: 79
  • Umm... Sure you want to hear about me?
    • View Profile
    • Disciples of Darkness
Re: Advanced In-game Scripting
« Reply #4 on: April 25, 2006, 02:26:05 am »
Did you even red my next reply,,,, im trying to help not to be a PEST! Do you really have to use the power given to you in that way.. wake up..
Think it over again what can thoose commands do? What CANT they do!! Again the gold digging cant give you gold because you cant dig the same place 2 times in a row. And the shop command could be really great for adding extra npcs. Look at my dice suggestion is it that bad! And Zanzidude did you even red all i wrote beffore being so offensive. The only thing you are trying to do is make me feel stupid! Youre not a hero youre one of the bad guys. And the Spellcasting example is could yust be used by adding hotkeys to 1 and 2,3,4,5 and then pressing them. Theres almost no difference between that and running a script.

And i dont know why but... you really made me want to join the PL team...
« Last Edit: April 25, 2006, 02:29:19 am by Nividia Stormlance »
Leader in the disciples of darkness

DaveG

  • Forum Addict
  • *
  • Posts: 2058
    • View Profile
Re: Advanced In-game Scripting
« Reply #5 on: April 25, 2006, 02:39:56 am »
But you can stand in one spot and kill one monster for hours on end.  (and many do)  Being able to script this would open up tons of ways to be extremely lazy.  We would have people just finding a spawn and fighting it endlessly for days on end with a macro.  There's a very big difference between a player doing it and a script.

It'd also be such a complicated thing to write and get working. It's just not going to be done.

::  PlaneShift Team Programmer  ::

Nividia Stormlance

  • Hydlaa Resident
  • *
  • Posts: 79
  • Umm... Sure you want to hear about me?
    • View Profile
    • Disciples of Darkness
Re: Advanced In-game Scripting
« Reply #6 on: April 25, 2006, 02:47:59 am »
please dont be that lazy DaveG look at this line i didnt edited it!

/delaycode(6) this is a wonderfull command that pauses the code in this example for 3 seconds (cant be used to attack monsters)
« Last Edit: April 25, 2006, 02:49:30 am by Nividia Stormlance »
Leader in the disciples of darkness

Karyuu

  • Forum Legend
  • *
  • Posts: 9341
    • View Profile
Re: Advanced In-game Scripting
« Reply #7 on: April 25, 2006, 02:50:47 am »
It has nothing to do with laziness on the part of the devs - it has to do with "promoting" laziness on the part of the players if such scripts are made. Things should be easy, but automatic replies suck, let me tell you :) If you can't be bothered to type in the chat window manually for very basic things, you're not here for the right reasons... This is all about roleplay.
Judge: Are you trying to show contempt for this court, Mr Smith?
Smith: No, My Lord. I am attempting to conceal it.

Nividia Stormlance

  • Hydlaa Resident
  • *
  • Posts: 79
  • Umm... Sure you want to hear about me?
    • View Profile
    • Disciples of Darkness
Re: Advanced In-game Scripting
« Reply #8 on: April 25, 2006, 02:01:20 am »
Im roleplaying a lot, helping a lot. keeping the discussion alive in the game. didnt thought that theese scripts could be used in an destructive way
but now i know
Leader in the disciples of darkness

StarsAndBars_1018

  • Hydlaa Resident
  • *
  • Posts: 161
  • Husky says *bark*
    • View Profile
Re: Advanced In-game Scripting
« Reply #9 on: April 25, 2006, 02:05:34 am »
Those ideas are absolutely horrible. The only thing there I found any interest in was the flame burst/Grand Finale combo idea. Maybe of course spells can be put into the game which are learn-able and can only be cast after a certain spell of the same Way has gone before it - at more damage inflicted and/or less magic power spent, but shouldn't it be up to YOU, the player, to cast those spells without an automatic service doing it for you?

And WHY would anyone with ZERO programming experience and ONLY an interest in playing the game even want to delay code execution outside of a debugger?

You need to be far more creative.



#43: Choose and judge your leaders, also called guardians, thus: Those who seek always to limit the power of government are of good heart and conscience. Those who seek to expand the power of government are base tyrants.

Nividia Stormlance

  • Hydlaa Resident
  • *
  • Posts: 79
  • Umm... Sure you want to hear about me?
    • View Profile
    • Disciples of Darkness
Re: Advanced In-game Scripting
« Reply #10 on: April 25, 2006, 02:12:44 am »
Thanks for the last 2 replys they explained something to me..

glad you like The combo idea ^^

how about this one:
----------------------------------------------
/freeze -freezes the game and your char totally so you can put your computer on standby without having to re enter planeshift
/away im AFK (away from keyboard)
----------------------------------------------
« Last Edit: April 25, 2006, 02:14:25 am by Nividia Stormlance »
Leader in the disciples of darkness

StarsAndBars_1018

  • Hydlaa Resident
  • *
  • Posts: 161
  • Husky says *bark*
    • View Profile
Re: Advanced In-game Scripting
« Reply #11 on: April 25, 2006, 02:51:15 am »
Thanks for the last 2 replys they explained something to me..

glad you like The combo idea ^^

how about this one:
----------------------------------------------
/freeze -freezes the game and your char totally so you can put your computer on standby without having to re enter planeshift
/away im AFK (away from keyboard)
----------------------------------------------

/away could be useful, but /freeze is stupid.

If you're going to leave your computer for an extended period of time, as would be warranted by your power management needing to kick in, the server would just drop your connection anyways.
#43: Choose and judge your leaders, also called guardians, thus: Those who seek always to limit the power of government are of good heart and conscience. Those who seek to expand the power of government are base tyrants.

neko kyouran

  • Guest
Re: Advanced In-game Scripting
« Reply #12 on: April 25, 2006, 04:28:06 am »
umm,  there already is an "/away [message]" command.

derwoodly

  • Hydlaa Notable
  • *
  • Posts: 539
    • View Profile
Re: Advanced In-game Scripting
« Reply #13 on: April 25, 2006, 09:15:45 am »
Good post, I like it.  I am probably the only one in the universe, but I like it.  However I doubt that the devs will do such a thing.


First we need an If command and arrays example and a delay command

/cast summon missile
var1=2
/delaycode(3)
                               /if(var1=2)
{
/cast flame burst
var1=3
delaycode(3)
}
                              /if(var1=3)
{
/cast Grand Finale
}

I don't think you need the if statement just the delay and multiple lines on your hot key You could just type...

/cast flame burst
/delay (3)
/cast flame burst
/delay (3)
/cast Grand Finale

That would get the same effect, and I think you can do something like it in game now.  Personally I don't like using more that one attack per macro.  You may get stuck casting someting you don't need to cast.

Quote
And a reply command witch is running in the background!

   /tellcommand <what the player tells you>=<what you tell him/what happends>

/tellwizardON
/tellcommand goodmorning=/tellback thanks
/tellcommand i hate you=/tellback I also hate you
/tellcommand may i join your guild=of course yust a second
if Payer a tells you:goodmorning

if player a tells you:I hate you

if player a tells you:may i join your guild

This might backfire, in normal conversation your tellON command might type stuff for you that interfears with normal conversation.  You could also make macros of common replies and just press the hotkey you want.

Quote
Dice game V1.00
/tellwizardON
/tellcommand ROLL=var1=1
if(var1=1)
{
/rolldice 1-6=var2
If(var2=1)
{
/tellback to bad try again!

...

/tellback Yipieeeeeee won the game
/giveback 1.000.000.000 trias
}


Vegas babby, Yeah!  Slot machine player!  Sounds good for me, but I think your going to go broke.

Quote
****update*****

AUTO mining
/dig gold
/delay(5)
/Runmad                                      -runs the script over and over again until a key is pressed


This is the part I like, eating a pizza at my keyboard while your 'toon' slaves away at the mines!  Good idea, but devs hate it.  Something about having 10000 bots all over muckin up there masterpiece of a game.  You know you can find game breaking software like this all over the web.  Since you like programing maybe you can write one for PS, just don't say it was me that gave you the idea  :-X

Oh, by the way the game Zanzibar is talking about is Progress Quest! 

Quote
/freeze -freezes the game and your char totally so you can put your computer on standby without having to re enter planeshift
/away im AFK (away from keyboard)
----------------------------------------------------------
/Shop(5) im trading fish for mushrooms - writes the message in the auction room every in this example 5 minutes
/shopOFF - turns stopcommand off
------------------------------------------------------------

mmmmm Spam,  yummy!
 :P

edit:
------
All kidding aside,  I think your idea falls under the "this is not Plane Shift" kind of category.   I think what you are describing is more of a script language for NPC's  It might be possible to make a fun game that let all the players behave in a NPC like manor, however you would want to have more than one character at a time online.  I have often thought it would be good to have 6 to 10 'toons' online at once.  One of which, would have you behind the wheel so to speak, the rest would run scripts and either follow you about or go off and mine, or farm.  This game already exist in some sort of fashion.  Age of Empires, and the Warcraft series already are something like it, but they are not MMORPG's.  I am guessing that the complexity of such a thing would be be multiplied by the amount of different tasks your characters could do multiplied by the number of characters each player has multiplied by the number of players online.  Sort of a pull your hair out to the 3rd power kind of deal.  So calling this a wish is a real understatement.
« Last Edit: April 25, 2006, 10:09:04 am by derwoodly »

Nividia Stormlance

  • Hydlaa Resident
  • *
  • Posts: 79
  • Umm... Sure you want to hear about me?
    • View Profile
    • Disciples of Darkness
Re: Advanced In-game Scripting
« Reply #14 on: April 25, 2006, 05:15:48 pm »
Im really happy you said something positive about my scripts.

It would be really happy if i could make scripts for some Npc's, but i aint got enough C++ skill. 2 years is of skill is required.
Leader in the disciples of darkness