Wire splits: Difference between revisions
Adapted "How to loop over a small set of known variables easily?" article from old wiki, added missing image
-u ndefined- (talk | contribs) mNo edit summary |
(Adapted "How to loop over a small set of known variables easily?" article from old wiki, added missing image) |
||
Line 1: | Line 1: | ||
A '''wire split''' occurs upon linking an output wire to two or more inputs, and vice versa. | A '''wire split''' occurs upon linking an output wire to two or more inputs, and vice versa. | ||
To split a wire, tap the selected script block once again. | To split a wire, tap the selected script block once again. | ||
Any wired outputs will display the wire able to be plugged again, until | Any wired outputs will display the wire able to be plugged again, until connections are reached for that wire. | ||
It is one of the factors of [[script limit]]. | It is one of the factors of [[script limit]]. | ||
== Examples == | |||
Wire splits can be used to avoid duplicating code for a small set of known values, while being easier to use than [[List]]s with [[Loop]]s. | |||
[[File:Wire split iterate.png|thumb|Wire splits used to to set positions of multiple objects using just one [[Set Position]]]] | |||
== Trivia == | == Trivia == | ||
Line 9: | Line 15: | ||
In an early alpha of the game, the game originally had script blocks specifically used for splitting wires. | In an early alpha of the game, the game originally had script blocks specifically used for splitting wires. | ||
[[File:20170417181000.jpg|left|thumb]] | |||
[[Category:Scripting]] | [[Category:Scripting]] |