Author Topic: Flickering/blinking lights  (Read 2680 times)

I am making a (It is a surprise) build, and i need lights that flicker randomly. That, or tell me how to event one, because relays arent working for me. they keep adding the "33" Delay everytime i try to set it, then nothing happens, it's either on or off.

input>self>firerelay
onrelay>self>firerelay(delayed)
onrelay>self>setlight[none]
onrelay>self>setlight[light](1/2 delayed)
or you could use VCE to make random delays

onrelay>self>vce_ifvariable[count][<=][0][1 4]
onvaraiblefalse>self>vce_modvariable[count][subtract][1]
onvaraibletrue>self>setlight[none]
onvaraibletrue>self>setlight[light] (off)
onvaraibletrue>self>toggleeventsenabled[2 3]
onvaraibletrue>self>vce_modvariable[count][randomnum][(max here)]
onrelay>self>firerelay (delayed)

that will make it toggle on/off every random number of relays with a delay that you set onrelay>self>firerelay to be



It isn't working D:
(I tried the second one)

did you make sure it's at the beginning? otherwise you'll need to edit the first line

This is already an addon...

This is already an addon...
well, there is the blink, but it isn't very random

did you make sure it's at the beginning? otherwise you'll need to edit the first line
I put what you wrote for the second one, and started it with Onactivated self firerelay.
I filled the count boxes with 1 and put the max as 5.
Where you said (off) i unchecked the box for event enabled.

onrelay>self>vce_ifvariable[count][<=][0][1 4]
onvaraiblefalse>self>vce_modvariable[count][subtract][1]
onvaraibletrue>self>setlight[none]
onvaraibletrue>self>setlight[light] (off)
onvaraibletrue>self>toggleeventsenabled[2 3]
onvaraibletrue>self>vce_modvariable[count][randomnum][(max here)]
onrelay>self>firerelay (delayed)
Shouldn't that be 1 5? Also, you forgot input>self>firerelay

Shouldn't that be 1 5? Also, you forgot input>self>firerelay
i thought i had it at 5... must've changed it to 4, then realised i forgot to add in the random number
and i figured he'd put the relay input at the end, or use a relay chain/named bricks

What am i supposed to put in [count] and [max]?

count is the varaible name, max should be the max number of relays before it will trigger, the minimum is 0, although you could change that by adding a setvariable before the randomnum