NPC behavior
What a character knows, how it selects an action and how it reaches a destination.
Before you start
Refresh these foundations if needed:
Lesson sequence
NPC perception and target memory
Separate world state from character knowledge: visibility, last observation, forgetting and readable reactions.
How an NPC selects an action
Separate eligibility, priority and execution so a character makes explainable decisions without rapidly switching between them.
Pathfinding and following a route
Choose a space representation and traversal costs while separating a computed path from actual NPC movement.
Put it into practice
Shared Workshop helps define roles and resource conflicts. Maintenance Patrol connects perception, selection and route following into a verifiable system.
Review through lenses
Lessons contain original teaching examples and primary-source links. Numbers and scenarios illustrate a principle; verify the result in your own game.
Outcome and verification
A robot with observations, memory, action selection and verified route following.
- The log explains every decision.
- Lost targets and closing doors are handled explicitly.