ScriptUO
Official ScriptUO EasyUO Scripts => Script Debug => Topic started by: Grandewd on February 13, 2014, 07:33:11 PM
-
Is it possible to have one script pause another script?
-
Sure, you can use global variables to do that.
In one script do this:
sub PauseScript
namespace push
namespace global monitor
set !pause %1
namespace pop
return
Then call to pause just do:
gosub PauseScript #TRUE ; or #FALSE to unpause
Then in the other script tab, do something like this
repeat
namespace push
namespace global monitor
repeat
until !pause = #TRUE
namespace pop
until #FALSE
If you really want to "PAUSE" it without need to control the start back up, just put a "pause" command in for the successful test for !pause
note this only works for scripts contained within a single EUO instance and multiple tabs.
-
A global variable to control a pause, of course... Another reason to continue my learning of namespace globals... Thanks TM.
-
You betcha