Uncommon Rares
Macro APITriggers

Gathering Node Found

Runs when a gatherable resource appears during a run.

Category
Gathering
Runs when
A resource can be gathered.
Summary
Runs when a gatherable resource appears during a run.
Version
1

Events

  • system-gathering-found

Lua Example

print("Resource type", ctx.gatheringNode.nodeTypeKey)

ctx Fields

TriggerPathTypeLabelDescription
Gathering Node Foundctx.gatheringNode.nodeTypeKeystringResource typeThe kind of resource that can be gathered.
Gathering Node Foundctx.gatheringNode.timelineEventIdidSource eventThe game event where the resource appeared.
Gathering Node Foundctx.gatheringNode.locationKeystringRegionThe area where the resource was found.
Gathering Node Foundctx.player.levelnumberPlayer levelThe player level used for this macro run.
Gathering Node Foundctx.player.currencyCoppernumberCurrencyThe player currency carried in copper.
Gathering Node Foundctx.player.bag.usedSlotsnumberBag usedThe number of backpack slots currently occupied.
Gathering Node Foundctx.player.bag.maxSlotsnumberBag capacityThe current backpack capacity including equipped bag bonuses.
Gathering Node Foundctx.player.bag.freeSlotsnumberBag freeThe number of free backpack slots remaining.
Gathering Node Foundctx.player.derivedStats.maxLifenumberDerived statA derived stat value; other stat keys are available beside maxLife.
Gathering Node Foundctx.player.equipment.mainHand.itemDefinitionKeystringEquipped itemAn equipped item definition key. Replace mainHand with another equipment slot as needed.
Gathering Node Foundctx.player.equipment.mainHand.raritystringEquipped item rarityThe rarity of an equipped item.
Gathering Node Foundctx.player.equipment.mainHand.itemLevelnumberEquipped item levelThe required level of an equipped item.
Gathering Node Foundctx.player.equipment.mainHand.dropLevelnumberEquipped drop levelThe drop level used to generate an equipped item.
Gathering Node Foundctx.player.equipment.mainHand.stats.maxLifenumberEquipped item statA stat contribution from an equipped item; other stat keys are available beside maxLife.
Gathering Node Foundctx.player.equipment.mainHand.affixes[].keystringEquipped affixA rolled affix key on an equipped item.

Blocks

BlockCategorySummary
ContinueFlowReturns continue to the Storyteller.
PauseFlowReturns pause to the Storyteller.