Jump to content

NikosFevara

Resident
  • Posts

    2
  • Joined

  • Last visited

Everything posted by NikosFevara

  1. OMG thankyou, i knew it would be something as simple as that. Your help is greatly appreciated
  2. Hey guys. Been working on this little PA script and im stuck at this point. Everything works except for displaying in the above avatar text who clicked it. It's picking up the owner perfectly fine but not who's clicking it (I'm working on the bite option ATM) . Its probably something simple but any help is appreciated. list buttons = ["Lick", "Rub", "Bite", "Suck On", "-"]; string dialogInfo = "\nHow do you want to tease them?."; key avatar; string OWNER; string OWNERNAME; string touchername; key toucher; integer dialogChannel; integer listenHandle; default { state_entry() { dialogChannel = -1 - (integer)("0x" + llGetSubString( (string)llGetKey(), -7, -1) ); avatar = llKey2Name(OWNER = llGetOwner()); OWNERNAME = llGetDisplayName(OWNER = llGetOwner()); } touch_start(integer num_detected) { key toucher = llDetectedKey(0); string touchername = llGetDisplayName(toucher); llListenRemove(listenHandle); listenHandle = llListen(dialogChannel, "", toucher, ""); llDialog(toucher, dialogInfo, buttons, dialogChannel); llSetTimerEvent(60.0); } listen(integer channel, string name, key id, string message) { if (message == "-") { llDialog(toucher, dialogInfo, buttons, dialogChannel); return; } llListenRemove(listenHandle); llSetTimerEvent(0); if (message == "Lick") { llMessageLinked(LINK_SET,0,"arousalClearText|"+OWNER, ""); llMessageLinked(LINK_SET,0,"arousalSetText|"+OWNER+"|"+"1"+"| "+touchername+" Text Here ", ""); llMessageLinked(LINK_SET,0,"caeilarousalup|"+OWNER+"|35" + "|" , ""); } else if (message == "Bite") { llMessageLinked(LINK_SET,0,"arousalClearText|"+OWNER, ""); llMessageLinked(LINK_SET,0,"arousalSetText|"+OWNER+"|"+"2"+"| "+touchername+" text here "+OWNERNAME+" text here ", ""); llMessageLinked(LINK_SET,0,"caeilarousalup|"+OWNER+"|75" + "|" , ""); } else if (message == "Suck On") { //action } else if (message == "Rub") { //action } else { //action } } timer() { // stop timer llSetTimerEvent(0); llListenRemove(listenHandle); } }
×
×
  • Create New...