From what I understand the scripting language EEII uses comes from C, but flow control doesn't seem to work.
While (...) { ... }, for (...) { ... } and do { ... } while { ... } are not recognized, but this makes it kind of impossible to use counters within actions such as
ACTION action
SCRIPT WORLD
while (counter < 100) {
PartyInTheStreets();
DoDelay(1.0);
counter = counter + 1;
}
END_SCRIPT
END_ACTION
since
if (counter < 100) {
...
counter = counter + 1;
}
is not a loop and will only run a single time.
Does anyone here know how to make it so a block of code within an action will be repeated a certain number of times?