TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Fri Nov 13, 2009 6:22 am Post subject: |
|
|
Bagne wrote: | Is this correct:
Two scripts can't run at once (one of them must be suspended), although it is possible for one to run while the other is "waiting"?
This is actually relevant, because I had a "beginning" script which didn't seem to run so long as I had a "always running in the background" script for the starting map.
I've since figured out a work-around, but this sort of thing will be good to know for future plans. |
Right, normally when a script is suspended, it was suspended while waiting (which allowed another script to get triggered) or during implicit-wait commands (most obvious example is teleporttomap). The only exception is if two scripts are triggered at once, then the first never even starts.
A suspended waiting script isn't really waiting. For example if you wait for 20 ticks and if in the middle of that another script gets triggered and runs for 50 ticks, when it ends the first script will still wait another 10 ticks. _________________ "It is so great it is insanely great." |
|