Someone Else
Level: Smitemaster
Rank Points: 1304
Registered: 06-14-2005
IP: Logged
|
"Return" script command (+1)
This would be used to cut down hugely on the length of some scripts I would like to write (and make it possible). When used, it would return the command that is being executed to the previous Goto command. Therefore:
Set var Foo = 1
If...
Wait until var Foo = 1
Goto 1
Set var Bar = 1
If End
If...
Wait until var Bar = 1
Goto 1
Set var Foo = 0
Set var Bar = 0
If End
Label 1
Activate item at (10,10)
Return
Would activate the item at 10,10 three times with the return command being ignored the third time past because there was no recent Goto command. Obviously, this isn't the sort of script that it would be used in because to copy "Activate item at (10,10)" is actually faster, but if there were a lot of conditions that would go to Label 1, and between Label 1 and Return there were a lot of commands, it would be extremely useful.
If it is a problem to code, it would okay for it not to remember multiple Gotos at a time, or for it not to remember once the NPC's turn is done.
|