Jump to content

UnNameable

Resident
  • Posts

    6
  • Joined

  • Last visited

Everything posted by UnNameable

  1. Oh yes! I see that. it sent it for a loop. And everything works as I had wished. You are both very patient and wonderful for helping me out so much. When I take over the world I shall give you both a seat of power. And a cookie. But your right. I kinda see why she did all that and I see why you went the route you did too. Im certainly going to pour over these and try to learn from them.
  2. /me bows hmmm doesnt look as impressive bowing when its not emoted. That just about solved it! the menues pop up, the partial names are listed and can select them. The only issue left I see is that it asks me to confirm twice and when I do the button has 2 "steal|" in it and then get the original error of going over 24 characters in a button. im gunna play around with it and see if i missed something. I dont want to rely too heavily on you both and I have to learn this at some point.
  3. hmmm 14 tries later and still the same error when the prim is clicked and the script runs, little script error icon pops up and i get Script Warning/Error Object [script:Steal Script V2] Script run-time error Lists may not contain lists But it saves as a script just fine each time, no issues till i try to use it
  4. Both of these are absolutely wonderful scripts and i will keep them both to try and reverse engineer it and try to learn what all you both did. You were right Darkie, the menu is much better but again still holds that fatal flaw. Rolig I think I see why your would work but every time the script runs I get a "Lists can not contain lists" error for this segment. gAvatars = []; //Empty previous list contents integer i; for (i=0;i<num;++i) nearly makes me tear my hair out, but no pain no gain.
  5. Oh Wow that made the look of it all much more simple looking. Sadly it didnt quite allow the action to proceed as i needed it. The affected object requires the string /9 steal|(avatarname) i.e. /9 steal|UnNameable Resident. Also the said string needs to be owner said not script or object. The original version worked, but lots of names didnt fit the button limit. Heck if I didnt even need the "Confirm" part id be happy.
  6. Hello and thank you in advance for any help anyone can provide. I took the basic scan and hug script from one of the tutorials and through some heavy guess work and trial and error i got it working to my needs. However if the scanned name is too long with the added chat command it breaks the process as it goes beyond the 24 character limit. I was wondering if there was... well I know there is a way around this. However, I am by no means a scripter and can barely make heads or tails of my own script let alone be able to fix this issue. any help or direct answers would make my second life. integer dlgHandle = -1; integer dlgChannel = -9999; list avatarList = []; reset() { llSetTimerEvent(0.0); llListenRemove(dlgHandle); dlgHandle = -1; } default { touch_start(integer total_number) { llOwnerSay("Scanning..."); avatarList = []; // Look for any avatars within 50m. llSensor("", NULL_KEY, AGENT, 50.0, PI); } sensor(integer num_detected) { integer i; while((i < num_detected) && (i < 9)) { if (llDetectedKey(i) != llGetOwner()) { avatarList += [llDetectedName(i)]; } ++i; } if (llGetListLength(avatarList) > 0) { state dialog; } } } state dialog { state_entry() { // Set up a listener to detect button clicks. dlgHandle = llListen(dlgChannel, "", llGetOwner(), ""); // Start a new timer. llSetTimerEvent(30.0); // Add a 'Cancel' button. avatarList += ["Cancel"]; // Display the dialog. llDialog(llGetOwner(), "Please select an avatar.", avatarList, dlgChannel); } listen(integer channel, string name, key id, string message) { // The message parameter holds the caption of the // button that was clicked. Search the menu options // list for it. if ((channel == dlgChannel) && (llListFindList(avatarList, [message]) != -1)) { if (message != "Cancel") { llDialog(llGetOwner(),"Confirm", ["steal|"+message] ,9); } reset(); state default; } } timer() { reset(); state default; } }
×
×
  • Create New...