Add-Ons >> Boards >> Events >> FireRelayNum

FireRelayNum

Uploaded by McTwist
Events
Event_FireRelayNum.zip
Aug 19th 2018, 8:47 AM
1064

Description

Example

onActivate -> Self -> fireRelayNum ( "1", "Brick" )
onRelay -> Self -> setColor ( "blue" )
onRelay -> Self -> setColor ( "white" )

The brick will be colored blue. It is also possible to insert multiple numbers like:

1 5-7 9 11 15-17

The list is the direction of the event where Brick is the default current brick.

For fireRelayRandomNum, it will pick only one of the relays.

onActivate -> Self -> fireRelayRandomNum ( "1-2", "Brick" )
onRelay -> Self -> setColor ( "blue" )
onRelay -> Self -> setColor ( "white" )

The brick will randomly become blue or white.

Protip: Adding the same number more times in fireRelayRandomNum results in it being picked more frequently.

"If the event does not come to you, you come to it."

Updates

Version 1.11

September 25, 2020

Version 1.10

September 1, 2020

Version 1.9

May 6, 2019

Bugs

No bugs reported.
Download
v1.11
There are no comments here yet.