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 Cid_Jacob_s_Color_Change  

Cid_Jacob_s_Color_Change

Cid Jacob s Color Change.lsl

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

the Zip file

Download all files for Cid_Jacob_s_Color_Change
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Cid_Jacob_s_Color_Change_1.lsl
1
2 vector red = <1,0,0>;
3 vector green = <0,1,0>;
4 vector white = <1,1,1>;
5 vector black = <0,0,0>;
6 vector gold = <0.5,0.5,0>;
7 vector blue = <0,0,1>;
8 vector orange = <1,0.5,0>;
9 vector yellow = <1,1,0>;
10 vector brown = <0.5,0.25,0>;
11 vector pink = <1,0.5,0.5>;
12 vector purple = <0.2,0,0.2>;
13 vector lime = <0.5,1,0>;
14 vector sky = <0.5,1,1>;
15 vector lavander = <0.2,0.2,0.4>;
16
17 default
18 {
20 {
21 llListen(0,"",llGetOwner(),"");
22 }
23
24 on_rez(integer num)
25 {
27 }
28
29 listen(integer number, string name, key id, string message)
30 {
31 if(message=="red")
32 {
34 }
35 if(message=="green")
36 {
37 llSetColor(green, ALL_SIDES);
38 }
39 if(message=="lavander")
40 {
41 llSetColor(lavander, ALL_SIDES);
42 }
43 if(message=="sky")
44 {
46 }
47 if(message=="purple")
48 {
49 llSetColor(purple, ALL_SIDES);
50 }
51 if(message=="lime")
52 {
53 llSetColor(lime, ALL_SIDES);
54 }
55 if(message=="brown")
56 {
57 llSetColor(brown, ALL_SIDES);
58 }
59 if(message=="orange")
60 {
61 llSetColor(orange, ALL_SIDES);
62 }
63 if(message=="gold")
64 {
65 llSetColor(gold, ALL_SIDES);
66 }
67 if(message=="white")
68 {
69 llSetColor(white, ALL_SIDES);
70 }
71 if(message=="black")
72 {
73 llSetColor(black, ALL_SIDES);
74 }
75 if(message=="blue")
76 {
77 llSetColor(blue, ALL_SIDES);
78 }
79 if(message=="yellow")
80 {
81 llSetColor(yellow, ALL_SIDES);
82 }
83 if(message=="pink")
84 {
85 llSetColor(pink, ALL_SIDES);
86 }
87 if(message=="green")
88 {
89 llSetColor(green, ALL_SIDES);
90 }
91 }
92
93 }// END //

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