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
Floating Text Todo_list  

Todo_list

I may also make it so that it can read things off of a notecard.

Category: Floating Text
By : Hydrais
Created: 2010-04-26 Edited: 2010-04-26
Worlds: Second Life

the Zip file

Download all files for Todo_list
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Todo_list_1.lsl
1 vector color = <1,1,1>; //Starting color, black
2
3 list colors = ["blue",<0,0,1>,"green",<0,1,0>,"red",<1,0,0>,"black",<0,0,0>,"white",<1,1,1>,"yellow",<1,1,0>]; //color list, first color,then its vector
4
5 list todo = [""]; //where your added todo stuff is put
6 list msg = [""]; //this is the new message all nice and parsed so it can do things
7
8
9 todolist(string cmd, string obj) { //my todo function that way if need be i can use else where
10 if(cmd == "-atl") {
11 todo += obj;
12 llSetText("To Do List: \n" + llDumpList2String(todo, "\n"),color,1);
13 msg = [""];
14 }
15 if(cmd == "-dtl") {
16 todo = llDeleteSubList(todo, (integer)obj,(integer)obj);
17 llSetText("To Do List: \n" + llDumpList2String(todo, "\n"),color,1);
18 msg = [""];
19 }
20 if(cmd == "-cc") {
21 if(llListFindList(colors, [obj]) != -1) {
22 color = llList2Vector(colors, llListFindList(colors, [obj])+1) ;
23 llSetText("To Do List: \n" + llDumpList2String(todo, "\n"),color,1);
24 }
25 else {
26 color = (vector)obj;
27 llSetText("To Do List: \n" + llDumpList2String(todo, "\n"),color,1);
28 }
29 }
30 }
31
32 default {
33 state_entry() {
34 key owner = llGetOwner();
35 llListen(0,"",llGetOwner(),"");
36 llSetText("To Do List: \n" + llDumpList2String(todo, "\n"),<1,0,0>,1);
37 }
38 listen(integer channel, string name, key id, string message) {
39 msg = llParseString2List(message, ["."], []);
40 todolist(llList2String(msg,0), llList2String(msg,1));
41 }
42 }

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