Pools

5 min read

Tip

Pools (P) store Resources and are the building blocks of Machinations. They can receive Resources and send them forward to other Nodes.

Select a Pool to adjust it in the Properties panel on the right: its label and note, Trigger, Direction (Pull or Push), Resources, Initial quantity and Capacity, and whether it is a lever or shown in the chart. Color, line width and text style are on the floating toolbar that appears above a selected node.

Properties

Pool properties panel: Behavior summary, the Lever and Outcome switches, the Trigger buttons (Agentic, Auto, On enable, Passive, On click), Direction, Resources, Initial quantity and Capacity.Pool properties panel: Behavior summary, the Lever and Outcome switches, the Trigger buttons (Agentic, Auto, On enable, Passive, On click), Direction, Resources, Initial quantity and Capacity.
Pool properties in the Properties panel

Label

Top of the Pool properties panel showing the Pool type and its number, the Add a label line and the Add a note line.Top of the Pool properties panel showing the Pool type and its number, the Add a label line and the Add a note line.

Click Add a label at the top of the Properties panel and type a name for your Pool. Once your diagram becomes more complex, a name makes finding a specific component much easier. The label is also the name shown on the chart card and in the Play summary. Under the label, Add a note lets you write a longer remark.

Trigger

As with any other Node in a Machinations diagram, the Trigger decides when a Pool acts. It is a row of five buttons: Agentic, Auto, On enable, Passive and On click. A new Pool starts as Passive. On click fires only when you click the Pool during a Play, and never in a Forecast. Read Trigger Mode to see how each choice affects activation.

The Trigger row with five buttons: Agentic, Auto, On enable, Passive and On click.The Trigger row with five buttons: Agentic, Auto, On enable, Passive and On click.

Action

The Direction switch with Pull and Push, and the checkbox Pull the specified amounts in full.The Direction switch with Pull and Push, and the checkbox Pull the specified amounts in full.
Direction screenshot

Pools can be set to either Pull or Push Resources with the Direction switch, depending on what the Pool needs to do once it is activated. Under the switch, the checkbox Pull all or nothing (or Push all or nothing when the direction is Push) makes the Pool move a connection's amount only when the whole amount is available. You can learn more about these settings in the Pushing and Pulling Resources article.

Resources

A small mark in the Pool’s corner shows the Resource type it keeps; hover over it to read the name. A Pool needs no input to hold Resources: a Pool with nothing flowing in is shown as a warning in the Runtime debugger, not an error. In the Initial quantity field, you can set the number of Resources with which a Pool starts. The default is 0. A Pool cannot have negative values except when influenced by a State Connection. If a Pool has a negative value, it cannot lose its resources until it reaches a positive value.

The Initial quantity field of a Pool set to 0.The Initial quantity field of a Pool set to 0.

Machinations uses color to distinguish between different types of Resources. The Resources menu lists Graphite, Green, Blue, Orange and Red, has a search box, and a New resource button to add your own.

The Resources menu of a Pool listing Tokens, Coins, Gems, Energy, Points, Health and Items, with a search box and a New resource button.The Resources menu of a Pool listing Tokens, Coins, Gems, Energy, Points, Health and Items, with a search box and a New resource button.
Note

A Pool can store more than one type of Resource. This allows you to model compound entities.

Please take a look at the example below.

A Pool named Chest receives Gems from the Gem Vault and Coins from the Coin Vault, one of each every Step; it holds both kinds and its total counts up by two.A Pool named Chest receives Gems from the Gem Vault and Coins from the Coin Vault, one of each every Step; it holds both kinds and its total counts up by two.

Overflow

The Overflow switch appears once you give the Pool a finite Capacity. It sets what happens to the Resources that are sent toward the Pool after it reaches its limit. Block makes the Pool refuse the incoming Resources. Sink makes the Pool consume the extra Resources automatically.

Capacity set to 10, with the Overflow switch showing Block and Sink.Capacity set to 10, with the Overflow switch showing Block and Sink.
Capacity set to 10 and the Overflow switch

If a Resource is sunk, it is removed from the modeled system.

Capacity

Use Capacity to set how many Resources the Pool can store. A new Pool shows an infinity sign, which means no limit. The Pool will not be able to accept more Resources above the amount set in Capacity.

A Pool shows its Resources as small tokens while it holds only a few of them, and as a number when it holds many. For example, a Pool that holds 41 Resources shows the number 41. The old display limit field is no longer in the Properties panel.

Outcome and Lever

The two switches sit at the top of the Properties panel, under the Behavior summary. Switch on Outcome to plot the Pool on the chart. New Pools have it on, and the Pool then appears as a card under the canvas with its final value and a small trend line. The chart plots the amount of Resources the Pool stores at each step during a Play. Switch on Lever to let a scenario change the Pool's value.

The chart uses the Pool's label and color for its line and card.

Values

Fractional Values

Warning

A Pool holds whole Resources unless a connection that feeds it has Allow decimals switched on; then it can hold fractions. To keep whole tokens while modelling fractions, express quantities in sub-units so that

1 sub-unit = 1 Resource

In the Player’s Bank Account example, the value in the account should be expressed in cents.

Negative Values

Pools support negative values but only as the result of a State Connection‘s effect on them.

Each Credit that enters Purchases takes 3 from Bank Account through a State connection, so the Bank Account falls below zero; Payday adds 10 every 4 Steps.Each Credit that enters Purchases takes 3 from Bank Account through a State connection, so the Bank Account falls below zero; Payday adds 10 every 4 Steps.

In the example above, the Bank Account is affected by the number of Resources in Purchases. Whenever Purchases receives a Resource, the Bank Account loses 3 Resources. If the Bank Account has less than 3 Resources, its value becomes negative. Before a Play, the label of that State Connection reads “-3 per” followed by a Resource dot; during the Play it shows -3.

Important

While a Pool has a negative value, it can only accept Resources. Any other output event will be delayed until the Pool’s value is positive. In the animation, the Bank Account is set to push 4 Credits to the Savings Jar on every Step, yet the Savings Jar stays at 0 while the Bank Account is negative.

Bank Account is set to push 4 Credits a Step to Savings Jar, but while Bank Account is negative nothing leaves it and the Savings Jar stays at 0.Bank Account is set to push 4 Credits a Step to Savings Jar, but while Bank Account is negative nothing leaves it and the Savings Jar stays at 0.

Selected models to Play and remix: Selected game economy models, Selected reward system models.