Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Script an object to speak in chat when touched?

perttu Kitty
I was here?
Join date: 17 Dec 2004
Posts: 23
05-18-2005 20:02
does anyone know of a script that, when you touch it, it speaks something into the chat. PLease if you send me a script let me be able to modify it. If you do help me there's a bunch of L$ in it wor you ^_^

Thankies,
Perttu
_____________________
There's enough hatered in the world we don't need any on Second Life.
Douglas Callahan
Fresh Prince Of SL
Join date: 2 Jul 2004
Posts: 349
05-18-2005 20:05
CODE
default
{
touch_start(integer start_params)
{
llSay(0,"INSERT TEXT HERE");
}
}

no need to pay for that.

try the scripting tips forum next time
_____________________
Other than that, Mrs. Lincoln, how was the play?
Ursula Madison
Chewbacca is my co-pilot
Join date: 31 Jul 2004
Posts: 713
05-19-2005 02:14
If they haven't changed it, when you edit an object, and open the 'contents' tab, you can click a little button for 'new script.'

That makes a new script in the object, and that script is already what you want. Just change the text in the script that says 'touched' to whatever you want. You might also want to delete the part that says 'hello world' but you don't have to.
_____________________
"Huh... did everything just taste purple for a second?" -- Philip J. Fry
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
05-19-2005 05:17
Yup, it's basically LSL's "Hello World".

(Also, in case this thread disappears and you're wondering where it went, it will have probably be moved to the Scripting Forum.)
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog