Resource Connections
Resource connections move resources between nodes. Set the formula to control how many move, then use interval, transfer and limits when the timing or amount needs more control.


Transfer formulas should produce whole, non-negative resource counts. The available resources, destination rules and connection limits can reduce the amount that actually moves.
Properties
Select a Resource Connection to adjust it in the Properties panel on the right: its label and note, Type and value, Allow decimals, Interval, Transfer, Resource filter, Limits and Lever. Color and line width are on the floating toolbar that appears above a selected connection.
A connection's label is the handle of its line: drag the label to reshape the line, or hold Cmd (Ctrl on Windows) while dragging to slide the label along the line. Lines stay automatic until you shape them.
The label sits on the line clear of both ends. When a connection has both a name and a formula, the label shows both, shortened with an ellipsis if they are long; hover over it to read the full text. A connection marked as a Lever that has no name of its own is named after the two components it joins, for example “Wood → Houses”.
The sections below explain the properties specific to resource connections.


Label and description
Click Add a label to name the connection, and Add a note for a longer description. This will make it easier to identify the purpose of the connection as well as specific properties you might set. It is also good practice and will make your diagram more accessible to others.


Formula type and value
Resource Connections can transfer Resources at different rates and with different representations. The Type menu at the top of the panel lists number, chance, dice roll and formula for a connection that leaves a Source. A connection that leaves a Pool also offers all, and the outputs of a Gate offer Chance on a random Gate, Weights on a deterministic Gate, and Enable while on both. Here is how and when to use each one:




Number type
- This is the go-to Type for resource connections as this value represents the number of resource tokens used in the transfer. Below the value, the Allow decimals checkbox decides what happens to a fraction: when it is on, the fraction is transferred as it is, and when it is off, it is rounded to a whole number. This type should be used when modeling transfers with deterministic values (static or dynamically adjusted using Modifier state connections).


Chance type
- Chance moves resources with a probability. The first box holds the chance, from 0 to 100 %, and the second box holds how many resources move when the chance succeeds (1 by default). On the outputs of a random Gate, the chance is the share of that output.


- The chance cannot be above 100%. A connection set to a higher value, such as 140%, is disabled: it is grayed out on the canvas and moves nothing during a Play. To move more than one resource when the chance succeeds, type the number in the second box: a chance of 50% with 3 in the second box moves 3 resources about every second Step, as in the recording below.


All type
- Using the “all” type will ensure that, during a Play step, all available resources from the input are transferred to the output of the resource connection. Pools are the only compatible input node for an “all” connection since they require a quantifiable number of resources. Use this formula type when you want to transfer all the contents from pool A to pool B, or when targeting a Sink or delay


Dice roll type
- The Dice Roll formula type should be applied when the diagram requires random values on resource transfers. The first box of this type holds the number of dice you would like to roll, and the second one (after the “D”) holds the number of dice sides. As such, if you type 2D6, the formula will roll 2 dice with 6 faces, outputting a random integer value between 2 and 12. It is important to note that since this formula follows real-life random distributions, 2d6 is not equal to d12. For the d12 formula, the distribution of values is equal, while for 2d6 rolling 12 is 3 times more unlikely than rolling a 7 (the most probable outcome)


Dice Roll formula type will produce a new random value at the start of each Play step.
Formula type
The formula type is the jack of all trades since you can construct more advanced operations while also using the rest of the options. Additionally, this type is preferred (but not required) when typing Parameters (called Custom Variables in older guides) names and functions from the math.js library. We recommend using this type when performing basic operations or when adding specific math.js formulas such as randomInt(). Additionally, this formula type works well combined with a dice roll: if you type 10+ D6 the formula will output a random value in the interval [11,16].


Weights type (gate only)
- The Weights type is offered only when the origin node of the connection is a Gate whose Distribution is set to deterministic. A weight is written as a plain number such as 40, as a fraction such as 0.4, or as a percentage such as 40%, and it represents how likely each gate outcome is to be selected. If all gate outputs have the same weights, the distribution on the outcomes will be equal. If a gate has 2 outputs, one with 1 weight and the second one with 3 weights, the second output will be selected 3 times more often. Read more about this type on our Weighted gates documentation page.


