NPC Behavior Data Structures
Where the information is located
Server files
npcbehave.xml
data/npcbehave.xml : contains the behaviour types <npctype>
This file contains:
- NPC Types : defines one type of NPC for example "wanderer", it's a collection of behaviors and reactions to events. Read this page for info: NPC Types
- Behavior : is a series of operations the NPC will have to perform. Can be a base behaviour like "walk" or a custom one like "thorian_go_to_work". This page Behavior_Operations lists all operations you can use inside a behaviour.
- Reactions: each NPC can react to an event and trigger a Behaviour. You can read here for more infromation :Behaviors_and_Reactions
- Timings: we call timings the reactions to time. Like thorian going home at 8 pm.
npcdefs.xml (Deprecated)
data/npcdefs.xml : contains definitions for <locations> , <paths> , <waypoints>
This file is deprecated as definition file. All the data has been moved to the DB.
Points on the map
Locations
Sc_locationsTable Sc_location_typeTable
Points
sc_npc_definitions
This table associates a specific behavior with an NPC, In the npctype column you have the same name you find in the npcbehave.xml
waypoints
Sc_waypointsTable Sc_waypoint_linksTable