Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Color color_change_script  

color_change_script

color change script.lsl

Category: Color
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for color_change_script
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. color_change_script_1.lsl
1
2 default
3 {
5 {
6 llListen(0, "",llGetOwner(), "" );
7 }
8
9 on_rez(integer start_param)
10 {
12 }
13
14 listen(integer channel, string name, key id, string message)
15 {
16 if(message == "black") llSetColor(<0,0,0>, ALL_SIDES);
17 if(message == "white") llSetColor(<1,1,1>, ALL_SIDES);
18 if(message == "grey") llSetColor(<0.5,0.5,0.5>, ALL_SIDES);
19 if(message == "light grey") llSetColor(<0.75,0.75,0.75>, ALL_SIDES);
20 if(message == "dark red") llSetColor(<0.5,0,0>, ALL_SIDES);
21 if(message == "red") llSetColor(<1,0,0>, ALL_SIDES);
22 if(message == "light yellow") llSetColor(<1,1,0.5>, ALL_SIDES);
23 if(message == "yellow") llSetColor(<1,1,0>, ALL_SIDES);
24 if(message == "dark yellow") llSetColor(<0.5,0.5,0>, ALL_SIDES);
25 if(message == "light green") llSetColor(<0,1,0.5>, ALL_SIDES);
26 if(message == "green") llSetColor(<0,1,0>, ALL_SIDES);
27 if(message == "dark green") llSetColor(<0,0.5,0>, ALL_SIDES);
28 if(message == "light turquoise") llSetColor(<0.5,1,1>, ALL_SIDES);
29 if(message == "turquoise") llSetColor(<0,1,1>, ALL_SIDES);
30 if(message == "dark turquoise") llSetColor(<0,0.5,0.5>, ALL_SIDES);
31 if(message == "light blue") llSetColor(<0,0.5,1>, ALL_SIDES);
32 if(message == "blue") llSetColor(<0,0,1>, ALL_SIDES);
33 if(message == "dark blue") llSetColor(<0,0,0.5>, ALL_SIDES);
34 if(message == "light purple") llSetColor(<0.5,0,1>, ALL_SIDES);
35 if(message == "purple") llSetColor(<1,0,1>, ALL_SIDES);
36 if(message == "dark purple") llSetColor(<0.5,0,0.5>, ALL_SIDES);
37 if(message == "orange") llSetColor(<1,0.5,0>, ALL_SIDES);
38 if(message == "brown") llSetColor(<0.5,0.25,0>, ALL_SIDES);
39 if(message == "pink") llSetColor(<1,0,0.5>, ALL_SIDES);
40 if(message == "dark pink") llSetColor(<0.5,0,0.25>, ALL_SIDES);
41 }
42 }// END //

Back to the Best Free Tools in Second Life and OpenSim.