- Easy Level Progression
- Loot & Craft
- Increase base stats
- Balancing difficulty and score
- Level progress planning
- Infinite Runner Game Loop
- Modelling a Gacha Box
- Balancing a Battle Pass
- Artificial Player
- Balancing a Hyper casual game
- Player Skill
- Web3 - Constant Product Market Maker
Unity Plugin (UP) & API
Account & Billing
State Connections (Alt+C) are used to modify a Node, a Resource Connection, or in rare cases, other State Connections.
The state of a Machinations diagram refers to the current distribution of Resources among its Nodes. When Resources get redistributed, the State of the diagram/system changes.
You can adjust the properties of a selected State Connection, such as Label, Formula, Filter, Style, and Position, in the Properties panel on the right.
We will explain these properties below.
You can add descriptive text or annotations in the Label field. This will make it easier to identify the purpose of the connection. It is also good practice and will make your diagram more accessible to others.
State Connections allow you to modify the flow rates of Resource Connections or to trigger Nodes to fire, activate or deactivate them in response to changes in Resource distribution.
The Formula on a State Connection indicates how or under which conditions a target Node or Connection is or will be changed.
You may use Custom Variables, and functions from the math.js library in the Formula field.
The default formula value of a State Connection is “+1”. This will apply any change in the origin node’s value to the target node.
Please read our State Connections Formulas article to learn more.
State Connections will respond to Resources based on their color similar to Resource Connections.
Once the filter is enabled, the formula of a State Connection will only be executed if a Resource with matching color passes through a Gate or Pool.
- When a Resource gets to Pool B it activates Source C
- When the number of Resources in Pool B is >=6 activate transfer
- When Pool B has 3 or more Resources activates add
In this example, there are 3 controlling Nodes: Pools B, D and F.
- Pool B activates Source C as soon it receives a Resource from the automatic Source A.
- When B hits a number of Resources equal to or bigger than 6, it also activates the transfer between Source E and Pool F.
- Pool F is in itself a controlling Node and it will affect the flow of Resources between C and D, by adding +1 each Step.
- Pool D activates the Stop End Condition when it collects 15 Resources. The diagram stops executing.
Formulas on State Connections indicate how or under which conditions they change the Target. Please review the following articles to find out more about: