Paul Wardark
Wait, what?
Join date: 10 Jan 2009
Posts: 383
|
08-23-2009 17:55
Ever say to yourself, "I should know how to fix this!" but can't for the life of you figure it out? I'm getting that now. I want it to talk in local when somebody touches it, and I want it to talk to me when somebody touches it. And, of course, I want to include the name of the avatar that touched it.
default { touch_start(integer num) { integer i = 0; do llSay(0," Stop touching me, " + llDetectedName(i)); llOwnerSay(llDetectedName(i)+ " has touched me. ") while(num > ++i); } }
|
NeoBokrug Elytis
Master Blaster
Join date: 1 Nov 2005
Posts: 35
|
08-23-2009 18:20
llOwnerSay(llDetectedName(i)+ " has touched me. " ;
_____________________
http://www.slurl.com/secondlife/The Wastelands/  Post Apocalypse in Second Life .·|·. http://www.The-Wastelands.org/
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
08-23-2009 18:41
default { touch_start(integer num) { integer i = 0; do { llSay(0, " Stop touching me, " + llDetectedName(i)); llOwnerSay(llDetectedName(i) + " has touched me. "); } while (num > ++i); } }
Missing brackets for do and the one semi colon.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
Paul Wardark
Wait, what?
Join date: 10 Jan 2009
Posts: 383
|
08-23-2009 19:02
From: Jesse Barnett default { touch_start(integer num) { integer i = 0; do { llSay(0, " Stop touching me, " + llDetectedName(i)); llOwnerSay(llDetectedName(i) + " has touched me. "); } while (num > ++i); } }
Missing brackets for do and the one semi colon. That did it. I knew it was some dumb little thing.
|