AIData: PeaceState
Part of AIData. Defines behavior when the NPC is in its idle/peace state — wandering, social animations, and buff application.
PeaceState Properties
Section titled “PeaceState Properties”| Property | Type | Since | Description |
|---|---|---|---|
enable | bool | v92 | Enable peace state behavior |
checkInterval | int | v92 | Behavior check interval in milliseconds |
followDungeonUser | string | v92 | Follow dungeon user behavior |
followNearUser | string | v92 | Follow nearby user behavior |
followQuestUser | string | v92 | Follow quest user behavior |
hpResetWhenCombatEnd | bool | v92 | Reset HP when combat ends |
maxLeaderDistance | string | v92 | Maximum leader follow distance |
minLeaderDistance | string | v92 | Minimum leader follow distance |
moveInTerritory | string | v92 | Restrict movement to territory |
msgImmediately | bool | v92 | Send message immediately on state enter |
msgInterval | string | v92 | Message broadcast interval |
msgProb | string | v92 | Message broadcast probability |
noMove | string | v92 | Disable movement |
popupMsg | string | v92 | Popup message on interaction |
questPatrol | string | v92 | Quest patrol route behavior |
RandomMove
Section titled “RandomMove”Random movement configuration within the peace state.
| Property | Type | Since | Description |
|---|---|---|---|
moveMaxDistance | int | v92 | Maximum random move distance |
moveMinDistance | int | v92 | Minimum random move distance |
moveRadius | int | v92 | Movement radius from spawn point |
probMove | decimal | v92 | Probability of initiating movement |
probSocial | decimal | v92 | Probability of performing a social action |
Social
Section titled “Social”Social animation entries within random movement. Each entry defines a social motion and its selection weight.
| Property | Type | Since | Description |
|---|---|---|---|
socialMotionId | string | v92 | Social animation identifier |
usePercent | decimal | v92 | Selection weight for this social |
List of buff configurations applied during peace state. Each buff defines a skill group with timing.
| Property | Type | Since | Description |
|---|---|---|---|
coolTime | string | v92 | Cooldown between buff applications |
range | string | v92 | Application range |
Skills within a buff entry.
| Property | Type | Since | Description |
|---|---|---|---|
class | string | v92 | Skill class filter |
skillId | string | v92 | Skill identifier to cast |
DSL Example
Section titled “DSL Example”ai: create: - huntingZoneId: 9001 id: 100 name: "peaceful_wanderer" peaceState: enable: true checkInterval: 3000 hpResetWhenCombatEnd: true randomMove: probMove: 0.6 probSocial: 0.2 moveRadius: 300 moveMinDistance: 100 moveMaxDistance: 300 socials: - socialMotionId: "5001" usePercent: 0.7 - socialMotionId: "5002" usePercent: 0.3 buffs: - coolTime: "30000" range: "500" skills: - skillId: "2001" class: "healer"