User:Talia Tokugawa/scripts

From Second Life Wiki
< User:Talia Tokugawa
Revision as of 14:43, 18 March 2024 by Talia Tokugawa (talk | contribs) (Adding link to colour list page.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • Dialog menu example Link
  • MapURL example Link
  • Visitor Owner Informer example Link
  • Colour List Link

Code Snippets:

  • character replacement.
    • These two are for replacing escape characters in a string that is a not compiled with the script
text=llDumpList2String(llParseString2List(text, ["\\\""],[]), "\""); 
text=llDumpList2String(llParseString2List(text, ["\\\'"],[]), "\'"); 

  • "Loading..." balance showing workaround
    • I finally got too annoyed with having to have some one around to give my balance a jump start...
default {
   state_entry() {
       llRequestPermissions(llGetOwner(), PERMISSION_DEBIT);
   }
   
   run_time_permissions(integer perms) {
     if (perms & PERMISSION_DEBIT) state run;
   }
}
state run {
  on_rez(integer p) {
      llResetScript();
  }

   touch_start(integer total_number) {
       llGiveMoney(llGetOwner(),1);
   }
}