Macro APITriggers
Combat Participant Defeated
Runs when any combat participant is defeated.
- Category
- Combat
- Runs when
- A combat participant is defeated.
- Summary
- Runs when any combat participant is defeated.
- Version
- 1
Events
- system-combat-participant-defeated
Lua Example
print("Source event", ctx.combat.timelineEventId)ctx Fields
| Trigger | Path | Type | Label | Description |
|---|---|---|---|---|
| Combat Participant Defeated | ctx.combat.timelineEventId | id | Source event | Timeline event where the defeat appeared. |
| Combat Participant Defeated | ctx.player.level | number | Player level | The player level used for this macro run. |
| Combat Participant Defeated | ctx.player.currencyCopper | number | Currency | The player currency carried in copper. |
| Combat Participant Defeated | ctx.player.bag.usedSlots | number | Bag used | The number of backpack slots currently occupied. |
| Combat Participant Defeated | ctx.player.bag.maxSlots | number | Bag capacity | The current backpack capacity including equipped bag bonuses. |
| Combat Participant Defeated | ctx.player.bag.freeSlots | number | Bag free | The number of free backpack slots remaining. |
| Combat Participant Defeated | ctx.player.derivedStats.maxLife | number | Derived stat | A derived stat value; other stat keys are available beside maxLife. |
| Combat Participant Defeated | ctx.player.equipment.mainHand.itemDefinitionKey | string | Equipped item | An equipped item definition key. Replace mainHand with another equipment slot as needed. |
| Combat Participant Defeated | ctx.player.equipment.mainHand.rarity | string | Equipped item rarity | The rarity of an equipped item. |
| Combat Participant Defeated | ctx.player.equipment.mainHand.itemLevel | number | Equipped item level | The required level of an equipped item. |
| Combat Participant Defeated | ctx.player.equipment.mainHand.dropLevel | number | Equipped drop level | The drop level used to generate an equipped item. |
| Combat Participant Defeated | ctx.player.equipment.mainHand.stats.maxLife | number | Equipped item stat | A stat contribution from an equipped item; other stat keys are available beside maxLife. |
| Combat Participant Defeated | ctx.player.equipment.mainHand.affixes[].key | string | Equipped affix | A rolled affix key on an equipped item. |
Blocks
| Block | Category | Summary |
|---|---|---|
| Continue | Flow | Returns continue to the Storyteller. |
| Pause | Flow | Returns pause to the Storyteller. |