Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Is it possible to make an oject start up as a random colour?

Ginge Reymont
Registered User
Join date: 10 Oct 2005
Posts: 190
10-10-2005 23:45
The title says it all.
Daz Honey
Fine, Fine Artist
Join date: 27 Jun 2005
Posts: 599
10-11-2005 01:10
yes it is possible but only if there are a set amount of colors and one of that set is chosen randomly, I doubt a script can make a colour up (out of the millions) without it being a choice, hmmm perhaps if you use hex colour codes then you can have one, by random numbers, so yeah it is possible. how you do that is way beyond my expertise but there are some very smart people out there!
_____________________
All children are artists. The problem is how to remain an artist once he grows up. - Pablo Picasso
Ginge Reymont
Registered User
Join date: 10 Oct 2005
Posts: 190
10-11-2005 04:21
Ok i managed to get a script that listens for numbers, then i have the random number script , but how do i make it so it listens for the object, not the owner saying the number?

Ill make it simpler, The object says a number and also i want it to listen for the number. But the owner has no part in it.

What would the code be for listen for the object.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
10-11-2005 04:22
CODE

default
{
state_entry()
{
llSetColor(<llFrand(1.0),llFrand(1.0),llFrand(1.0)>,ALL_SIDES);
}
on_rez(integer a)
{
llResetScript();
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey