ProtoFlux:Indirect Decrement: Difference between revisions

From Resonite Wiki
m forgot a word still saying written
indirect not actions
Line 45: Line 45:
{{Stub}}
{{Stub}}


[[Category:ProtoFlux:Actions]]
[[Category:ProtoFlux:Actions:Indirect]]

Revision as of 01:10, 3 February 2024

Indirect Decrement
*
OnWritten
Variable
OnFail
Actions

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

Keep in mind this node will only work if given variables that can be decremented. Trying to decrement 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 decrement, which can be useful to reduce the nodes needed to decrease 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 decrement by 1.

Outputs

OnWritten (Continuation)

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

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 IField`1

Examples

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