are there any plans to have a FOR-LOOP created? It would be useful
to have this in assisting us from making those infinite loop goofs with WHILEs.
Couldn't find a forum message on this yet, so wanted to post it.
This would REALLY be useful.
For loops were "removed" when CJ got to write his own text script engine, I think it's of
very low priority to add it back. Anyway, you don't really need this, as you can do this thingie with while() already (though using for-loops may be more readible sometimes), eg.
int i=1;
while (i<=20){
//blah bla bla
i++;
}
However what about 'break'?
(yea, I know, goto considered harmful considered harmful. But still)
I like the infinite loop breaker feature, as I tend to forget my i++'s in a while.
Ya speaking of infinite loops, uh how do you remove that detection thing?
Cuz I am trying to have a while loop which has the enemy attack you and there is a random number generated to see if he will succeed or not, and i set it to do a random seed every second. And I also have character push a button to attack back when he wishes. But if there is no activity for even a second, the game crashes with an error about infinite loop. Although its not an infinite loop, its quite "controlled." Great a Turing Machine Problem.
-Pizzaman
Please don't cross-post.
Continue the discussion here: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=18853