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
| Trigger | Input | Type | Description |
|---|---|---|---|
| Loot Container Found | Container type | string | The kind of container that was found. |
| Loot Container Found | Source event | id | The game event where the container appeared. |
| Loot Container Found | Region | string | The area where the container was found. |
Blocks
| Block | Category | Summary |
|---|---|---|
| Open container | Container | Opens the container found by the event. |
| Check each item | Loot | Loops over each item generated by Open container. |
| If item is rare | Rules | Checks whether the current item rarity is rare. |
| If item is weapon | Rules | Checks whether the current item category is weapon. |
| 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. |