Connections

There are four types of connections in the Nodanomics Software. Three of them are visual connections and the other is the Tag System itself.

Data Connection

Image 1. "Player EXP Origin" Origin Node is connected to the "Player EXP" Data Node through the use of Data Connections, represented by the green connection points on the nodes. A value of "150" is set to the Data Connection.

Data Connections are responsible for connecting Data-type Nodes together.

They are color coded with the color Green.

The amount of resources to be drained or generated is determined by the connection's “Formula” property.

This property can be a static or a dynamic value. A static value would be a constant number and a dynamic value would be when the Tag System is used.

Image 2. The use of the Tag System in a Data Connection. In this case, when "Random Amount Origin" is executed, the value to be generated into Data Node A is going to be the result from the "Random Amount" Formula Node (97.52). If the value in the Formula Node changes, the Data Connection value will also change accordingly.

One Origin or Sink can have multiple Data Connections connected to them and they should generate or drain the amount of resources that each connection has in their values.

Image 3. There are 3 Data Nodes connected into a single Origin Node. When this Origin Node is executed, the values of each Data Connection is generated to their individual targets.

Logic Connection

Image 4. Logic Connection

Logic Connections are similar in nature to the Tag System.

They are color coded with the color Blue.

With Logic Connections, you can connect Data Nodes into Formula Nodes using a custom variable name.


Chain Connection

Image 5. Chain Connection

This connection type is responsible for defining the execution order, or chain, in the diagram.

They are color coded with the color Orange and under special circumstances, the colors Red and White.

The condition property defines if the connection is enabled or disabled.

If the connection is enabled, that is, the condition field expression has returned “true”, once the previous node has finished its execution, the next node in the chain is going to be executed. On the other hand, if the connection is disabled, that is, if the condition field expression has returned “false”, it will sever the chain, not executing the next node(s) connected to it.

Since every Chain Connection is enabled by default, the value of the "Condition" property field is "true" by default.

The tag system can be used in the "Condition" property field to calculate the logic expression. This is very useful to create if statements./

Examples

equal(tagA, true) * equal(tagB, true) 
equal(formulaA, 19) * equal(formulaB, 0)

tagA == true && tagB == true
formulaA == 19 && formulaB == 0

Last updated