ShatteredCasis
02-03-2011, 01:19 AM
Hey all.
I have 2 scripts.. script 1 and script 2.
script 1 runs, and at a certain point, fires script 2 and does a wait_while script 2 is running.
start_script 'script2'
wait_while{running?('script2')}
First, I discovered that script 1 wouldn't actually wait. It would pause for a few seconds, but would eventually keep going.
So, I figured, alright then, in script 2, I added a pause_script 'script 1'.
Lich tells me that script 1 is paused (when I do a ;list), but it STILL does crap.
I don't have any hooks or seperate threads going for script 1 but script 1 does contain multiple "class" definititions - so perhaps this is the reason it's not honoring the wait or pause. Anyone run into this before?
Thanks,
Casis
I have 2 scripts.. script 1 and script 2.
script 1 runs, and at a certain point, fires script 2 and does a wait_while script 2 is running.
start_script 'script2'
wait_while{running?('script2')}
First, I discovered that script 1 wouldn't actually wait. It would pause for a few seconds, but would eventually keep going.
So, I figured, alright then, in script 2, I added a pause_script 'script 1'.
Lich tells me that script 1 is paused (when I do a ;list), but it STILL does crap.
I don't have any hooks or seperate threads going for script 1 but script 1 does contain multiple "class" definititions - so perhaps this is the reason it's not honoring the wait or pause. Anyone run into this before?
Thanks,
Casis