Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : "Return" script command
New Topic New Poll Post Reply
Poster Message
Someone Else
Level: Smitemaster
Avatar
Rank Points: 1304
Registered: 06-14-2005
IP: Logged
icon "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.
07-31-2008 at 06:03 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Sillyman
Level: Smiter
Avatar
Rank Points: 339
Registered: 09-08-2006
IP: Logged
icon Re: "Return" script command (+1)  
... Or to remember only Gosub commands' location.

____________________________
Who, me?
FNORD
07-31-2008 at 06:27 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
Someone Else
Level: Smitemaster
Avatar
Rank Points: 1304
Registered: 06-14-2005
IP: Logged
icon Re: "Return" script command (0)  
Yes, that would work too.
07-31-2008 at 06:28 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Jason
Level: Smitemaster
Rank Points: 1076
Registered: 05-05-2006
IP: Logged
icon Re: "Return" script command (0)  
I agree, I have copied and pasted much more than I would have liked , especially in my RPG 3.0 because of the lack of a real subroutine.

____________________________
Play my holds?

[Last edited by Jason at 07-31-2008 10:34 AM]
07-31-2008 at 10:30 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : "Return" script command
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.