Macro APITriggers
Currency Drop Found
Runs when currency appears during a run.
- Category
- Loot
- Runs when
- Currency appears.
- Summary
- Runs when currency appears during a run.
- Version
- 1
Events
- system-currency-drop
Lua Example
if ctx.currencyDrop.amountCopper > 10000 then
print("Currency", ctx.currencyDrop.amountCopper)
end
return loot.keepItem(ctx.currencyDrop)ctx Fields
| Trigger | Path | Type | Label | Description |
|---|---|---|---|---|
| Currency Drop Found | ctx.currencyDrop.amountCopper | number | Currency amount | The amount of currency available to claim. |
| Currency Drop Found | ctx.currencyDrop.timelineCurrencyDropId | id | Currency drop id | The currency drop row id when the runtime can expose it before commit. |
| Currency Drop Found | ctx.currencyDrop.timelineEventId | id | Source event | The game event where the currency appeared. |
| Currency Drop Found | ctx.player.level | number | Player level | The player level used for this macro run. |
| Currency Drop Found | ctx.player.currencyCopper | number | Currency | The player currency carried in copper. |
| Currency Drop Found | ctx.player.bag.usedSlots | number | Bag used | The number of backpack slots currently occupied. |
| Currency Drop Found | ctx.player.bag.maxSlots | number | Bag capacity | The current backpack capacity including equipped bag bonuses. |
| Currency Drop Found | ctx.player.bag.freeSlots | number | Bag free | The number of free backpack slots remaining. |
| Currency Drop Found | ctx.player.derivedStats.maxLife | number | Derived stat | A derived stat value; other stat keys are available beside maxLife. |
| Currency Drop Found | ctx.player.equipment.mainHand.itemDefinitionKey | string | Equipped item | An equipped item definition key. Replace mainHand with another equipment slot as needed. |
| Currency Drop Found | ctx.player.equipment.mainHand.rarity | string | Equipped item rarity | The rarity of an equipped item. |
| Currency Drop Found | ctx.player.equipment.mainHand.itemLevel | number | Equipped item level | The required level of an equipped item. |
| Currency Drop Found | ctx.player.equipment.mainHand.dropLevel | number | Equipped drop level | The drop level used to generate an equipped item. |
| Currency Drop Found | ctx.player.equipment.mainHand.stats.maxLife | number | Equipped item stat | A stat contribution from an equipped item; other stat keys are available beside maxLife. |
| Currency Drop Found | ctx.player.equipment.mainHand.affixes[].key | string | Equipped affix | A rolled affix key on an equipped item. |
Blocks
| Block | Category | Summary |
|---|---|---|
| Keep item | Loot | Moves the current item into your inventory. |
| Leave item | Loot | Skips the current item without picking it up. |
| Continue | Flow | Returns continue to the Storyteller. |
| Pause | Flow | Returns pause to the Storyteller. |