How a character chooses what to do at each moment: state machines, behaviour trees, utility, GOAP and schedules.
The house. Kitchen, bedroom, bathroom and living room: the map from the article.
It is in wander. Its arrows, in order (the first one that holds fires):
12 arrows. In orange, the one that has just fired.
- → eat if Hunger > 50 (35)
- → sleep if Sleep > 50 (25)
- → shower if Hygiene > 50 (20)
| State machine | 12 → 20 | +8 |
|---|---|---|
| Behaviour tree | 11 → 14 | +3 |
| Utility | 4 → 5 | +1 |
| GOAP (planning) | 6 → 8 | +2 |