> For the complete documentation index, see [llms.txt](https://machinations.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://machinations.gitbook.io/docs/connections/resource-connections.md).

# Resource Connections

transfer Resources

Individual [Resources](https://machinations.gitbook.io/docs/resources) can move from [Node](https://machinations.gitbook.io/docs/nodes) to Node through a Machinations diagram via Resource Connections.&#x20;

Resource Connections can transfer Resources at different rates. A [Label](https://machinations.gitbook.io/docs/labels) beside the Resource Connection indicates how many Resources can move along the Connection in a single time step.

Set the Label of the Resource Connection in Functional > Label.

![](https://2667914601-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LGZcALyOGDKb9q0wdJ5%2F-MLqrcxtGuG2lE8E53GD%2F-MLqsCs4U-niUFyY_GEA%2Fimage.png?alt=media\&token=9b34c34d-7ee4-48df-a5d6-00d0f418221b)

If a Resource Connection has no Label, its rate is considered to be 1. You can also make a Resource Connection transfer an unlimited number of Resources in a single time step by using the word *all* as the Resource Connection’s Label.&#x20;

![Resource Connections exemplified](https://2667914601-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LGZcALyOGDKb9q0wdJ5%2F-LHXWLfaivZMpJbVSGeg%2F-LHXY3Mnt0ZEWP-GAkJ_%2FResourceConnections.jpg?alt=media\&token=1f0a5310-50eb-4fcf-a153-6f314753b165)

Machinations shows the Resource flow by animating the movement of the Resources along the Resource Connections.

{% hint style="info" %}
Any Connection leading into a Node is called an *input* to that Node, while any Connection leaving a Node is called an *output* of that Node.&#x20;

The origin of a Connection is the Node where the Connection starts, and its Target is the Node where it ends.
{% endhint %}

{% embed url="<https://www.youtube.com/watch?v=aVDNsNKfruo>" %}

{% hint style="warning" %}
A Resource Connection will blink if there are not enough Resources to be transferred (end of the video above), or if the Resources available can't be accepted by the Target (eg. in a colour coded diagram).
{% endhint %}

{% hint style="danger" %}
There are multiple rates at which Resources can flow in a diagram (apart from the examples presented in this article). For more depth, make sure you check out:
{% endhint %}

### Shuffle Origin

Use the Shuffle Origin option in a Resource Connection's Functional panel to randomise the transfer of differently coloured Resources coming from the same origin Node.

![](https://2667914601-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LGZcALyOGDKb9q0wdJ5%2F-MLqrcxtGuG2lE8E53GD%2F-MLqsQMROp0Ic7m15tnY%2Fimage.png?alt=media\&token=2ecf13fd-6453-44e1-8215-2c3a1c41bea2)

By default, Resources from multiple Sources are transferred according to the LIFO principle (last in, first out). When using Shuffle Source, Resources will be transferred randomly from its origin to the target Node.

<div align="left"><img src="https://2667914601-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LGZcALyOGDKb9q0wdJ5%2F-M5baQCcKRoxmYhaV-M0%2F-M5bbO8TtFtsGGlGEeXh%2FScreen%20Recording%202020-04-23%20at%2006.17%20PM.gif?alt=media&amp;token=372b5994-1ab0-4107-a7b4-6aa764ece706" alt=""></div>

For emphasis, in the example above, we used [Colour Coding](/docs/nodes-properties/filter-diagrams.md).

### Fractional Values

Machinations diagrams do not handle fractional values.

To emulate fractional values you can express your game's Resources in subunits, so that&#x20;

`1 subunit = 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.
