Author Topic: Event: setBrickName  (Read 8083 times)

Output Event - setBrickName
A basic event that sets the brick's name to a specified string.

Description
A basic event that sets the brick's name to a specified string. I'm making a new version of variable and conditional events, that will add a ifBrickNameEquals.

Download
Event_setBrickName.zip [RTB Download]
Event_setBrickName.zip [Personal Site Download]

Installation
Put Event_setBrickName.zip into the Add-Ons folder in your Blockland folder.

Click Here to view this file on the RTB Download Manager
« Last Edit: October 10, 2008, 05:25:45 AM by Destiny/Zack0Wack0 »

Tom

Cool, I've always wanted this.


Very nice Destiny/Zack. -Dowloading-


You have just became one of my favorite add-on makers. =D

Wait, all it does is change brick name?

As in, it could be sued for events on named brick? Ex:

Code: [Select]
onActivate NamedBrick setColor Red
Code: [Select]
onActivate Self setBrickName NamedBrick

Wait, all it does is change brick name?

As in, it could be sued for events on named brick? Ex:

Code: [Select]
onActivate NamedBrick setColor Red
Code: [Select]
onActivate Self setBrickName NamedBrick
Yeah like that. Like if you dont want to name a brick. So like you could do..
On activate->set brick name->xxxx
That way you dont have a HUGE list of named bricks. Moar organization =D

When ifBricknameEquals comes out, I will be downloading this.

When ifBricknameEquals comes out, I will be downloading this.

doesn't  namedbrick already like that
Like
OnActivate NamedBrick SetLight Red


I had this in my server a while back in v9. I never released because of the constant dialog spam it does when your trying to make other events.
« Last Edit: October 10, 2008, 05:55:38 PM by dUMBELLS »

I had this in my server a while back in v9. I never released because of the constant dialog spam it does when your trying to make other events.
You were obviously doing it wrong if you were getting console spam.

Not console spam, dialog spam. Build something involving these events and relays, have it run, and try to event on something else.
Either that or have it set it's brick name to nothing.
Further editing: Never mind, must have been fixed or my code wasn't working correctly.
« Last Edit: October 10, 2008, 07:40:38 PM by dUMBELLS »

If you have an event to name a brick a particular thing, but no bricks currently exist with that name, does the name show up in the <NAMED BRICK> targets menu for you? Otherwise I can't apply events to it...

(e.g. a button which changes its name between "fireRockets" when you click it, but hasn't been triggered yet [name ""], does "fireRockets" show up in my target list if I want to do something else only to fireRockets bricks that have been triggered?)