Scrollbound
Macro APITriggers

Loot Container Found

Runs when a container appears during a run.

Category
Loot
Runs when
A container can be opened.
Summary
Runs when a container appears during a run.
Version
1

Events

  • system-loot-container-found

Inputs

TriggerInputTypeDescription
Loot Container FoundContainer typestringThe kind of container that was found.
Loot Container FoundSource eventidThe game event where the container appeared.
Loot Container FoundRegionstringThe area where the container was found.

Blocks

BlockCategorySummary
Open containerContainerOpens the container found by the event.
Check each itemLootLoops over each item generated by Open container.
If item is rareRulesChecks whether the current item rarity is rare.
If item is weaponRulesChecks whether the current item category is weapon.
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.