Advertisement
Edie_Shoreland

Roz's Texture Information Receiver Script

Mar 27th, 2019
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Roz's Outfit Retexture Reciever
  2.  
  3. //THIS SCRIPT GOES IN THE FINAL BUILD/OUTFIT (once you
  4. //have saved the data from the Texture Information Script
  5. //into the user-defined functions below). This script
  6. //communicates with the Texture Information HUD Buttons
  7. //script to change textures on your build.
  8.  
  9. //Texture information from the Texture Information Script
  10. //goes into the user-defined functions.  When a function
  11. //is called, the outfit uses the information to change
  12. //textures.
  13.  
  14. //Using the texture data to create lists may be a better
  15. //use of resources, but cutting and pasting that infor-
  16. //mation into user defined functions will do the job as
  17. //well, and should be easier for non-scripters to grasp.
  18.  
  19. //Texture Function Lists Start Here ----
  20.  
  21. //Outfit Texture Zero
  22. fZero()
  23. {
  24. //Paste texture data from the Texture Information Script here
  25. }
  26.  
  27. //Outfit Texture One
  28. fOne()
  29. {
  30. //Paste texture data here
  31. }
  32.  
  33. //Outfit Texture Two
  34. fTwo()
  35. {
  36. //Paste texture data here
  37. }
  38.  
  39. //Outfit Texture Three
  40. fThree()
  41. {
  42. //Paste texture data here
  43. }
  44.  
  45. //Outfit Texture Four
  46. fFour()
  47. {
  48. //Paste texture data here
  49. }
  50.  
  51. //Outfit Texture Five
  52. fFive()
  53. {
  54. //Paste texture data here
  55. }
  56.  
  57. //Outfit Texture Six
  58. fSix()
  59. {
  60. //Paste texture data here
  61. }
  62.  
  63. //Outfit Texture Seven
  64. fSeven()
  65. {
  66. //Paste texture data here
  67. }
  68.  
  69. //Texture Function Lists End Here ----
  70.  
  71. integer menuChan;
  72. integer handle;
  73.  
  74. default
  75. {    
  76.     state_entry()
  77.     {
  78.         string uniq_chan = (string)llGetOwner();
  79.         //string uniq_chan = (string)llGetCreator();
  80.         //use llGetCreator() for events or stage shows where you will be
  81.         //changing several costumes at once.  Perfect for NPCs or bots.
  82.         uniq_chan = "0x" + (llGetSubString(uniq_chan, 0, 3));
  83.         menuChan = 13 + (integer)uniq_chan;
  84.         handle = llListen(menuChan,"","","");
  85.     }
  86.    
  87.     on_rez(integer start_param)
  88.     {
  89.         llResetScript();
  90.     }
  91.    
  92.     listen(integer channel, string name, key id, string msg)
  93.     {
  94.         if (msg == "TF00") fZero();
  95.         if (msg == "TF01") fOne();
  96.         if (msg == "TF02") fTwo();
  97.         if (msg == "TF03") fThree();
  98.         if (msg == "TF04") fFour();
  99.         if (msg == "TF05") fFive();
  100.         if (msg == "TF06") fSix();
  101.         if (msg == "TF07") fSeven();
  102.     }
  103.        
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement