Ok; the state is what controls when a particurlar line of code starts to function. For example, this script;
Says that "when the state is equal to 0, set the state to 1." When the state value in the conditions is met, it will proceed to do all of the commands after the 2nd colon.
You can use the "state=X" command in 2 different ways; as a condition and as an action. In this code;
":state=0" is a condition, which will be met automatically at the beginning of any script. ":state=1" is an action, which sets the internal variable "state" to 1.
That's the best explination I could come up with, but almost every script relies on states. LEARN THEM!
Some people say that I'm crazy... And I agree.
USE PLY'S MOD!