.url//GRAE @grae.software · Oct 26

So the first step was to simplify and break up the FSM states into simpler, more specific behaviors (like HOLD and PURSUE) Next I made their decision-making script save a MOTIVE, so they can repeatedly check on what they should be doing. For example, Here's how they address being hungry:

8 likes 1 replies

?

Replies

.url//GRAE · Oct 26

The Tascot is hungry, and it's spotted some nearby food! So the motive becomes EAT_FOOD_FROM_WORLD. The MIND script sets the motive and then consults the FSM. The FSM contains a flowchart for each behavior, and as long as the motive is set, it can check the flowchart to resume what it was doing: