Posted by member 212670 on 2006-06-21 20:47:25 link

Well, mzscript can handle loops.

For example, this in mzscript...
*Script exec !varset i 1
*Script label loop
*Script gotoif ["%{i}" = "5"] break
*Script exec !dostuff
*Script exec !varadd i 1
*Script goto loop
*Srcipt label break

is the same as this in lslua...
i = 1
repeat
lslua.exec ("!dostuff")
i = i + 1
until i == 5

or even better...
for i = 1, 5 do
lslua.exec ("!dostuff")
end

...and you can make "i" part of the iteration.

But yes, lslua is much more flexible - and a lot easier on the eyes heh.