Skip to content

AIData: Events

Part of AIData. Events define triggered behaviors that respond to specific game events — spawning, death, territory changes, or custom conditions.


PropertyTypeSinceDescription
idintv92Unique event identifier
typestringv92Event type trigger (e.g. spawn, death, territory)
actionstringv92Action to execute when triggered
descstringv92Internal description
huntingZoneIdintv92Target hunting zone for the action
territoryIdintv92Target territory for the action
probstringv92Trigger probability
valuestringv92Action parameter value

ai:
create:
- huntingZoneId: 9001
id: 700
name: "npc_with_events"
eventList:
- id: 1
type: "spawn"
action: "broadcast"
desc: "Announce spawn"
prob: "1.0"
value: "5001"
- id: 2
type: "death"
action: "spawnNpc"
desc: "Spawn adds on death"
huntingZoneId: 9001
territoryId: 100
prob: "0.5"
value: "1002"