Im currently building a classic fully functional tardis, but i am no good with dialog menus so far ive nearly got the flight systems working etc and the mat/demat functions for the exterior but i need a dialog menu for the HUD. It needs to have things like summon, demat, cloaking, defences and so on as options. Ive found the basic script on SL wiki but i dont know how to make it do anything, at the moment you just click a button and nothing happens. HELP NEEDED ERGENTLY. Here is the script: list colourchoices = ["-", "Red", "Green", "Yellow"]; string msg = "Please make a choice."; key ToucherID; integer channel_dialog; integer listen_id; default{ state_entry() { channel_dialog = ( -1 * (integer)("0x"+llGetSubString((string)llGetKey(),-5,-1)) ); } touch_start(integer total_number) { ToucherID = llDetectedKey(0); llDialog(ToucherID, msg, colourchoices, channel_dialog); listen_id = llListen( channel_dialog, "", ToucherID, ""); llSetTimerEvent(60); //HERE WE SET A TIME LIMIT } listen(integer channel, string name, key id, string choice) { if (choice == "-") { llDialog(ToucherID, msg, colourchoices, channel_dialog); } else if (choice == "Red") { //do something llListenRemove(listen_id); //HERE WE ARE BEING RESPONSIBLE } else if (choice == "Green") { //do something llListenRemove(listen_id); //HERE WE ARE BEING RESPONSIBLE } else { //do something else. llListenRemove(listen_id); //HERE WE ARE BEING RESPONSIBLE } } timer() { //TIME’S UP! llListenRemove(listen_id); llWhisper(0, "Sorry. You snooze; you lose."); llSetTimerEvent(0.0); //Stop the timer from being called repeatedly } }
Question
thedoctor2
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now