Jump to content

smoky Sweetwater

Resident
  • Posts

    18
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

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

  1. Rolig, I think I am now your biggest fan and I love you forever lol lol lol !!!!!!!!!!! You were not missing anything, I just wasnt very good at explaining and with my limited knowledge, I have made it far too complicated. I see that I was mis understanding some of the wiki.... I thought I had to have the UUID to get the description. Now that you have explained and I have re read it, i see where I was going wrong. You have also introduced a new fuction to me as well that I am going to research, The sub string index and I will keep practising with lists in scripts to gain a better and better understanding. Thanks for leaving the script very open as that is easier to understand. Many thanks for all of your help and I really appreciate the time and explanations that you have given to me
  2. Thanks again for your help and explaining why to me. I can get the object decription name now to appear (using llOwnerSay as a test from temp list) but the dialog buttons do not generate. Please can i throw myself on your mercy again and be a total pain to you and ask how to do this? My aim is that there will be any number of unlinked prims up to about 8 i think, it is the decription of these that such be the different dialog buttons. I am trying to read the wiki and other scripts to help me understand what I am doing but this is the first time I have played with lists and i cant find a description / wiki page yet on this that i understand properly. My script currently looks like this after implementing your suggested changes. I totally agree on the mylists so i have changed these to be different names, it was way too confusing! Fingers crossed it is ok and that you will be able to help me........ list dmain = ["do this", "or"];list dsub = [];list my_buttons = [];string dmsg;integer channel = -10110101;integer listener;key ToucherID;integer menu; default{ on_rez(integer start_param) { llResetScript(); } state_entry() { } touch_start(integer x) { menu = 0; //show main menu, called Main ToucherID = llDetectedKey(0); llDialog(ToucherID, "What do you want to do?", dmain,-10110101 ); llRegionSay(-000001,"give me your uuid"); listener = llListen(channel,"", NULL_KEY, ""); } listen(integer channel, string name, key id, string choice) { list prims = llParseString2List(choice, [""], [""]); string uuid = llList2String(prims, 0); // llOwnerSay (uuid); // list dsub = llGetObjectDetails(id,([OBJECT_DESC])); list dsub = llGetObjectDetails((key)uuid,[OBJECT_DESC]); string temp = llList2String(dsub,0); llOwnerSay (temp); list my_buttons = llParseString2List(temp,[","],[]); // Assuming that you are using commas as delimiters in the Object Desc if (menu == 0) { if (choice == "do this") { menu = 1; llDialog(ToucherID, "Please Select ?", my_buttons, -10110101); }} else if (menu == 1) { // I will program later { // I will program later llSetTimerEvent(60.0); //HERE WE SET A TIME LIMIT llListenRemove(); //HERE WE ARE BEING RESPONSIBLE } }} timer() { //TIME’S UP! // llListenRemove(); llWhisper(0, "Sorry, you did not make your selection in time"); llSetTimerEvent(0.0); //Stop the timer from being called repeatedly }}
  3. Hi Rolig Thankyou for your help. I have moved all of the data into the listen after the touch event but ................. Sorry to sound stupid here but how would I cast the response to a key? I have tried various things and I keep coming up with a syntax error? The only thing I can get to work is key response = mylist; but this still wont populate my buttons for the dialog. Any further help you could give would really be appreciated.
  4. Hiya I have just sent you inworld, a sit target helper box that will give you what you need. Full instuctions for use are included. You can then look at how the scripts and fuctions work together in the script and modify if needed. Hope that helps.
  5. Hi everyone Please could someone help me as this script is driving me insane !!! think i have got something fundemental wrong. It is a dialog menu which I want the buttons to generate from the name of certain prims around it. I have a script in the other prims which says the key and object name in chat. That works fine but this script isnt reading what is said. Please can someone point me in the right direction? Thanks for your help list dmain = ["do this", "or"]; list dsub = []; string dsub1; string dmsg; integer channel = -10110101; integer play2; key ToucherID; integer menu; default { on_rez(integer start_param) { llResetScript(); llRegionSay(-000001,"give me your uuid"); } state_entry() { llRegionSay(-000001,"give me your uuid"); play2 = llListen(-10110101,"", "", ""); list my_list = llParseString2List("play2", [""], [""]); string mylist = llList2String(my_list, 0); string mylist1 = llList2String(my_list, 1); llOwnerSay(mylist); list dsub = llGetObjectDetails("mylist",([OBJECT_DESC])); } touch_start(integer x) { menu = 0; ToucherID = llDetectedKey(0); llDialog(ToucherID, "What do you want to do?", dmain,-10110101 ); } listen(integer channel, string name, key id, string choice) { if (menu == 0) { if (choice == "do this") { menu = 1; llDialog(ToucherID, "Please Select ?", dsub, -10110101); }} else if (menu == 1) { // dmsg = choice; // if (dsub == "this") { // I will program all this later llSetTimerEvent(60.0); llListenRemove(); } } } timer() { //TIME’S UP! llListenRemove(); llWhisper(0, "Sorry, you did not make your selection in time"); llSetTimerEvent(0.0); } }
×
×
  • Create New...