Hytale Asset ReferenceUnofficial
Versions / 0.5.5 / NPC / Roles / _Core / Tests / States / Test_Sub_States.json

Test_Sub_States

Server/NPC/Roles/_Core/Tests/States/Test_Sub_States.json, 3.0 KB

Fields

FieldType
Debugstring
StartStatestring
DefaultSubStatestring
Typestring
Appearancestring
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[3]
NameTranslationKeystring

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