Author Topic: How do I set a print bricks text with an event?  (Read 1106 times)

   Hey everyone! So, I'm building this arena where everyone is put in a.. well, I'm building something, and that is all you need to know ;) So anyways, I will get to the question, I have made a 4x4 cube floating in the air, with four print bricks, one on either side of it. I am wondering, how do I event the print bricks text to change? I would like to make a countdown from 3. Help?

Get this:
http://forum.returntoblockland.com/dlm/viewFile.php?id=2933
Then put this event on the brick (example):
onActivate Self setPrintText [A] [not checked]

If I wanted to make a countdown, from 10, how would I do that?

Then you would use setPrintCount (default event)

I want to use relays. How would I use this in a relay? I imagine it would be

OnActivate>NamedBrick>FireRelay
(Delay 0) OnRelay>NamedBrick>SetPrintText>10
(Delay 1000) OnRelay>NamedBrick>SetPrintText>9
(Delay 2000) OnRelay>NamedBrick>SetPrintText>8
(Delay 3000) OnRelay>NamedBrick>SetPrintText>7

AND SO ON

But that doesnt work? why not?

OnActivate - NamedBrick - FireRelay
OnActivate - NamedBrick - SetPrintCount - 3

 (33) OnRelay - NamedBrick - DecreasePrintCount
(1000) OnRelay - FireRelay
OnPrintcountUnderflow - Whatever you wanted here to happen.
OnPrintCountUnderflow - CancelEvents (This should be last, no matter what)

I think that should work, for what you want to do.

OnActivate - NamedBrick - FireRelay
OnActivate - NamedBrick - SetPrintCount - 3

 (33) OnRelay - NamedBrick - DecreasePrintCount
(1000) OnRelay - FireRelay
OnPrintcountUnderflow - Whatever you wanted here to happen.
OnPrintCountUnderflow - CancelEvents (This should be last, no matter what)

I think that should work, for what you want to do.
that didnt work :/

Onactivate > Self> firerelay
onrelay > namedbrick > setprinttext > 10
onrelay > namedbrick > setprinttext > 9
onrelay > namedbrick > setprinttext > 8
onrelay > namedbrick > setprinttext > 7
onrelay > namedbrick > setprinttext > 6
onrelay > namedbrick > setprinttext > 5
onrelay > namedbrick > setprinttext > 4
onrelay > namedbrick > setprinttext > 3
onrelay > namedbrick > setprinttext > 2
onrelay > namedbrick > setprinttext > 1


if you want it to loop do "onrelay > self > firerelay" at the end.