if(%brick.name("target")){ blah();}
if(%brick.getShapeName() $= "target"){ blah();}
if(getsubstr(%n=%brick.getname(),1,strlen(%n)-1) $= BlahBrickName)
If the brick doesn't have a name, this'll throw errors.
(strLen(%n)|1)what
Is anyone going to respond to my second question? How do I search every block in the server, and check if it's name is "target"?
%groupCount = MainBrickGroup.getCount();for(%i = 0; %i < %groupCount; %i++){ %brick = MainBrickGroup.getObject(%i); if(%brick.getName() $= "_target") { //do stuff }}