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 : Script command to reset all MyScript variables
New Topic New Poll Post Reply
Poster Message
kieranmillar
Level: Smitemaster
Rank Points: 2671
Registered: 07-11-2014
IP: Logged
icon Script command to reset all MyScript variables (+2)  
Would be a nice time saving to have a single script command that resets all _MyScript variables to -9999 for you. This is something you do a lot manually and it takes up a lot of lines, given that most of the time you're setting multiple values at once like X and Y coordinates.
06-22-2023 at 11:45 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
Rabscuttle
Level: Smitemaster
Avatar
Rank Points: 2460
Registered: 09-10-2004
IP: Logged
icon Re: Script command to reset all MyScript variables (+2)  
I normally end up defining a ResetMyScript subroutine to do it, but not having to set it up each time would be more convenient.

Label ResetMyScript
Set var "_MyScriptX" = -9999
Set var "_MyScriptY" = -9999
Set var "_MyScriptW" = -9999
Set var "_MyScriptH" = -9999
Set var "_MyScriptF" = -9999
Return


[Last edited by Rabscuttle at 06-23-2023 12:37 AM]
06-23-2023 at 12:37 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : Script command to reset all MyScript variables
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.