Jump to content

Stained Shepherd

Resident
  • Posts

    2
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. yes that will work like that too... i was just tryingto figure out how to make it go faster left or right.. i will try this. i was thinking i would have to make it with multi buttons named the same. though your idea seems to make more sence. though im still stumped on the whole return if a option is pressed or will this do that sorry. i cant try it right now but will shortly ty so much
  2. Im trying to create a menu that when you click right or left you can choose a speed either going left or right i really dont want the button names different then one another if its possiable. Another issue im having is i cant get the menu to return if i do click a speed. Im still learning to script and most is just put together from other scripts any help is welcome // color choices //list COLOR_colors = [ <1.0,1.0,1.0>, <1.0,0.0,0.0>, <1.0,0.5,0.0>, <1,1,0.1>, <0,1,0>, <0,0,1>, <1,0,1>, <1,0.5,0.76>, <0,1,1>, "x"]; vector red = <1,0,0>; vector green = <0,1,0>; vector white = <1,1,1>; vector black = <0,0,0>; vector Aqua = <0,1,1>; vector blue = <0,0,1>; vector orange = <1,0.5,0>; vector yellow = <1,1,0>; vector violet = <1,0,1>; vector pink = <1,0.5,0.5>; vector purple = <0.2,0,0.2>; vector lime = <0.5,1,0>; vector sky = <0.5,1,1>; vector lavander = <0.2,0.2,0.4>; integer channel; integer listen_id; string message = "gggg"; integer owner; // the main menu list MENU_MAIN = ["Start", "Stop", "Speed", "Glow", "Color"]; // Right submenu list MENU_RIGHT = ["Norm", "Fast", "Faster", "Fastest", "Fastest plus", "...Back"]; // Left submenu list MENU_LEFT = ["Norm", "Fast", "Faster", "Fastest", "Fastest plus", "...Back"]; // Glow lvl submenu list MENU_GLOW = ["Level1", "Level2", "Level3", "Level4","...Back"]; // Color Submenu list MENU_COLOR = ["White", "Red", "Orange", "Yellow", "Green", "Blue", "Violet", "Pink", "Aqua", "Exit"]; //list COLOR_colors = [ <1.0,1.0,1.0>, <1.0,0.0,0.0>, <1.0,0.5,0.0>, <1,1,0.1>, <0,1,0>, <0,0,1>, <1,0,1>, <1,0.5,0.76>, <0,1,1>, "x"]; default { on_rez(integer start_param) { // Restarts the script every time the object is rezzed llResetScript(); } state_entry() { llListen(channel, "", "", ""); } touch_start(integer total_number) { channel = (integer)llFrand((2147283648) + 100000) * -1; if (llDetectedKey(0) == llGetOwner()){ llDialog(llGetOwner(), message, MENU_MAIN, channel); listen_id = llListen( channel, "", "", ""); } llListen(owner,"","",""); llSetTimerEvent(60); //HERE WE SET A TIME LIMIT listen_id = llListen(channel, "", "", ""); } listen(integer channel, string name, key id, string message) { if (llListFindList(MENU_MAIN + MENU_RIGHT + MENU_LEFT + MENU_COLOR + MENU_GLOW, [message]) != -1) { if (message == "RIGHT") { llDialog(id, "Pick an option!", MENU_RIGHT, channel); return;// present submenu on request } if (message == "LEFT") { llDialog(id, "Pick an option!", MENU_LEFT, channel); return;// present submenu on request } if (message == "Glow") llDialog(id, "Pick an option!", MENU_GLOW, channel); // present submenu on request if (message == "Start") llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, -1, 1, 0, 0, 0.20); if (message == "Stop") llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, -1, 1, 0, 0, 0); if (message == "Color") llDialog(id, "Pick an option!", MENU_COLOR, channel); // present submenu on request if (message == "...Back") llDialog(id, "What do you want to do?", MENU_MAIN, channel); // present main menu on request to go back if (message == "Norm") { llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, -1, 1, 0, 0, 0.20); } if (message == "Fast") llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, -1, 1, 0, 0, 0.40); if (message == "Faster") llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, -1, 1, 0, 0, 0.60); if (message == "Fastest") llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, -1, 1, 0, 0, 1.0); if(message=="Red") { llSetColor(red, ALL_SIDES); } if(message=="Green") { llSetColor(green, ALL_SIDES); } if(message=="Lavander") { llSetColor(lavander, ALL_SIDES); } if(message=="Sky") { llSetColor(sky, ALL_SIDES); } if(message=="Purple") { llSetColor(purple, ALL_SIDES); } if(message=="Lime") { llSetColor(lime, ALL_SIDES); } if(message=="Violet") { llSetColor(violet, ALL_SIDES); } if(message=="Orange") { llSetColor(orange, ALL_SIDES); } if(message=="Aqua") { llSetColor(Aqua, ALL_SIDES); } if(message=="White") { llSetColor(white, ALL_SIDES); } if(message=="Black") { llSetColor(black, ALL_SIDES); } if(message=="Blue") { llSetColor(blue, ALL_SIDES); } if(message=="Yellow") { llSetColor(yellow, ALL_SIDES); } if(message=="Pink") { llSetColor(pink, ALL_SIDES); } if(message=="Green") { llSetColor(green, ALL_SIDES); } } } timer() { //TIME’S UP! llListenRemove(listen_id); llWhisper(0, "Sorry. You snooze; you lose."); llSetTimerEvent(0.0); //Stop the timer from being called repeatedly } }
×
×
  • Create New...