Test_Item_Attitude
Server/NPC/Roles/_Core/Tests_Development/Test_Item_Attitude.json, 1.5 KB
Fields
| Field | Type |
|---|---|
StartState | string |
$Comment | string |
Type | string |
Appearance | string |
ItemAttitudeGroup | string |
MotionControllerList | array[1] |
MaxHealth | object |
Parameters | object |
Instructions | array[1] |
NameTranslationKey | string |
Source
{
"StartState": "Idle",
"$Comment": "DisplayState",
"Type": "Generic",
"Appearance": "Mannequin",
"ItemAttitudeGroup": "Test",
"MotionControllerList": [
{
"Type": "Walk",
"MaxWalkSpeed": 3,
"Gravity": 10,
"MaxFallSpeed": 20,
"Acceleration": 10
}
],
"MaxHealth": { "Compute": "MaxHealth" },
"Parameters": {
"MaxHealth": {
"Value": 100,
"Description": "Max health for the NPC"
}
},
"Instructions": [
{
"Instructions": [
{
"Sensor": {
"Type": "State",
"State": "Idle"
},
"Instructions": [
{
"Sensor": {
"Type": "DroppedItem",
"Range": 10,
"Attitudes": [ "Love" ],
"Items": [ "*Axe*" ]
},
"Actions": [
{
"Type": "PickUpItem",
"Once": true,
"Range": 1
}
],
"BodyMotion": {
"Type": "Seek",
"SlowDownDistance": 2,
"StopDistance": 1
}
},
{
"Sensor": {
"Type": "DroppedItem",
"Range": 10,
"Attitudes": [ "Dislike" ]
},
"BodyMotion": {
"Type": "Flee"
}
}
]
}
]
}
],
"NameTranslationKey": "server.npcRoles.Test_Item_Attitude.name"
}