Uncommon Rares
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

TriggerPathTypeLabelDescription
Currency Drop Foundctx.currencyDrop.amountCoppernumberCurrency amountThe amount of currency available to claim.
Currency Drop Foundctx.currencyDrop.timelineCurrencyDropIdidCurrency drop idThe currency drop row id when the runtime can expose it before commit.
Currency Drop Foundctx.currencyDrop.timelineEventIdidSource eventThe game event where the currency appeared.
Currency Drop Foundctx.player.levelnumberPlayer levelThe player level used for this macro run.
Currency Drop Foundctx.player.currencyCoppernumberCurrencyThe player currency carried in copper.
Currency Drop Foundctx.player.bag.usedSlotsnumberBag usedThe number of backpack slots currently occupied.
Currency Drop Foundctx.player.bag.maxSlotsnumberBag capacityThe current backpack capacity including equipped bag bonuses.
Currency Drop Foundctx.player.bag.freeSlotsnumberBag freeThe number of free backpack slots remaining.
Currency Drop Foundctx.player.derivedStats.maxLifenumberDerived statA derived stat value; other stat keys are available beside maxLife.
Currency Drop Foundctx.player.equipment.mainHand.itemDefinitionKeystringEquipped itemAn equipped item definition key. Replace mainHand with another equipment slot as needed.
Currency Drop Foundctx.player.equipment.mainHand.raritystringEquipped item rarityThe rarity of an equipped item.
Currency Drop Foundctx.player.equipment.mainHand.itemLevelnumberEquipped item levelThe required level of an equipped item.
Currency Drop Foundctx.player.equipment.mainHand.dropLevelnumberEquipped drop levelThe drop level used to generate an equipped item.
Currency Drop Foundctx.player.equipment.mainHand.stats.maxLifenumberEquipped item statA stat contribution from an equipped item; other stat keys are available beside maxLife.
Currency Drop Foundctx.player.equipment.mainHand.affixes[].keystringEquipped affixA rolled affix key on an equipped item.

Blocks

BlockCategorySummary
Keep itemLootMoves the current item into your inventory.
Leave itemLootSkips the current item without picking it up.
ContinueFlowReturns continue to the Storyteller.
PauseFlowReturns pause to the Storyteller.