Zgryt wrote:Docs wrote:
Explanation
the priority of a script is how many instructions it executes before switching to another script.
exactly mean?
that means exactly what is written there... if it's set to 1 it will run 1 instruction of this script and than switch to another script. if it's set to 50 it will run 50 insctructions and then switch to another script.
so, if u set, lets say, 1000000, your script will get executed very fast but everything else will stop. e.g. if u don't use sleep or wait_for_event or run_script_to_completition or something like that, your script with priority 100000 will block all other scripts.
use scripts use 1 by default. textcmds use 100 by default. AI-scripts do most time nothing (just waiting for next event), but if u want that they should react very fast, u should choose a higher priority...
Shinigami