Test_Inflicted_Damage
Server/NPC/Roles/_Core/Tests/Combat/Test_Inflicted_Damage.json, 2.2 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
ApplySeparation | boolean |
HotbarItems | array[1] |
SeparationDistance | number |
SeparationWeight | number |
SeparationDistanceTarget | number |
SeparationNearRadiusTarget | number |
SeparationFarRadiusTarget | number |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Skeleton",
"ApplySeparation": true,
"HotbarItems": [ "Weapon_Sword_Iron" ],
"SeparationDistance": 1,
"SeparationWeight": 1,
"SeparationDistanceTarget": 0.5,
"SeparationNearRadiusTarget": 1,
"SeparationFarRadiusTarget": 5,
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 15,
"Gravity": 10,
"MaxFallSpeed": 8,
"Acceleration": 10
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Continue": true,
"Sensor": {
"Type": "InflictedDamage",
"Target": "Self"
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "Inflicted Damage"
},
{
"Type": "TimerStart",
"Name": "Countdown",
"StartValueRange": [ 1, 1 ],
"RestartValueRange": [ 1, 1 ]
},
{
"Type": "TimerRestart",
"Name": "Countdown"
}
]
},
{
"Continue": true,
"Sensor": {
"Type": "Timer",
"Name": "Countdown",
"State": "Stopped"
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": ""
}
]
},
{
"Sensor": {
"Type": "Player",
"Range": 3
},
"Actions": [
{
"Type": "Attack",
"Attack": "Root_NPC_Attack_Melee"
}
],
"HeadMotion": {
"Type": "Watch"
}
},
{
"Sensor": {
"Type": "Player",
"Range": 10
},
"BodyMotion": {
"Type": "Seek",
"SlowDownDistance": 3,
"StopDistance": 2
}
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Inflicted_Damage.name"
}