Versions / 0.6.0-pre.7 / EncounterManager / Macros / Encounter_Macro_Transition_TargetInHealthRange.json
Encounter_Macro_Transition_TargetInHealthRange
Server/EncounterManager/Macros/Encounter_Macro_Transition_TargetInHealthRange.json, 1014 B
Fields
| Field | Type |
|---|---|
Class | string |
Type | string |
Interface | string |
Parameters | object |
Content | object |
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"
}
]
}
}