The fifth state
I forgot to tell you about the fifth state,
Interrupt. Using Interrupt, the bot can interrupt whatever it's doing, save the current state, do something else first, then go back to the state before the Interrupt and complete the interrupted action as necessary. "As necessary" means that what it ends up doing might not be what it started out doing, because the results of the Inner Behavior that Interrupted the Outer Behavior get evaluated together with the saved state of the Outer Behavior, and thus, can modify it. Behaviors can be nested; any Inner Behavior can be an Outer Behavior having its own Inner Behavior, and Interrupt works the same all the way in, and out again.scheuring - 10. May, 18:13
