Jump to content

Lyrixier

Resident
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Lyrixier

  1. Help! I can't seem to open the dialog menu box at all! I've tried everything and searched up all over on google on how to fix the problem but nothing seems to be helping me! I've taken a script from the SL wiki to show. list colorChoices = ["-", "Red", "Green", "Yellow"]; string message = "\nPlease make a choice."; key ToucherID; integer channelDialog; integer listenId; // OUR NEW HANDLE default { state_entry() { channelDialog = -1 - (integer)("0x" + llGetSubString( (string)llGetKey(), -7, -1) ); } touch_start(integer num_detected) { ToucherID = llDetectedKey(0); llDialog(ToucherID, message, colorChoices, channelDialog); listenId = llListen(channelDialog, "", ToucherID, "");// OUR NEW LISTEN } } This script works but just today I am not able to open any menu scripts that I make at all! I'm also having trouble with this script to play because I want it to play the sound "Drop the bass" when I click on a button but having no dialog box I can't tell if it works or not :| // when touched, present a dialog with four color choices integer CHANNEL = 42; // dialog channel list MENU_MAIN = ["Light Show", "Heart", "Ping-Pong", "Cheat", "Options..."]; // the main menu list MENU_OPTIONS = ["Chill", "Hardcore", "Dance", "Techy", "Chips", "DROP THE BASS`", "...Back"]; // a submenu default { state_entry() { llListen(CHANNEL, "", NULL_KEY, ""); // listen for dialog answers (from multiple users) } touch_start(integer total_number) { llDialog(llDetectedKey(0), "What do you want to do?", MENU_MAIN, CHANNEL); // present dialog on click } listen(integer channel, string name, key id, string message) { if (llListFindList(MENU_MAIN + MENU_OPTIONS, [message]) != -1) // verify dialog choice { llSay(0, name + " picked the option '" + message + "'."); // output the answer if (message == "Options...") llDialog(id, "Pick an option!", MENU_OPTIONS, CHANNEL); // present submenu on request { if (message == "DROP THE BASS") { llPlaySound("Drop the bass",1.0); // wat } else if (message == "...Back") llDialog(id, "What do you want to do?", MENU_MAIN, CHANNEL); // present main menu on request to go back // here you have the name and key of the user and can easily verify if they have the permission to use that option or not } } }
  2. I'm still very confused on how to do it. I get a little on what you're saying, but I don't know how to combine the sounds and have them to where they turn on/off because when I try to do it, it doesn't stop the sounds and it keeps on going. Or when I try to add in sounds, it says that I'm only able to add 1 sound.
  3. Hello, I am just now getting more into scripting of second life, and I usually look at other scripts for help (since I don't much) and I'm trying to create a script that when clicked, it toggles the entire chain of sounds to turn completely off. I also need help with the linking of the sounds because I don't know any other way to do it. Please help! integer toggle; string sound; default { state_entry() { sound = llGetInventoryName(INVENTORY_SOUND,0); } touch_start(integer total_number) { llSay(0, "PARTY ROCK"); llSetPrimitiveParams([ PRIM_GLOW,ALL_SIDES,0.20]); } llSay(0, "Every day I'm shufflin'."); llPlaySound(llGetInventoryName(INVENTORY_SOUND,12),1); llSleep(10.0); llPlaySound(llGetInventoryName(INVENTORY_SOUND,2),1); llSleep(10.0); llPlaySound(llGetInventoryName(INVENTORY_SOUND,3),1); llSleep(9.9); llPlaySound(llGetInventoryName(INVENTORY_SOUND,4),1); llSleep(9.9); llPlaySound(llGetInventoryName(INVENTORY_SOUND,5),1); llSleep(9.9); llPlaySound(llGetInventoryName(INVENTORY_SOUND,6),1); llSleep(9.9); llPlaySound(llGetInventoryName(INVENTORY_SOUND,7),1); llSleep(9.9); llPlaySound(llGetInventoryName(INVENTORY_SOUND,8),1); llSleep(9.9); llPlaySound(llGetInventoryName(INVENTORY_SOUND,9),1); llSleep(9.9); llPlaySound(llGetInventoryName(INVENTORY_SOUND,10),1); llSleep(9.9); llPlaySound(llGetInventoryName(INVENTORY_SOUND,11),1); llSleep(9.7); llPlaySound(llGetInventoryName(INVENTORY_SOUND,1),1); llSleep(9.9); llPlaySound(llGetInventoryName(INVENTORY_SOUND,0),1); } touch_start(integer total_number) { toggle=!toggle; if(toggle){ llLoopSound(sound,1.0); } else{ llStopSound(); } } } It doesn't work so please respond if you know the problem!
×
×
  • Create New...