Jump to content

Cat Tamatzui

Resident
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Cat Tamatzui

  1. Thank you Mollymews that worked perfectly
  2. Hi I have a hud with a menu in it the send a message to a prim to tell it to display 3 words afk,brb and busy but it only works for me, but it will work again if someone rezzes out the hud and makes copy of it on the ground then picks it up and wears it will then work and I have no idea why its doing this, its like its locked to me until they rez and make their own copy. Any help would be much appreciated Here is my script for the menu hud. list Pickemote = ["CLOSE","AFK", "BRB", "BUSY"]; string msg = "Please make a choice."; key ToucherID; integer channel_dialog; integer chan; integer listen_id; default{ state_entry() { channel_dialog = ( -1 * (integer)("0x"+llGetSubString((string)llGetKey(),-5,-1)) ); chan = (integer)("0xF" + llGetSubString(llGetOwner(),0,6)); } touch_start(integer total_number) { ToucherID = llDetectedKey(0); llDialog(ToucherID, msg,Pickemote, channel_dialog); listen_id = llListen( channel_dialog, "", ToucherID, ""); llSetTimerEvent(60); } listen(integer channel, string name, key id, string choice) { if (choice == "") { llDialog(ToucherID, msg,Pickemote, channel_dialog); } else if (choice == "AFK") { llRegionSay(chan, "pafk"); llListenRemove(listen_id); } else if (choice == "BRB") { llRegionSay(chan, "pbrb"); llListenRemove(listen_id); } else if (choice == "BUSY") { llRegionSay(chan, "pbusy"); llListenRemove(listen_id); } else { //do something else. llListenRemove(listen_id); } } timer() { //TIME’S UP! llListenRemove(listen_id); llWhisper(0, "Sorry. You snooze; you lose."); llSetTimerEvent(0.0); } }
  3. Hi I am totally lost with listeners, I have 2 huds i need to be able to talk to 2 different attached objects but they both change the texture on the same attached objects, how without specifying a separate channel for both huds do i have it so they will talk to the different objects, how do i get each object to listen for a different name I thought just changing this listenHandle = llListen(chan, "test1", NULL_KEY, ""); to test1 and test2 would work but how do i send that information to the object, i have searched and looked at scripts and read the wiki over and over and im just totally stuck, any help would be much appreciated. I am trying to make it so I only have to change the name sent and the uuids, i just cant figure out how to send the name to the receiver, thank you here is the hud integer i; integer chan; string name = "test1"; string face1 = "30e14cf8-7faa-06da-1433-f6afde2c336a"; string face2 = "39376811-2ccf-3296-5064-3d1bc63bd268"; default { state_entry() { chan = ( -1 * (integer)("0x"+llGetSubString((string)llGetOwner(),-5,-1))-50007 ); } on_rez(integer start_param) { llResetScript(); } touch_start(integer num_detected) { integer face = llDetectedTouchFace(0); if (face == 1){ llSay(chan, face1); } else if (face == 2){ llSay(chan, face2); } } } and here is the receiver integer chan; integer listenHandle; default { state_entry() { chan = ( -1 * (integer)("0x"+llGetSubString((string)llGetOwner(),-5,-1))-50007 ); listenHandle = llListen(chan, "test1", NULL_KEY, ""); } listen(integer chan, string name, key id, string msg) { if(llGetOwnerKey(id)==llGetOwner()) { llSetTexture(llGetSubString(msg,0,-1),ALL_SIDES); { } } } }
  4. I have been having the same issues with teleporting and it crashing every few teleports, I have tried 3 viewers so far an nothing has made a difference, its becoming a joke now.
  5. Thank you so much Qie Niangao that sorted it out for me
  6. Hi I have a hud that when clicked it sends a message llRegionSay(99,"Send Prize"); and I have a box with a prize in it with this script inside integer listenHandle; integer chan = 99; default { state_entry() { listenHandle = llListen(chan, "", NULL_KEY, ""); //llSay(0, "Listening on channel " + chan); } listen(integer chan, string name, key id, string msg) { if(msg=="Send Prize") { llGiveInventory(id,llGetInventoryName(INVENTORY_OBJECT, 0) ); //llSetColor(<0.5, 0.0, 0.0>, ALL_SIDES ); //used to check if it receiving the command } } } the prize is no copy but it sends the prize to the hud so the prize is in the huds content which them means that they would have to detach the hud rez it and unpack it to get the prize out, how do I get it to send to the persons inventory and not the hud the person is wearing, any help is much appreciated. Thanks Cat =^.^=
×
×
  • Create New...