Ideas & systems

Chance and weights

The Ledger counts luck in two ways. One is a coin tossed for each prize; the other is a single hat of tickets. They look alike on the page, so read them apart.

What it is

Beside a reward you may see a number. It means one of two things, depending on how the reward is set up.

Kind What the number is How it is used
A chance A percent from 0 to 100. In the Create Component form it is the % Chance field. Each reward rolls on its own. A chance of 100 always happens. A chance of 50 happens about half the time.
A weight A share of a draw, with no top limit in the rules. Edit Mode takes whole numbers from 1 to 9999. All tickets in the action share one draw. Exactly one ticket wins.

A weight is not a percentage, even when the weights add up to 100. The tickets are single rewards and outcomes, including the empty ticket Nothing happens. Stat changes that sit on their own have a chance too, and roll on it alone.

How it works

  1. Rewards that stand alone roll alone. Each reward with a chance rolls by itself. One can come, several, or none.
  2. Tickets share one draw. The single rewards and the outcomes of an action go into one hat. One ticket is drawn. Nothing else in the hat is given.
  3. A ticket's share is its weight over the total. Weights of 30, 30, 20 and 20 total 100, so the shares are 30, 30, 20 and 20 percent. Weights of 3, 3, 2 and 2 give the same shares.
  4. Only the proportions matter. Add a fifth ticket of weight 100 to the first set. The total is 200, and every old share is halved: the first becomes 15 percent.
  5. The winner is given in full. It does not roll again. Its own chance is not used.
  6. Each opening is a fresh draw. What came up last time does not change what comes up next. To find the chance of a run of results, multiply the single-draw chances.
  7. A bonus changes amounts. It can make a prize a little bigger. It does not change a weight.

Edit Mode shows each card's share, such as "Drawn about 30% of the time", so you need not do the sums.

In Vespera

In Vespera: two Weathered Satchels Play it

The Weathered Satchel's four tickets are weights of 30, 30, 20 and 20: 2 Seed Packets, 5 Vesper Marks, 1 Ember Tonic and nothing. They total 100, so the weights read like percents, but they are weights.

Nothing has a weight of 20, so one opening in five comes up empty. The chance that a satchel gives something is 0.8. For two satchels, the chance that neither comes up empty is 0.8 × 0.8 = 0.64. The chance that at least one does is 0.36.

The satchel's 5 XP has a chance of 100 and sits outside the draw, so it comes every time. In play, the two satchels gave "+2 Seed Packets" and "+6 Vesper Marks". The 6 is 5 Marks plus the Trader's bonus of 25 percent, 6.25, rounded to the nearest whole number. The empty ticket was never drawn in those two openings.

Good to know

  • Both numbers sit in the same boxes. The chance of a plain reward and the weight of a ticket look alike. Check whether the reward is a single reward or an outcome.
  • A lone ticket always wins. A draw of one ticket gives that ticket every time, whatever its weight. If you want a real chance, add a second ticket such as Nothing happens.
  • Plain rewards beside a draw still roll. Rewards and stat changes outside the draw happen every time, on their own chances, as well as the one prize drawn. Edit Mode warns about this under Outcomes.
  • Weights are whole numbers. A weight of 33.9 counts as 33, and a weight below 1 never comes up.
Under the hood
  • A draw picks a whole random number from 0 up to the total weight, once for each time the action finishes. The first ticket whose running total goes past that number wins.
  • A ticket's weight is cut to a whole number first, so 33.9 counts as 33. A ticket below 1 is left out. The server does not check weights, so the property window and the admin page are the only guard.
  • A group of outcomes has the weight of its heaviest member. The window copies a new weight to every member of the group when you save.
  • On an action that runs several times at once, such as a stack made on a Structure, the draw happens once and the winner is applied each time.
  • A buff can raise a reward's own chance, by points or by percent, to at most 100. It never changes a ticket's weight.
  • Costs and requirements do not use chance. Setting one on them does nothing.