Machinations Documentation
  • What is Machinations?
  • ☉Getting Started
    • Explore
    • Interface
    • Framework Basics
    • How-To Videos
  • ▷ Simulations
    • Run Modes
    • Charts
  • ⦽ Basic Nodes
    • Pools
    • Sources
    • Drains
  • ⇢ Connections
    • Resource Connections
    • State Connections
      • Label Modifiers
      • Node Modifiers
      • Triggers
      • Activators
    • Labels
  • ⧰ Advanced Nodes
  • Converters & Traders
  • Gates
    • Sorting Gates
    • Trigger Gates
    • Mixed Gates
  • Registers
    • Math.js Functions
  • Delays & Queues
  • End Conditions
  • Artificial Player
  • ✑ Nodes Properties
    • Activation Modes
    • Pulling & Pushing Resources
    • Filter (Colour Coding)
  • ⚯ Collaboration
    • Live Collaborative Editing
    • Public Diagrams
    • Google Sheets
    • Tags
  • ♔ Accounts
    • User Profile
    • Pricing
    • Billing Policy
    • Team Management
  • ☆ Tips
    • Shortcuts
    • Best Practices
  • ⚙️Unity Plugin (UP) & API
    • Game Engine Plugin
    • Quick Start
    • Main Concepts
    • Real-Time Sync
    • Unity Integration Guide
    • Known Issues
    • Key Features
      • Game-Aware Analytics
      • Local Cache
      • Game State Awareness
      • Data Formats & Handoff
  • ≏ Evolution
    • Changelog
    • Framework Diff Log
  • 〄 Localisations
  • 🇷🇺 RU by Lev "evlko" Kobelev
Powered by GitBook
On this page
  1. ⇢ Connections
  2. State Connections

Node Modifiers

PreviousLabel ModifiersNextTriggers

Last updated 5 years ago

Node Modifiers connect two .

They enable changes in the state of one Node (its origin) to modify the number of Resources in another Node (the target Node), according to the Node Modifier’s Label (M). When the origin Node changes, it influences the target Node in the next time step. More than one origin Node can modify a target Node. The formula for this is nearly identical to the formula used for Label Modifiers:

Nt+1=Nt+∑(M×∆S) Nt+1 = Nt + ∑ (M × ∆S)Nt+1=Nt+∑(M×∆S)

Take this example from Settlers of Catan

Players gain 1 Victory Point for each settlement and 2 Victory Points for each city. The number of settlements is one Origin Node, the number of cities is a second Origin Node, and both modify the Target Node, which is the player’s total number of victory points.

Node Modifiers can have Labels that are fractions, for example +1/3 or -2/4.

In this case, the number of Resources of a target Node is modified by the value indicated by the fraction’s numerator every time there is a change to the number of Resources on the origin divided by the fraction’s denominator and rounded down. This way, when the number of resources on an origin node changes from 7 to 8, the number of resources on the target is lowered by 2 if the modifier is -2/4, but if the modifier is +1/3, the number of resources on the target node does not change.

For a more in depth explanation of how Labels work, read

🔧
Nodes