Test_Species_Attitude
Server/NPC/Roles/_Core/Tests/Test_Species_Attitude.json, 2.3 KB
Fields
| Field | Type |
|---|---|
DefaultSubState | string |
Type | string |
Appearance | string |
DefaultPlayerAttitude | string |
AttitudeGroup | string |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"DefaultSubState": "Start",
"Type": "Generic",
"Appearance": "Kweebec_Sapling_Orange",
"DefaultPlayerAttitude": "Neutral",
"AttitudeGroup": "Trork",
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"RunThreshold": 0.7,
"RunThresholdRange": 0.1,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10
}
],
"TestType": "Normal",
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Sensor": {
"Type": "Mob",
"GetNPCs": true,
"LockOnTarget": true,
"Range": 10,
"Prioritiser": {
"Type": "Attitude",
"AttitudesByPriority": [ "Hostile", "Friendly" ]
},
"GetPlayers": true
},
"Instructions": [
{
"Sensor": {
"Type": "Target",
"Filters": [
{
"Type": "Attitude",
"Attitudes": [ "Hostile" ]
}
]
},
"Actions": [
{
"Type": "PlayAnimation",
"Slot": "Status"
}
],
"BodyMotion": {
"Type": "Flee"
}
},
{
"Sensor": {
"Type": "Target",
"Filters": [
{
"Type": "Attitude",
"Attitudes": [ "Friendly" ]
}
]
},
"Actions": [
{
"Type": "PlayAnimation",
"Slot": "Status",
"Animation": "Wave"
}
],
"HeadMotion": {
"Type": "Watch"
}
}
]
},
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "PlayAnimation",
"Slot": "Status"
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Species_Attitude.name"
}