Author Topic: Named Brick - Getting Original Brick  (Read 1455 times)

Lets say I have an event and I do

onActivate > named brick [richards] > customEvent

I need custom event not only to have the named brick, but the original brick (current one, i guess?)

is this possible? Never really coded events, so I don't know.


What
A+ post

for his output event, he wants to know if he can have both the target object (in this case 'richards') as well as the brick the event is on (as in, the brick that's causing all this to happen)

To answer your question: no. The event simply tells richards to customEvent, it does not tell it which brick triggered that event. If you wanted to inform it which brick you'd have to do something like this:

onActivate > self > customEvent > richards

To answer your question: no. The event simply tells richards to customEvent, it does not tell it which brick triggered that event. If you wanted to inform it which brick you'd have to do something like this:

onActivate > self > customEvent > richards
could I have a list of bricks where richards is?
and if i can't is there a way to find a brick by it's name?

I've been trying to figure this out for a while. Can't seem to get anything to work.

I had wanted to do a onActivate => Named Brick [hello] => setSameColor event, but I can't find the trigger brick.

Anybody have a solution?

I've been trying to figure this out for a while. Can't seem to get anything to work.

I had wanted to do a onActivate => Named Brick [hello] => setSameColor event, but I can't find the trigger brick.

Anybody have a solution?
i just made it so you do
onActivate => self => blah => BrickName

i just made it so you do
onActivate => self => blah => BrickName
Ehh that's alright I guess.

i just made it so you do
onActivate => self => blah => BrickName
I think this means you figured it out, but... The teledoor mod has some helpful uses about named bricks.