Blockland Forums > Help
Is there a way to make events go past 30 seconds?
(1/2) > >>
gr8dayseth:
^
It's kinda bugging me, cause I need this for a map I'm making.
gr8dayseth:
Bumpe
otto-san:
You could cleverly event with relays and toggleeventenabled, or use multiple bricks.
Alyx Vance:
[30000]Onactive->self->relay
[####]Onrelay ->self->relay
[####]Relay -> *whatever your events are*

Then from that point you make everything relays, to add longer than 60 seconds just ad another line like the second. (I have not tested this but it should work)
Gen. Hothauser:
Use VCE loops


--- Code: ---[0] [x] [       ] [Onactivate] [Self] [VCE_Ifvariable] [count] [==] [10] [1 3]
[1] [x] [       ] [Onvariablefalse] [Self] [VCE_modvariable] [Brick] [count] [Add] [1]
[2] [x] [1000] [Onvariablefalse] [Self] [VCE_Ifvariable] [count] [==] [10] [1 3]
[3] [x] [       ] [Onvariabletrue] [Self] [Setcolor] [16]

--- End code ---

This counts to 10 in ten seconds, and when it reaches 10, it changes color.

This can be used for really long times, such as the below:


--- Code: ---[0] [x] [         ] [Onactivate] [Self] [VCE_Ifvariable] [count] [==] [1200] [1 3]
[1] [x] [         ] [Onvariablefalse] [Self] [VCE_modvariable] [Brick] [count] [Add] [1]
[2] [x] [30000] [Onvariablefalse] [Self] [VCE_Ifvariable] [count] [==] [1200] [1 3]
[3] [x] [         ] [Onvariabletrue] [Self] [Setcolor] [16]

--- End code ---

This would take ten minutes to change color.


--- Code: ---[0] [x] [         ] [Onactivate] [Self] [VCE_Ifvariable] [count] [==] [7200] [1 3]
[1] [x] [         ] [Onvariablefalse] [Self] [VCE_modvariable] [Brick] [count] [Add] [1]
[2] [x] [30000] [Onvariablefalse] [Self] [VCE_Ifvariable] [count] [==] [7200] [1 3]
[3] [x] [         ] [Onvariabletrue] [Self] [Setcolor] [16]

--- End code ---

This would take an hour.

That initial event was just to get it started, in order to not use relays.
Navigation
Message Index
Next page

Go to full version