AIData: ShorttermTarget
Part of CombatState. ShorttermTarget defines short-duration focus behaviors — temporary aggro switches, interrupt actions, or special targeting conditions that override normal attack patterns.
Structure
Section titled “Structure”shorttermTarget├── stWorkList│ └── StWork [multiple]└── stTensionList └── StTension [multiple] └── StInfo [multiple]StWork Properties
Section titled “StWork Properties”| Property | Type | Since | Description |
|---|---|---|---|
id | int | v92 | Unique short-term work identifier |
desc | string | v92 | Internal description |
coolTime | string | v92 | Cooldown after execution |
immediateAttackId | int | v92 | Attack ID to execute immediately |
msg | string | v92 | Message ID on execution |
msgImmediately | bool | v92 | Send message immediately |
msgInterval | string | v92 | Message interval |
msgProb | string | v92 | Message probability |
preProcess | string | v92 | Pre-processing action |
showSTMark | bool | v92 | Show short-term target marker on UI |
StTension
Section titled “StTension”Tension entries for short-term target selection. The id is referenced by PatternTension.shorttermTargetTension in Patterns.
| Property | Type | Since | Description |
|---|---|---|---|
id | int | v92 | Tension identifier |
StInfo
Section titled “StInfo”| Property | Type | Since | Description |
|---|---|---|---|
stWorkId | int | v92 | Reference to a StWork.id |
prob | decimal | v92 | Selection probability weight |
distanceRate | decimal | v92 | Distance rate override |
DSL Example
Section titled “DSL Example”ai: create: - huntingZoneId: 9001 id: 400 name: "npc_with_shortterm" combatState: enable: true checkInterval: 1000 shorttermTarget: stWorkList: - id: 1 desc: "Focus healer" immediateAttackId: 1 showSTMark: true coolTime: "10000" - id: 2 desc: "Interrupt cast" immediateAttackId: 2 preProcess: "checkCasting" stTensionList: - id: 1 stInfos: - stWorkId: 1 prob: 0.6 - stWorkId: 2 prob: 0.4