Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.2 / NPC / Roles / _Core / Tests_Development / Test_Item_Attitude.json

Test_Item_Attitude

Server/NPC/Roles/_Core/Tests_Development/Test_Item_Attitude.json, 1.5 KB

Fields

FieldType
StartStatestring
$Commentstring
Typestring
Appearancestring
ItemAttitudeGroupstring
MotionControllerListarray[1]
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

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"
}