Enable while (gate only)
- Enable while is offered on the outputs of both random and deterministic Gates. Pick a comparison in the Formula menu (greater than, greater or equal, less than, less or equal, equal, not equal or between) and enter the value to compare against. The transfer on the connection is commanded by the number of the Step. If you would like to activate a specific output only when Play reaches step x, an Enable while output on a Gate should be used. Once the gate is activated, it will count how many triggers it received and will activate paths where the number of steps matches the comparison you set. As such, if you have 2 outputs where the comparison is greater than 6, the gate will output resources on both outputs after 6 triggers. Read more about this type on our Conditional gates documentation page


More about formula types
We recommend taking a look at our Formulas article to learn more about all the possible ConnectionTypes.
Resource Connection will blink with an orange highlight if there are not enough Resources to be transferred or if the Resources available can’t be accepted by the Target.


Resources are whole tokens, unless you allow decimals.
The Allow decimals checkbox of a connection transfers fractions as they are, instead of rounding them to whole numbers. To keep whole tokens while modeling fractions, you can express your game’s Resources in sub-units so that
1 sub-unit = 1 Resource
An analogy for this would be working with the amount in ¢ (cents) instead of the amount in $ (dollars). To work with transferring 3.14 Resources, you’d need to multiply the whole flow by 100, resulting in 314 Resources.
A second solution to this representation would be to simply use the round() formula to remove the fractional part, if the decimal accuracy of the result is not needed in the system.
Interval
The Interval determines the number of Steps between transfers. If you want a Node in your diagram to be activated less than every Step, intervals are your best friend.
You can use this if your model requires transferring Resources every “x” Steps. E.g.: Formula = 1; Interval = 3 means 1 Resource is transferred every 3 Steps.
Please look at our Interval article to find out more.
Transfer timing: interval or instant
The Transfer switch of a Resource Connection has two options, Flow (the default) and Instant. Hover over either one and the app explains it.


Flow: moves resources one by one during the Step, each as its own token. If more Resources are being transferred between 2 Nodes, each will be treated as an individual entity.
Instant: moves all resources at the start of the Step. Forecasts always do this.
A Forecast always moves resources instantly, whichever option a connection has.
Filtering custom resources
Custom resources serve as defined properties that transform complex economic and gameplay concepts into quantifiable visual tokens. By assigning specific names and icons to nodes, you can intuitively track everything from manufacturing materials to player stats using distinct, real-time visual counterparts.
The Resource Filter option for Resource connections is a great tool when it comes to pools with multiple resource types stored simultaneously. As such, when you want to create a distribution system with multiple resource types, make sure that the Resource Filter is selected.
You can find out more about this in our Filter [Color coding] article.
Shuffle origin
Use the Shuffle resource types checkbox under the Resource filter in the Properties panel of a Resource Connection that leaves a Pool to randomize the transfer of differently colored Resources coming from the same origin Node.


By default, Resources from multiple Sources are transferred according to the LIFO principle (last in, first out). When using Shuffle origin, Resources will be transferred randomly from their origin to the target Node.
To emphasize, in the example above, we used the Custom Resource Filter.
Limits
You can limit the amount of Resources being transported by typing a minimum, a maximum or both into the Limits boxes (min and max).


In the example below, the Resource Connection is set to move 10 Resources from the Source to the Pool. However, due to its Limit being set to a maximum of 3, only 3 Resources will be moved.
Style properties
Select a connection and a floating toolbar appears above it. It sets the line color, the label’s font, font size, bold and alignment, and has an AI menu. None of these change the flow rate of a Resource Connection.
Connection styles
Every connection you draw is a right-angled (orthogonal) line that bends around the nodes it joins. The older straight, curved and entity styles are no longer offered for new connections. There is no line-style picker: a line in an older diagram keeps the style it was drawn in.

