Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1.  
  2. list MENU_MAIN = ["Poses", "Position"];
  3.  
  4. list POSITION = ["Up", "Down","Clock", "Counter"];
  5.  
  6. integer menu_handler;
  7. integer menu_channel;
  8. menu(key user,string title,list buttons)
  9. {
  10. llListenRemove(menu_handler);
  11. menu_channel = (integer)(llFrand(99999.0) * -1);
  12. menu_handler = llListen(menu_channel,"","","");
  13. llDialog(user,title,buttons,menu_channel);
  14. llSetTimerEvent(30.0); //How Long to wait for the user to press a button before "timing out". (in seconds).
  15. }
  16.  
  17. default
  18. {
  19. state_entry()
  20. {
  21.  
  22. }
  23.  
  24. touch_start(integer total_number)
  25. {
  26. menu(llDetectedKey(0), "\nMy Babydoll Stage Poses", MENU_MAIN);
  27. }
  28.  
  29. listen(integer channel,string name,key user,string message)
  30. {
  31. if (channel == menu_channel)
  32. {
  33. llListenRemove(menu_handler);
  34. llSetTimerEvent(0);
  35. if (message == "Poses")
  36. {
  37. llSay(0, "THIS IS DEFAULT1'S COMMAND");
  38. }
  39. else if (message == "Position")
  40. {
  41. menu(llDetectedKey(0), "\nMy Babydoll Stage Poses", POSITION);
  42.  
  43.  
  44.  
  45.  
  46. }
  47. else if (message == "Default3")
  48. {
  49. llSay(0, "THIS IS DEFAULT3'S COMMAND");
  50. }
  51. else if (message == "Default4")
  52. {
  53. llSay(0, "THIS IS DEFAULT4'S COMMAND");
  54. }
  55. else if (message == "Default5")
  56. {
  57. llSay(0, "THIS IS DEFAULT5'S COMMAND");
  58. }
  59. else if (message == "Default6")
  60. {
  61. llSay(0, "THIS IS DEFAULT6'S COMMAND");
  62. }
  63. else if (message == "Default7")
  64. {
  65. llSay(0, "THIS IS DEFAULT7'S COMMAND");
  66. }
  67. else if (message == "Default8")
  68. {
  69. llSay(0, "THIS IS DEFAULT8'S COMMAND");
  70. }
  71. else if (message == "Default9")
  72. {
  73. llSay(0, "THIS IS DEFAULT9'S COMMAND");
  74. }
  75. else if (message == "Default10")
  76. {
  77. llSay(0, "THIS IS DEFAULT10'S COMMAND");
  78. }
  79. else if (message == "Default11")
  80. {
  81. llSay(0, "THIS IS DEFAULT11S COMMAND");
  82. }
  83. else if (message == "Default12")
  84. {
  85. llSay(0, "THIS IS DEFAULT12S COMMAND");
  86. }
  87. //If you dont want it to say a message then...
  88. //{
  89. //{do something here} & delete the above-defaults
  90. //}
  91. }
  92. }
  93.  
  94. timer()
  95. {
  96. llListenRemove(menu_handler);
  97. llSetTimerEvent(0);
  98. }
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement