Skip to content

AIData: PeaceState

Part of AIData. Defines behavior when the NPC is in its idle/peace state — wandering, social animations, and buff application.


PropertyTypeSinceDescription
enableboolv92Enable peace state behavior
checkIntervalintv92Behavior check interval in milliseconds
followDungeonUserstringv92Follow dungeon user behavior
followNearUserstringv92Follow nearby user behavior
followQuestUserstringv92Follow quest user behavior
hpResetWhenCombatEndboolv92Reset HP when combat ends
maxLeaderDistancestringv92Maximum leader follow distance
minLeaderDistancestringv92Minimum leader follow distance
moveInTerritorystringv92Restrict movement to territory
msgImmediatelyboolv92Send message immediately on state enter
msgIntervalstringv92Message broadcast interval
msgProbstringv92Message broadcast probability
noMovestringv92Disable movement
popupMsgstringv92Popup message on interaction
questPatrolstringv92Quest patrol route behavior

Random movement configuration within the peace state.

PropertyTypeSinceDescription
moveMaxDistanceintv92Maximum random move distance
moveMinDistanceintv92Minimum random move distance
moveRadiusintv92Movement radius from spawn point
probMovedecimalv92Probability of initiating movement
probSocialdecimalv92Probability of performing a social action

Social animation entries within random movement. Each entry defines a social motion and its selection weight.

PropertyTypeSinceDescription
socialMotionIdstringv92Social animation identifier
usePercentdecimalv92Selection weight for this social

List of buff configurations applied during peace state. Each buff defines a skill group with timing.

PropertyTypeSinceDescription
coolTimestringv92Cooldown between buff applications
rangestringv92Application range

Skills within a buff entry.

PropertyTypeSinceDescription
classstringv92Skill class filter
skillIdstringv92Skill identifier to cast

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"