A basic example of a Finite State Machine in the Stride game engine.
In this example an NPC is given some tasks these tasks are as follows:
- If NPC has no axe go get one in the NPC assigned home
- If NPC has an axe and there is wood available to gather then go get some wood
- Once the wood is gathered, store the wood in the NPC assigned shed and repeat