Test_Flags
Server/NPC/Roles/_Core/Tests/Test_Flags.json, 1.9 KB
Fields
| Field | Type |
|---|---|
Type | string |
Appearance | string |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"Type": "Generic",
"Appearance": "Sheep",
"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": [
{
"Continue": true,
"Sensor": {
"Type": "Damage"
},
"Instructions": [
{
"Sensor": {
"Type": "Flag",
"Name": "Flag",
"Set": false
},
"Actions": [
{
"Type": "SetFlag",
"Name": "Flag",
"SetTo": true
}
]
},
{
"Sensor": {
"Type": "Flag",
"Name": "Flag"
},
"Actions": [
{
"Type": "SetFlag",
"Name": "Flag",
"SetTo": false
}
]
}
]
},
{
"Sensor": {
"Type": "Flag",
"Name": "Flag",
"Set": false
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "False"
}
]
},
{
"Sensor": {
"Type": "Flag",
"Name": "Flag"
},
"Actions": [
{
"Type": "DisplayName",
"DisplayName": "True"
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Flags.name"
}