Author Topic: Event Help  (Read 1111 times)

Ok so, I have become very knowledgable at events now, I know how to do every thing except for a few things. here are my following event questions that is all I need to know before I am done lol.

1. lets say you have a number pad 1-9. that requires a certain sequence of number clicks to open a door. but in order to have people see what they have clicked here is pictures of what I am talking about.

Step 1:
You have your numberpad and your entry pad.
(Where the red highlighted brick stands for the first entry)



Step 2:
You click keypad number 1, and it places a number one on the entry pad, and the highlight brick moves to the next entry.



Step3:
Same thing you click number 3, and it places the number three in the 2nd entry and moves on to the 3rd entry. and once all the entrys are entered, you click a send button. and if it is all correct it opens the door. if its incorrect it resets the code for a 2nd try.


If anyone could teach or tell me how to do this, i have experience in events, so dont think that whatever you say wont make sense lol.

my 2nd question is what is the relay events? i have used them and have not figured out what they are or what they do? can someone please explain relay events to me?

thanks,

only1rebel

"bueller, anyone? anyone? bueller..."

bump I really would like help with this.. =\

Well, question one would probably be easier to show you on a server, but I would do it by enabling and disabling events with the conditionals.

Question two, I find relays very useful, what they do is send a "signal" or "relay" to a different brick, which in turn can activate another set of events with the "On relay" command rather than the "On activate" or "On player touch".

Relay events send a message (which triggers the brick's onRelay) to the brick directly above/below/beside it. This is useful for triggering rows of bricks, having second effects. etc.

how do you get it to send a message? on active? and the question one.. im willing to open up my server for someone to come in and show me..

uh

For example, you could have two bricks side by side.

Left one: onActivate -> self -> fireRelayEast
Right one: onRelay -> self -> playSound

Here are a picture. look at it, and profit from it


Here are a picture. look at it, and profit from it



thanks I am now understanding all events very well now.

for the onRelay, do they need to be in contact? or will the relay be able to activate a brick it isn't touching?

yeah relay works for any brick any where..

It only works for touching bricks, and all touching bricks in that direction.
A 16x16f with 256 1x1s on it. If the 16x16f fired a relay upwards all 256 1x1s would recieve the relay, but nothing else.

now this leads me to another event question... how do you use the variable events add on? lol