Pitfalls of finite state machines
The downside of state machines, though, are the exponential possible connections that come with the addition of each new state. To reduce latency or unexpected chains of actions, state machines need to be well connected so that agents can quickly select the best action.
Our implementation of state transitions is a simple, priority-based approach that might not fit all circumstances, in which case, a weighted or search-based approach might become necessary. This additional complexity can further complicate logic selection, where actions are chosen for reasons that aren't apparent.