Edie_Shoreland

Roz's Texture Information HUD Buttons Script

Mar 27th, 2019
575
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //This script requires an 8-faced mesh panel to work
  2. //as a HUD.  Place the script in the 8-faced mesh
  3. //item to communicate with the Outfit Retexturing
  4. //Script.
  5.  
  6. //You can find 8-faced mesh panels on MP at...
  7. //https://marketplace.secondlife.com/p/Free-full-perm-8-face-mesh-panel/4172861
  8. //https://marketplace.secondlife.com/p/8-Face-Mesh-Display-Panel-Plus-other-simple-meshes/3575768
  9. //https://marketplace.secondlife.com/p/Parz-8-face-Mesh-Plane/6777430
  10. //https://marketplace.secondlife.com/p/8-Face-Panels-Mesh-Multiple-Faces-Fullperm/5224017
  11.  
  12. //If you're uncertain how your panel's faces are
  13. //numbered, use the script at
  14. //http://wiki.secondlife.com/wiki/LlDetectedTouchFace
  15.  
  16.  
  17. integer menuChan;
  18.  
  19. default
  20. {
  21.     state_entry()
  22.     {
  23.         string uniq_chan = (string)llGetOwner();
  24.         //string uniq_chan = (string)llGetCreator();
  25.         //use llGetCreator() for events or stage shows where you will be
  26.         //changing several costumes at once.  Perfect for NPCs or bots.
  27.         uniq_chan = "0x" + (llGetSubString(uniq_chan, 0, 3));
  28.         menuChan = 13 + (integer)uniq_chan;
  29.     }
  30.    
  31.     on_rez(integer start_param)
  32.     {
  33.         llResetScript();
  34.     }
  35.    
  36.     changed(integer change)
  37.     {
  38.         if (change & CHANGED_OWNER) llResetScript();
  39.     }
  40.  
  41.     touch_start(integer num_detected)
  42.     {
  43.         if (llDetectedTouchFace(0) == 0) llSay (menuChan, "TF00");
  44.         else if (llDetectedTouchFace(0) == 1) llSay (menuChan, "TF01");
  45.         else if (llDetectedTouchFace(0) == 2) llSay (menuChan, "TF02");
  46.         else if (llDetectedTouchFace(0) == 3) llSay (menuChan, "TF03");
  47.         else if (llDetectedTouchFace(0) == 4) llSay (menuChan, "TF04");
  48.         else if (llDetectedTouchFace(0) == 5) llSay (menuChan, "TF05");
  49.         else if (llDetectedTouchFace(0) == 6) llSay (menuChan, "TF06");
  50.         else if (llDetectedTouchFace(0) == 7) llSay (menuChan, "TF07");
  51.     }
  52. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×