NPC Scripting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
</uml> | </uml> | ||
| <uml> | | <uml> | ||
->NPC: Perception(Time 10:00 | ->NPC: Perception(Time 10:00 PM) | ||
activate NPC | activate NPC | ||
NPC -> NPC: Should I React(Yes) | NPC -> NPC: Should I React(Yes) |
Latest revision as of 12:43, 11 April 2020
NPCs are scripted where the main elements are perceptions that represents events in the soundings of the NPC. The NPC has a set of reactions that decide if the NPC will react to a perception. The reaction that start a behavior that is a set of operations the NPC will perform. Some NPCs work together in tribes, see Tribe Scripting for details.
Example 1: | Example 2: |
---|---|
![]() |
![]() |