AIData: Events
Part of AIData. Events define triggered behaviors that respond to specific game events — spawning, death, territory changes, or custom conditions.
Event Properties
Section titled “Event Properties”| Property | Type | Since | Description |
|---|---|---|---|
id | int | v92 | Unique event identifier |
type | string | v92 | Event type trigger (e.g. spawn, death, territory) |
action | string | v92 | Action to execute when triggered |
desc | string | v92 | Internal description |
huntingZoneId | int | v92 | Target hunting zone for the action |
territoryId | int | v92 | Target territory for the action |
prob | string | v92 | Trigger probability |
value | string | v92 | Action parameter value |
DSL Example
Section titled “DSL Example”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"