Hytale Asset ReferenceUnofficial
Versions / 0.5.3 / NPC / Roles / _Core / Tests / Combat / Test_Inflicted_Damage.json

Test_Inflicted_Damage

Server/NPC/Roles/_Core/Tests/Combat/Test_Inflicted_Damage.json, 2.2 KB

Fields

FieldType
Typestring
Appearancestring
ApplySeparationboolean
HotbarItemsarray[1]
SeparationDistancenumber
SeparationWeightnumber
SeparationDistanceTargetnumber
SeparationNearRadiusTargetnumber
SeparationFarRadiusTargetnumber
MotionControllerListarray[1]
TestTypestring
MaxHealthobject
Parametersobject
Instructionsarray[1]
NameTranslationKeystring

Source

{
  "Type": "Generic",
  "Appearance": "Skeleton",
  "ApplySeparation": true,
  "HotbarItems": [ "Weapon_Sword_Iron" ],
  "SeparationDistance": 1,
  "SeparationWeight": 1,
  "SeparationDistanceTarget": 0.5,
  "SeparationNearRadiusTarget": 1,
  "SeparationFarRadiusTarget": 5,
  "MotionControllerList": [
    {
      "Type": "Walk",
      "MaxWalkSpeed": 15,
      "Gravity": 10,
      "MaxFallSpeed": 8,
      "Acceleration": 10
    }
  ],
  "TestType": "Normal",
  "MaxHealth": { "Compute": "MaxHealth" },
  "Parameters": {
    "MaxHealth": {
      "Value": 100,
      "Description": "Max health for the NPC"
    }
  },
  "Instructions": [
    {
      "Instructions": [
        {
          "Continue": true,
          "Sensor": {
            "Type": "InflictedDamage",
            "Target": "Self"
          },
          "Actions": [
            {
              "Type": "DisplayName",
              "DisplayName": "Inflicted Damage"
            },
            {
              "Type": "TimerStart",
              "Name": "Countdown",
              "StartValueRange": [ 1, 1 ],
              "RestartValueRange": [ 1, 1 ]
            },
            {
              "Type": "TimerRestart",
              "Name": "Countdown"
            }
          ]
        },
        {
          "Continue": true,
          "Sensor": {
            "Type": "Timer",
            "Name": "Countdown",
            "State": "Stopped"
          },
          "Actions": [
            {
              "Type": "DisplayName",
              "DisplayName": ""
            }
          ]
        },
        {
          "Sensor": {
            "Type": "Player",
            "Range": 3
          },
          "Actions": [
            {
              "Type": "Attack",
              "Attack": "Root_NPC_Attack_Melee"
            }
          ],
          "HeadMotion": {
            "Type": "Watch"
          }
        },
        {
          "Sensor": {
            "Type": "Player",
            "Range": 10
          },
          "BodyMotion": {
            "Type": "Seek",
            "SlowDownDistance": 3,
            "StopDistance": 2
          }
        }
      ]
    }
  ],
  "NameTranslationKey": "server.npcRoles.Test_Inflicted_Damage.name"
}