Poll

Should I make SetRandomFXColor and/or ifColor

Do both.
Only do SetRandomFXColor.
Only do ifColor.
No.
Make something else.

Author Topic: SetRandomColor  (Read 5157 times)

SetRandomColor

Output Event - Sets the chosen brick a random color from the set you have on.

Description
A new Output Event that sets the chosen brick to a random paint can color.

Author - Gamefandan
Helpers - None, unless you count the people who taught me to script.

This Event can be very useful for mostly recreational activities, like a dance floor, or a paint wall.

I also have an idea for SetRandomFxColor but this most likely isn\'t needed.

Download
Event_SetRandomColor.zip.zip

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

Click Here to view this file on the RTB Download Manager
« Last Edit: June 26, 2009, 01:36:34 AM by gamefandan »

could be used for a TV screen.


Reminds me that I need to make an awesome place with a disco.  Do the setRandomFXColor.  I would love that.

Code: [Select]
%c.CPBrick=%this;
Won't this set the clients checkpoint to the brick?
Code: [Select]
getrandom(0,36)
You can have up to 64 colours on a colourset, so this doesn't exactly work right.

Code: [Select]
%c.CPBrick=%this;
Won't this set the clients checkpoint to the brick?
Code: [Select]
getrandom(0,36)
You can have up to 64 colours on a colourset, so this doesn't exactly work right.
:o
And here comes the apologies from dan.

:o
And here comes the apologies from dan.
asdfghjklbnzcm,cxnb

Shut it. ;O

Sorry 'bout that, I had a feeling someone would post about that 36 :P

As for the %c.CPBrick, Check Events was the only event mod I had that changes a brick somewhat. :(

Edit: Ha Ha! I put .zip in the file name. :P No wonder it wasn't working right for me.

Edit Edit: RTB won't let me fix the extra .zip :( When you download, please remove it :P
« Last Edit: June 26, 2009, 01:32:09 AM by gamefandan »

cool i have a build for my house that has a tv and could use this

I finished making SetRandomFXColor. But I'm not going to release it until I finish ifColor, and I heard a rumor that ifColor has already been made, so don't expect anything right now.

Will it keep changing the color?

Will it keep changing the color?

No, but this can be easily done through events.

OnActivate > Self > FireRelay
OnRelay > Self > FireRelay
OnRelay > Self > SetRandomColor



Update:

Also, I couldn't find ifbrickcolor anywhere, so I will assume that it hasn't been made, if anyone would like to prove me otherwise, do so now, while I figure out how to pop up the colorset Gui. :P
« Last Edit: June 26, 2009, 03:14:49 PM by gamefandan »

You should pick a random colour out of the available ones (check what the highest value is instead of 64 or you could get invalid invisible/glitched bricks) and add a selector for whether it should select transparent colours.

You should pick a random colour out of the available ones (check what the highest value is instead of 64 or you could get invalid invisible/glitched bricks) and add a selector for whether it should select transparent colours.

Good idea, and I realized someone might comment on the glitch color,
(Pink and transparent) I did some research and the colors aren't given number values the way I thought they would be, in fact the first color of a colorset isn't set to 1 it is in fact set to 0, (Well it was news to me.) so this means a colorset with 64 colors has an extra placeholder color set to 64, meaning that the colorset technically has 65 colors.

Fun huh?

Thank heavens! I can finally make a duck that changes color according to my mood :D
(made with bricks, calm down)
Thank you.

Good idea, and I realized someone might comment on the glitch color,
(Pink and transparent) I did some research and the colors aren't given number values the way I thought they would be, in fact the first color of a colorset isn't set to 1 it is in fact set to 0, (Well it was news to me.) so this means a colorset with 64 colors has an extra placeholder color set to 64, meaning that the colorset technically has 65 colors.

Fun huh?
0 - 63 only as that can be transmitted in 6 bits. 0 - 64 wouldn't make sense as that'd require an extra bit which could be used for 0 - 127. Any unused colours in the 0-63 set will be set to some obscure pink colour that has zero alpha.