Requirements & effects
Converts a share of what went in
A mill does not take a sack for a sack. It takes a share of the harvest and hands back flour. This is the rule for that kind of trade.
What it is
Converts a share of what went in is an effect. When the action finishes, it looks at how many of one component the player holds. It takes a percent of that count and gives it back as a different component. You can choose to use up the part it took.
The number you set is a percent, not an amount. Fifty means half.
Example
Converts 50% of the player's Wheat Sheaf into Flour, using up the part converted.
Which actions use it
Make things only.
- Make things: a Structure that turns a stack into something else.
Settings
| Setting | What it means | Example |
|---|---|---|
| Gives | The component that comes out. | Flour |
| From | The component whose stack is counted. Required. | Wheat Sheaf |
| Percent | The share of the stack to convert each round. A range can be set. | 50 |
| Chance | The chance that the conversion happens. | 100 |
| Used up | Whether the converted part is taken from the stack. | ticked |
| Where | Which bag or place holds the stack, and gets the output. | the player's bag |
The Edit Mode window shows this rule as a read-only line. It never changes it. Use the Advanced editor, or ask the assistant.
In Vespera
In Vespera: the Mill Play it
The Mill's Grind action needs 2 Wheat Sheaf in the player's bag, and keeps them. It also converts 50% of the player's Wheat Sheaf into Flour, and uses up the part converted. A player who starts with 12 Wheat Sheaf sees this:
| Round | Wheat Sheaf before | Wheat Sheaf used | Flour gained |
|---|---|---|---|
| 1 | 12 | 6 | 6 |
| 2 | 6 | 3 | 3 |
| 3 | 3 | 2 | 2 |
In round 3, half of 3 is 1.5, and it came out as 2. The next round would need at least 2 Wheat Sheaf and the bag held 1, so the Mill stopped.
Good to know
- A share, not a count. For "1 wood in, 1 lumber out", use Needs (a cost) and Gives instead.
- Pair it with a floor. The Mill also needs at least 2 Wheat Sheaf, kept, so it stops before the stack is too small to matter.
- The stack is read where you say. If the percent is of the player's bag, the Flour goes into the player's bag too.
Under the hood
- The percent is taken from the first stack of that exact level that the player or the place holds. The output goes into the same inventory.
- Run many rounds at once and the percent is taken round by round from what is left, so it never gives more than the stack holds.
- Chance decides whether the conversion happens at all in a given round.
- After a conversion, the game counts one run, not many, for every later effect on the same action. On a stack of Structures that run together, those later effects apply once. This is a known weakness of the engine.
- The property window never edits this rule. It shows it as a read-only line, such as Each run gives 10% to 14% of this place's Aware as Pledge, using that part up.
- Edit it in the Advanced editor, or ask the assistant. The assistant can write it for a percent of a carried stack, and needs the stack named.