Example_Boss
Server/EncounterManager/Example_Boss.json, 5.8 KB
Fields
| Field | Type |
|---|---|
Class | string |
Type | string |
Debug | string |
StartState | string |
Instructions | array[1] |
Source
{
"Class": "EncounterManager",
"Type": "Generic",
"Debug": "DisplayState",
"StartState": "Intro",
"Instructions": [
{
"Sensor": {
"Type": "Player",
"Range": 30
},
"Instructions": [
{
"Sensor": {
"Type": "State",
"State": "Intro"
},
"Instructions": [
{
"Sensor": {
"Type": "And",
"Sensors": [
{
"Type": "Beacon",
"Range": 100,
"Message": "Boss_In_Position"
},
{
"Type": "Target",
"Range": 100,
"TargetSlot": "Boss"
}
]
},
"Actions": [
{
"Type": "ChangeTargetRole",
"Role": "Test_Boss_Basic"
},
{
"Type": "State",
"State": "Phase_1"
}
]
},
{
"Sensor": {
"Type": "Not",
"Sensor": {
"Type": "Target",
"Range": 100,
"TargetSlot": "Boss"
}
},
"ActionsBlocking": true,
"Actions": [
{
"Type": "PlaySound",
"SoundEventId": "SFX_Test_Blip_A"
},
{
"Type": "Timeout",
"Delay": [ 1, 1 ]
},
{
"Type": "TriggerSpawners",
"Count": 1,
"Range": 30,
"SpawnMarker": "Test_Boss_Marker",
"TargetSlot": "Boss",
"Rebind": true
},
{
"Type": "Timeout",
"Delay": [ 2, 2 ]
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Phase_1"
},
"Instructions": [
{
"Sensor": {
"Type": "Target",
"Range": 100,
"TargetSlot": "Boss",
"Filters": [
{
"Type": "Stat",
"StatTarget": "Value",
"RelativeTo": "Health",
"Stat": "Health",
"RelativeToTarget": "Max",
"ValueRange": [ 0.5, 1 ]
}
]
},
"Actions": [
{
"Type": "Nothing"
}
]
},
{
"Continue": true,
"Sensor": {
"Type": "Target",
"Range": 100,
"TargetSlot": "Boss",
"Filters": [
{
"Type": "Stat",
"StatTarget": "Value",
"RelativeTo": "Health",
"Stat": "Health",
"RelativeToTarget": "Max",
"ValueRange": [ 0, 0.49 ]
}
]
},
"Actions": [
{
"Type": "ChangeTargetRole",
"Role": "Test_Boss_Basic_Wander"
}
]
},
{
"ActionsBlocking": true,
"Actions": [
{
"Type": "PlaySound",
"SoundEventId": "SFX_Test_Blip_A"
},
{
"Type": "State",
"State": "Phase_2"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Phase_2"
},
"Instructions": [
{
"Sensor": {
"Type": "Target",
"Range": 100,
"TargetSlot": "Boss"
},
"Actions": [
{
"Type": "Nothing"
}
]
},
{
"Actions": [
{
"Type": "PlaySound",
"SoundEventId": "SFX_Test_Blip_A"
},
{
"Type": "ReleaseTarget",
"TargetSlot": "Boss"
},
{
"Type": "State",
"State": "BossDead"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "BossDead"
},
"Instructions": [
{
"Sensor": {
"Type": "Not",
"Sensor": {
"Type": "Mob",
"Range": 100,
"Filters": [
{
"Type": "Attitude",
"Attitudes": [ "Friendly" ]
}
]
}
},
"Actions": [
{
"Type": "State",
"State": "Complete"
}
]
}
]
},
{
"Sensor": {
"Type": "State",
"State": "Complete"
},
"Instructions": [
{
"Sensor": {
"Type": "Beacon",
"Message": "Restart"
},
"Actions": [
{
"Type": "State",
"State": "Intro"
}
]
}
]
}
]
}
]
}