And final bit of stuff for today (I've been constantly interrupted today by life
)
New script functions:
add <value> <value> returns addition of the 2 values
set <variable> <value> returns void
while <boolean> <do> returns void
until <boolean> returns void
Shouldn't have to explain the first two.
While will continually run it's <do> parameter until the boolean is false.
Until will sleep until the <boolean> parameter is true.
Test code:
Code:
(script all dormant "whiletest"
(log "testing while")
(while (< test_int4 30)
(begin
(log "Still running...")
(set test_int4 (add test_int4 1))
(log test_int4)
)
)
(log "done!")
)
(script all dormant "sleepuntiltest"
(log "sleeping until test_boolean2 is true)
(until test_boolean2)
(log "test_boolean2 is now true so now we can continue!")
)
(script all dormant "settestbool2"
(set test_boolean2 true)
)
Both are working as expected. 
Still need suggestions for more functions in 12 script.
Bookmarks