Suzaku
Member
I having a hard time figuring out what are the main elements of a state machine in a general scope. So far I know that there are 3 main elements:
1. the switch in the step event that is supposed to verify on which state the object is at each moment, then it activates the script accordly to the state.
2. The state scripts, that probably run the commands for that state and need to have a way to escape from that state to some other state(maybe normal state?).
3. A script that can be run on step event that tells on which state the object is at each moment by verifying the actual conditions of the object(not sure about this script).
Is there something more that I should know?
1. the switch in the step event that is supposed to verify on which state the object is at each moment, then it activates the script accordly to the state.
2. The state scripts, that probably run the commands for that state and need to have a way to escape from that state to some other state(maybe normal state?).
3. A script that can be run on step event that tells on which state the object is at each moment by verifying the actual conditions of the object(not sure about this script).
Is there something more that I should know?