Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.8.1 / NPC / Roles / _Core / Tests / Test_Flags.json

Test_Flags

Server/NPC/Roles/_Core/Tests/Test_Flags.json, 1.9 KB

Fields

FieldType
Typestring
Appearancestring
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

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