Test_Sub_States
Server/NPC/Roles/_Core/Tests/States/Test_Sub_States.json, 3.0 KB
Fields
| Field | Type |
|---|---|
Debug | string |
StartState | string |
DefaultSubState | string |
Type | string |
Appearance | string |
MotionControllerList | array[1] |
TestType | string |
MaxHealth | object |
Parameters | object |
Instructions | array[3] |
NameTranslationKey | string |
Source
{
"Debug": "DisplayState",
"StartState": "Idle",
"DefaultSubState": "Start",
"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": [
{
"Continue": true,
"Reference": "Component_Test_Local_States",
"Modify": { }
},
{
"Continue": true,
"Reference": "Component_Test_Local_States_2",
"Modify": { }
},
{
"Instructions": [
{
"Sensor": {
"Type": "State",
"State": "Idle"
},
"Instructions": [
{
"Sensor": {
"Type": "State",
"State": ".Start"
},
"Instructions": [
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "Timeout",
"Delay": [ 1, 1 ],
"Action": {
"Type": "State",
"State": ".Main"
}
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": ".Main"
},
"Instructions": [
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "Timeout",
"Delay": [ 1, 1 ],
"Action": {
"Type": "State",
"State": "Other.Other"
}
}
]
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Other"
},
"Instructions": [
{
"Sensor": {
"Type": "State",
"State": ".Other"
},
"Instructions": [
{
"Sensor": {
"Type": "Any"
},
"Actions": [
{
"Type": "Timeout",
"Delay": [ 1, 1 ],
"Action": {
"Type": "State",
"State": "Idle"
}
}
]
}
]
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Sub_States.name"
}