ProtoFlux:Indirect Increment: Difference between revisions

From Resonite Wiki
forgot the catgeory
 
and I suck at editing... MASSIVELY
Line 1: Line 1:
{{#Invoke:ProtoFlux|GenerateUI
{{#Invoke:ProtoFlux|GenerateUI
|Name=Indirect Decrement
|Name=Indirect Increment
|Category=Actions
|Category=Indirect
|Inputs=
|Inputs=
[
[
Line 14: Line 14:
|}}
|}}


Indirect decrements can be commonly found in legacy content that has been migrated from other platforms.
Indirect increments can be commonly found in legacy content that has been migrated from other platforms.
Indirect decrements take Variable ([[Type:Variable|Variable]]) as an input, and will decrease the value that is wrapped by Variable ([[Type:Variable|Variable]]) by one.  
Indirect increments take Variable ([[Type:Variable|Variable]]) as an input, and will increase the value that is wrapped by Variable ([[Type:Variable|Variable]]) by one.  


{{Note|Keep in mind this node will only work if given variables that can be decremented. Trying to decrement a non numeric value like a [[Type:Bool|Boolean]] will not work. |information}}
{{Note|Keep in mind this node will only work if given variables that can be increased. Trying to increase a non numeric value like a [[Type:Bool|Boolean]] will not work. |information}}


This is also useful for [[ProtoFlux:Multiplex|Multiplexing]] multiple variables into the Variable ([[Type:Variable|Variable]]) connection on the indirect decrement, which can be useful to reduce the nodes needed to decrease the values of a set list of variables during a [[ProtoFlux:For|For]] or [[ProtoFlux:While|While]] loop.
This is also useful for [[ProtoFlux:Multiplex|Multiplexing]] multiple variables into the Variable ([[Type:Variable|Variable]]) connection on the indirect increment, which can be useful to reduce the nodes needed to increase the values of a set list of variables during a [[ProtoFlux:For|For]] or [[ProtoFlux:While|While]] loop.


== Inputs ==
== Inputs ==
Line 29: Line 29:
=== Variable ([[Type:Variable|Variable]] Generic)===
=== Variable ([[Type:Variable|Variable]] Generic)===


The [[Type:Variable|Variable]] to decrement by 1.
The [[Type:Variable|Variable]] to increment by 1.


== Outputs ==
== Outputs ==
Line 35: Line 35:
=== OnWritten (Continuation) ===
=== OnWritten (Continuation) ===


sends an impulse after * (Call) has been impulsed and the value has been decremented .
sends an impulse after * (Call) has been impulsed and the value has been incremented .


=== OnFail (Continuation) ===
=== OnFail (Continuation) ===


sends an impulse after * (Call) has been impulsed and the value wasn't able to be decremented due to a missing target or the variable not wrapping a valid [[Type:IField`1|IField`1]]
sends an impulse after * (Call) has been impulsed and the value wasn't able to be incremented due to a missing target or the variable not wrapping a valid [[Type:IField`1|IField`1]]


== Examples ==
== Examples ==

Revision as of 01:09, 3 February 2024

Indirect Increment
*
OnWritten
Variable
OnFail
Indirect

Indirect increments can be commonly found in legacy content that has been migrated from other platforms. Indirect increments take Variable (Variable) as an input, and will increase the value that is wrapped by Variable (Variable) by one.

Keep in mind this node will only work if given variables that can be increased. Trying to increase a non numeric value like a Boolean will not work.

This is also useful for Multiplexing multiple variables into the Variable (Variable) connection on the indirect increment, which can be useful to reduce the nodes needed to increase the values of a set list of variables during a For or While loop.

Inputs

* (Call)

Call this to write the value.

Variable (Variable Generic)

The Variable to increment by 1.

Outputs

OnWritten (Continuation)

sends an impulse after * (Call) has been impulsed and the value has been incremented .

OnFail (Continuation)

sends an impulse after * (Call) has been impulsed and the value wasn't able to be incremented due to a missing target or the variable not wrapping a valid IField`1

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.