| Blockland Forums > Suggestions & Requests |
| Event: fireRelayBack |
| (1/6) > >> |
| Niliscro:
This has probably been suggested dozens of times before, but here goes: Basically, this is an event that will fire a relay back to whichever brick most recently sent it one. For example: Events for Brick 1: [0] onActivate - [Brick 2] - [fireRelay] [0] onRelay - [Self] - [playSound] [breakBrick] Events for Brick 2: [0] onRelay - [Self] - [fireRelayBack] [0] onRelay - [Self] - [fakeKillBrick] [0 0 5] [10] What this would do: Brick 1 fires a relay to Brick 2 when clicked, which causes Brick 2 to fake kill and send a relay back to the most recent relay sender - in this case Brick 1. There are several applications for something like this, with the most notable being the ability to handle user input when you do not know what that user will do, and handling it without the use of VCE conditionals or extra named bricks. Feedback and suggestions are appreciated. |
| SWAT One:
1st! um, well, from a different viewpoint or next to it etc. If far away, name the initial trigger brick and [NamedBrick] [fire relay] If next to, use FireRelayNorth etc. |
| Niliscro:
--- Quote from: SWAT One on May 30, 2010, 11:37:51 PM ---If far away, name the initial trigger brick and [NamedBrick] [fire relay] --- End quote --- --- Quote from: Niliscro on May 30, 2010, 11:35:31 PM ---the ability to handle user input when you do not know what that user will do, and handling it without the use of VCE conditionals or extra named bricks. --- End quote --- Also, if the one brick will be accepting input from multiple bricks it's not even as simple as naming those bricks. You then have to make a new variable and modify it according to which brick sent input, then run conditionals in the receiving brick to determine which input brick to send a relay back to. The fireRelayBack concept is basically that of a ping. |
| Loopyla1:
Confus |
| Niliscro:
--- Quote from: Loopyla1 on May 30, 2010, 11:48:58 PM ---Confus --- End quote --- Brick 1 sends a relay to Brick 2. Brick 3 sends a relay to Brick 2. Some type of input causes Brick 2 to fireRelayBack, so it fires a relay to Brick 3, since it was the most recent brick to send a relay to Brick 2. Get? |
| Navigation |
| Message Index |
| Next page |