Search the Community
Showing results for tags 'avatar key'.
Found 1 result
-
PLEASE NOTE: I figured out a workaround by placing the original touch script in the root -- however, I would still like to know why this didn't work. Thank you. Hello: I need help sorting out this script. I have a listen script that works except for the avatar llDetectedName(0). The list text comes up into chat but Instead of the avatars first name, it returns all 0's. It worked fine as a standalone touch script but I need it to work in a child prim so created a listen script -- and need to have listens to send instructions to other child prime as well. Thank you! This is what pops up in chat: The answer to your question, 00000000-0000-0000-0000-000000000000, is Blah blah blah.. This is the listen script in the child prim: list linesofchat= [ "Blah blah blah.", "Yada yada yada.", "la la la la la la la.", ]; default { state_entry() { llListen( 12345, "", NULL_KEY, "" ); } listen( integer channel, string name, key id, string message ) {if ( message == "motorboat" ) { integer j = llFloor(llFrand(llGetListLength(linesofchat))); string av = llDetectedName(0); av = llList2String(llParseString2List(av,[" "],[""]),0); llSay(0, "The answer to your question, " + av + ", is " + llList2String(linesofchat,j)); } } } This is the call script in the root prim: integer channel = 12345; default { touch_start(integer total_number) { ; llSay(channel,"motorboat"); } }