Maerit
11-03-2016, 05:28 PM
Is there a way to pause all currently active scripts within a script, except for the script calling the pause command?
Would you have to do some kind of parse of the list of active scripts from ;list (except I don't think you an start_script "list" because it's not a script), and then loop through the list of active scripts to pause everything except the script calling this "function"?
If so - anyone smart enough to write that function for me? I may have a few instances where that would be useful to both pause and unpause all active scripts.
To help clarify my goal, I am looking to micromanage a bunch of timers and temporary buffs: 506, 411, 902, bless, and 909 (evoke). These things are falling off, wearing off, and disappearing during things like waggle, go2, bigshot, combo (UAC), wander, useherbs... and other various active scripts - especially if two of them fall off at the same time. So, what I am hoping to do is create a nice script that can manage these temporary spells by pausing all the active scripts - performing the necessary "refresh" action(s) - then resuming the scripts that were paused.
Would you have to do some kind of parse of the list of active scripts from ;list (except I don't think you an start_script "list" because it's not a script), and then loop through the list of active scripts to pause everything except the script calling this "function"?
If so - anyone smart enough to write that function for me? I may have a few instances where that would be useful to both pause and unpause all active scripts.
To help clarify my goal, I am looking to micromanage a bunch of timers and temporary buffs: 506, 411, 902, bless, and 909 (evoke). These things are falling off, wearing off, and disappearing during things like waggle, go2, bigshot, combo (UAC), wander, useherbs... and other various active scripts - especially if two of them fall off at the same time. So, what I am hoping to do is create a nice script that can manage these temporary spells by pausing all the active scripts - performing the necessary "refresh" action(s) - then resuming the scripts that were paused.