Displayer Script

From Second Life Wiki
Jump to navigation Jump to search

This is a simple 7 line displayer script that is easy to use and if you ask me very useful

<lsl> //Scripting By Akinori Kimagawa feel free to change the titles and commands...enjoy this script

string title; string line1; string line2; string line3; string line4; string line5; string line6; update() { llSetText("[+title+] "+"[line1 title:"+line1+"] "+"[line2 title:"+line2+"] "+"[line3 title:"+line3+"] "+"[line4 title:"+line4+"] "+"[line5 title:"+line5+"] "+"[line6 title:"+line6+"]" ,<1,1,1>,50); } default {

   state_entry()
   {
       llListen(0,"","","");
       llListen(11,"","","");
       llSetTimerEvent(-0.1);
   }
   timer()
   {
       update();

}

   listen(integer chnl,string name2,key id,string msg)

{

   if(chnl == 0)
   {
   if(id == llGetOwner())
   {
    list parse = llParseString2List(msg,["."],[]);

string cmnd = llList2String(parse,0); string part = llList2String(parse,1);

if(cmnd == "stitle") {

   title = part;

} if(cmnd == "sline1") {

   line1 = part;
   llSetObjectName(part);

} if(cmnd == "sline2") {

   line2 = part;

} if(cmnd == "sline3") {

   line3 = part;

} if(cmnd == "sline4") {

   line4 = part;

} if(cmnd == "sline5") {

   line5 = part;

} if(cmnd == "sline6") {

   line6 = part;
   }
  }
 }
}      

} </lsl>