Component types
Loot box
A Maker who leaves a satchel on the road is making a small promise. A Loot box is the promise, and the Ledger keeps what is inside.
What it is
A Loot box is something the player opens once to get a reward. It can sit in a scene or be carried in the bag. Opening it runs its Open action, which gives the loot.
It is a one-shot reward. It is not a Container, which is storage the player takes things out of again and again.
Use it for
- A treasure sack on the road with a surprise inside.
- A reward crate at the end of a quest.
- A mystery box the player carries and opens later.
- A table of finds where one thing is given: common, rare or epic.
Actions it can have
| Action | What it does here |
|---|---|
| Open | Gives the loot. Often it gives one thing out of several, and it can remove the box afterwards. |
Setting it up
The Create Component dialog has no Loot box choice, so a box is not made there. In Vespera the Weathered Satchel was made with the MultiBit Agent.
- Select the Loot box and open its property window.
- If it has no action yet, click Add action ▾ and choose Let players open this.
- Under Outcomes, each pick that the box can give shows as a card called A single reward. It has a weight and shows its share, such as "Drawn about 33% of the time". An empty outcome shows as "Nothing happens." (see Nothing happens)
- To make the box disappear once opened, tick Remove it after it runs under Other rules. It removes the whole stack the box was used on, not just one.
Edit Mode edits the picks of an existing draw. New alternatives you add there are outcomes. The weights are explained in A single reward and Chance and weights.
In Vespera: the Weathered Satchel Play it
Two Weathered Satchels lie on the Hollow Road. Each reads "A satchel left on the Road, its strap rotted through." Opening one is a single draw from four tickets:
| Result | Weight |
|---|---|
| 2 Seed Packets | 30 |
| 5 Vesper Marks | 30 |
| 1 Ember Tonic | 20 |
| Nothing | 20 |
The weights add up to 100 here, but they are weights, not percentages. One ticket wins each time. The Open also gives 5 XP and removes the satchel.
Each opening was played once. The first gave "+2 Seed Packets". The second gave "+6 Vesper Marks": 5 Marks, and the Trader's bonus of 25 percent makes 6.25, rounded to the nearest whole number. Both results appeared as floating text, not as toasts, and each satchel was gone from the scene afterward.
Good to know
- One draw, one result. The weights are shares of the whole draw. They need not add up to 100. See Chance and weights.
- Nothing can be a ticket. A "Nothing happens" outcome with a weight makes an empty box possible.
- Carry and move switches. The satchel cannot be carried or dragged. Hints and flags on a component explains the two switches.
- A stack goes all at once. Removing the box removes the whole stack it was used on. Place each box on its own, as Vespera places its two satchels.
- A bonus changes amounts, not weights. The Trader's bonus makes the Marks a little bigger when they are drawn. It does not make them more likely.
Under the hood
- A Loot box is unique by default and can be carried. In Vespera the Weathered Satchel is set so it cannot be carried or dragged.
- The draw is one pick per opening. A single pick is a weighted reward, and several-part outcomes are written as outcomes of the same action. A weighted reward cannot sit inside an outcome.
- A weight that is below 1 is left out of the draw, and a weight is cut to a whole number, so 33.9 counts as 33.
- A bonus such as the Trader's changes the amount that is given. It never changes the weights.