Author Topic: Demoing Colored Bricks  (Read 3033 times)

%db = getColorIDTable(%color);
%finalColor = %color;
If(%color[%db])
   %finalColor = %color[%db];

Wow. I'm bad on noticing semi-colons...

Thanks a lot. I'll do that once I get home.

New problem. D:

If I say /clearcolorbricks 0, it clears red bricks like it should, but it says "Boom cleared 0 bricks" when it should say "Boom cleared red bricks".

What's the source of the problem now?

The source is that the color ID is 0 and you set it to say you cleared (id) bricks.


I don't know how to go about making it say red, but you can figure that out, I'm sure. :)

The source is that the color ID is 0 and you set it to say you cleared (id) bricks.


I don't know how to go about making it say red, but you can figure that out, I'm sure. :)

Kalpiter gave me a snippet of code to use to make it do that, and it's not working. It's simply saying the number I told it to clear.

Bump.

Haylow? I still need halp.

Bump.

Haylow? I still need halp.
Kalph already explained this. You'll have to assign a name to every possible color starting at 0, which is red. The format is as follows.
1     10     19     28
2     11     20     29
3     12     21     30
4     13     22     31
5     14     23     32
6     15     24     33
7     16     25     34
8     17     26     35
9     18     27     36



So, basically:
Code: [Select]
%coloridx = -1;
%color[%coloridx++] = "red";
%color[%coloridx++] = "yellow";
%color[%coloridx++] = "green";
%color[%coloridx++] = "blue";
%color[%coloridx++] = "white";
Continue along the list going down each column one by one. I hope you understand


Kalph already explained this. You'll have to assign a name to every possible color starting at 0, which is red. The format is as follows.
1     10     19     28
2     11     20     29
3     12     21     30
4     13     22     31
5     14     23     32
6     15     24     33
7     16     25     34
8     17     26     35
9     18     27     36



So, basically:
Code: [Select]
%coloridx = -1;
%color[%coloridx++] = "red";
%color[%coloridx++] = "yellow";
%color[%coloridx++] = "green";
%color[%coloridx++] = "blue";
%color[%coloridx++] = "white";
Continue along the list going down each column one by one. I hope you understand

I know how to do that. I've already done it. My problem is that if I say "/clearcolorbricks 0" is says "Boom cleared 0 bricks" if I say "/clearcolorbricks 1" it says "Boom cleared 1 bricks". It needs to say "Boom cleared red bricks" and "Boom cleared yellow bricks", but it doesn't say that, and Kalphiter says his snippet of code would fix that, and so far it hasn't.

I never knew you registered an alt.

Assuming it's kalph's alt (based on his 4 posts so far)
Kalphiter Plaz
   Kalphilaz
   Plaphiter

Assuming it's kalph's alt (based on his 4 posts so far)
Kalphiter Plaz
   Kalphilaz
   Plaphiter


Slicksilver555.

I know how to do that. I've already done it. My problem is that if I say "/clearcolorbricks 0" is says "Boom cleared 0 bricks" if I say "/clearcolorbricks 1" it says "Boom cleared 1 bricks". It needs to say "Boom cleared red bricks" and "Boom cleared yellow bricks", but it doesn't say that, and Kalphiter says his snippet of code would fix that, and so far it hasn't.
Instead of using messageAll('',%client.name SPC "cleared" SPC %variable SPC "bricks."); use messageAll('',%client.name SPC "cleared" SPC %color[%variable] SPC "bricks.");

Slicksilver555.
I ninja'd his name.
« Last Edit: March 13, 2010, 05:02:36 PM by Triple Nickels »

I'll try your suggestion.