Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list MENU_MAIN = ["Poses", "Position"];
- list POSITION = ["Up", "Down","Clock", "Counter"];
- integer menu_handler;
- integer menu_channel;
- menu(key user,string title,list buttons)
- {
- llListenRemove(menu_handler);
- menu_channel = (integer)(llFrand(99999.0) * -1);
- menu_handler = llListen(menu_channel,"","","");
- llDialog(user,title,buttons,menu_channel);
- llSetTimerEvent(30.0); //How Long to wait for the user to press a button before "timing out". (in seconds).
- }
- default
- {
- state_entry()
- {
- }
- touch_start(integer total_number)
- {
- menu(llDetectedKey(0), "\nMy Babydoll Stage Poses", MENU_MAIN);
- }
- listen(integer channel,string name,key user,string message)
- {
- if (channel == menu_channel)
- {
- llListenRemove(menu_handler);
- llSetTimerEvent(0);
- if (message == "Poses")
- {
- llSay(0, "THIS IS DEFAULT1'S COMMAND");
- }
- else if (message == "Position")
- {
- menu(llDetectedKey(0), "\nMy Babydoll Stage Poses", POSITION);
- }
- else if (message == "Default3")
- {
- llSay(0, "THIS IS DEFAULT3'S COMMAND");
- }
- else if (message == "Default4")
- {
- llSay(0, "THIS IS DEFAULT4'S COMMAND");
- }
- else if (message == "Default5")
- {
- llSay(0, "THIS IS DEFAULT5'S COMMAND");
- }
- else if (message == "Default6")
- {
- llSay(0, "THIS IS DEFAULT6'S COMMAND");
- }
- else if (message == "Default7")
- {
- llSay(0, "THIS IS DEFAULT7'S COMMAND");
- }
- else if (message == "Default8")
- {
- llSay(0, "THIS IS DEFAULT8'S COMMAND");
- }
- else if (message == "Default9")
- {
- llSay(0, "THIS IS DEFAULT9'S COMMAND");
- }
- else if (message == "Default10")
- {
- llSay(0, "THIS IS DEFAULT10'S COMMAND");
- }
- else if (message == "Default11")
- {
- llSay(0, "THIS IS DEFAULT11S COMMAND");
- }
- else if (message == "Default12")
- {
- llSay(0, "THIS IS DEFAULT12S COMMAND");
- }
- //If you dont want it to say a message then...
- //{
- //{do something here} & delete the above-defaults
- //}
- }
- }
- timer()
- {
- llListenRemove(menu_handler);
- llSetTimerEvent(0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement