Instructions/Set Number

From Desynced Wiki
Revision as of 19:48, 13 September 2023 by Johan (talk | contribs) (informational)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Set Number
     
     Sets the numerical/coordinate part of a value
Lua ID set_number
Category Math
Icon Compare Values.png
Argument One: Type Input
Argument One: Name Value
Argument Two: Type Input
Argument Two: Name Num/Coord
Argument Two: Data Type coord_num
Argument Three: Type Output
Argument Three: Name To



Description[edit | edit source]

Assigns a Number to the first input which is typically a pre-existing Parameter or Variable.

Uses[edit | edit source]

Usually used to force a specified or dynamic Number onto a Variable, usually before feeding the output into another instruction such as Drop Off Items.

The Value in the top input is preserved unless the bottom input is a coordinate.

Similar Instructions[edit | edit source]

Multiply, Subtract, Add, Copy, Set to Component