I've been trying to use a "while" loop and apparently the CS recognizes looping, but complains about the syntax. Specifically it says " invalid loop block structure"
if it is possible, what is the right syntax. I've tried:
while ()
{
}
without parenthesis or brackets as well, and no luck so far.
Also I've been having troubles with variables not being updated properly, specifically they are re-set to 0 for every iteration of the script.
set damage to damage + 5
yet damage is always 5. a message "damage" before the 5 confirms the variable is re-set to 0.
Sorry for asking so many things, I'm very new to the CS and I'm still a little confused with the way things work.
Thanks in advance.
PS: is there any ways to define functions??