Hytale Asset ReferenceUnofficial
Versions / 0.6.0-pre.10 / EncounterManager / Macros / Encounter_Macro_Transition_TargetInHealthRange.json

Encounter_Macro_Transition_TargetInHealthRange

Server/EncounterManager/Macros/Encounter_Macro_Transition_TargetInHealthRange.json, 1014 B

Fields

FieldType
Classstring
Typestring
Interfacestring
Parametersobject
Contentobject

Source

{
  "Class": "Instruction",
  "Type": "Component",
  "Interface": "Hytale.Instruction.Encounter.Phase.Transition",
  "Parameters": {
    "_ImportStates": [ "Next" ],
    "Slot": {
      "Value": "Boss",
      "Description": "Marked target slot holding the tracked entity"
    },
    "Range": {
      "Value": 100,
      "Description": "Search range for the slot's entity"
    },
    "HealthRange": {
      "Value": [ 0, 0.5 ],
      "Description": "Fire when health/maxHealth falls inside this range"
    }
  },
  "Content": {
    "Sensor": {
      "Type": "Target",
      "Range": { "Compute": "Range" },
      "TargetSlot": { "Compute": "Slot" },
      "Filters": [
        {
          "Type": "Stat",
          "StatTarget": "Value",
          "RelativeTo": "Health",
          "Stat": "Health",
          "RelativeToTarget": "Max",
          "ValueRange": { "Compute": "HealthRange" }
        }
      ]
    },
    "Actions": [
      {
        "Type": "ParentState",
        "State": "Next"
      }
    ]
  }
}