Source

From MachinationsWiki
Jump to: navigation, search

A Source is a node that generates resources. It is one of the Four Economic Functions.

Sources can have four different activation modes:

  1. Automatic Sources fire once every time step (or once every turn for Turn-Based Diagrams).
  2. Interactive Sources fire when a user activates it by clicking on it.
  3. Starting Sources fire once when a diagram starts running.
  4. Passive Sources only fire when triggered.

The Label of an output Resource Connection determines the number of resources that are produced every time a source is fired. You can use random values or fractions for these values. When using a fraction a source will not produce a resource every time it fires, instead a fraction of 0.1 causes the source to produce a resource once for avery ten times it fires. When using a probability (e.g. 25%) the probability indicates the chance a single resource is produced every time the Source fires.

Sources can be made periodic by adding '/x' to the end of the label. Where x indicates interval in seconds or turns. For example using '5/3' will create a source that creates a burst of 5 resources every 3 seconds or turns.

Sources can have multiple outputs. When this is the case, resources are produced according to the start modifiers of all outgoing connections.

<html> <iframe width="800" height="600" src="../Machinations.swf?file=../v40/concepts/sources.xml&start=true"></iframe> </html>