Wire splits: Difference between revisions

From Fancade Wiki
(Adapted "How to loop over a small set of known variables easily?" article from old wiki, added missing image)
m (Clarify)
 
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 connections are reached for that wire.
Any wired outputs will display the wire able to be plugged again, until [[Limitations in Fancade scripting|the limit]] of eight connections have been reached for that wire.


It is one of the factors of [[script limit]].
It is one of the factors of [[script limit]].

Latest revision as of 04:28, 9 January 2025

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. Any wired outputs will display the wire able to be plugged again, until the limit of eight connections have been reached for that wire.

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 Lists with Loops.

Wire splits used to to set positions of multiple objects using just one Set Position

Trivia

In an early alpha of the game, the game originally had script blocks specifically used for splitting wires.