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
HoverText FlipTitle  

FlipTitle

FlipTitle.lsl

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

the Zip file

Download all files for FlipTitle
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. FlipTitle_1.lsl
1
2 string command = "";
3 string person = "";
4 key owner;
5
6 default
7 {
9 {
10 owner = llGetOwner();
11 llListen(0,"",owner,"");
12 }
13
14 attach(key attached)
15 {
16 if(attached != NULL_KEY)
17 {
18 llInstantMessage(owner,"To set a title: title <color name> <title text>");
19 llInstantMessage(owner,"To remove title: title off");
20 llInstantMessage(owner,"<color name> can be: white, black, red, green, blue, pink, cyan, purple, yellow, orange");
22 }
23 }
24
25 listen(integer channel, string name, key id, string message)
26 {
27 list strings = llParseString2List(message,[" "],[]);
28 string command=llList2String(strings,0);
29 string string1=llList2String(strings,1);
30 if(command=="title")
31 {
32 vector color=<0,0,0>;
33 if(string1=="blue")
34 {
35 color=<0,0,1>;
36 }
37 else if(string1=="orange")
38 {
39 color=<1,0.5,0>;
40 }
41 else if(string1=="cyan")
42 {
43 color=<0,1,1>;
44 }
45 else if(string1=="pink")
46 {
47 color=<1,0,1>;
48 }
49 else if(string1=="green")
50 {
51 color=<0,1,0>;
52 }
53 else if(string1=="red")
54 {
55 color=<1,0,0>;
56 }
57 else if(string1=="white")
58 {
59 color=<1,1,1>;
60 }
61 else if(string1=="yellow")
62 {
63 color=<1,1,0.1>;
64 }
65 else if(string1=="purple")
66 {
67 color=<0.7,0,0.7>;
68 }
69 else
70 {
71 color=<0,0,0>;
72 }
73 string title = "";
74 integer i;
75 for(i=2; i<=12; i++)
76 {
78 {
79 title = title + llList2String(strings,i) + " ";
80 }
81 }
82 if(title == "off")
83 {
84 llSetText("",<0,0,0>,1.0);
85 } else {
86 llSetText(title, color, 1.0);
87 }
88 }
89 }
90 }// END //

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