Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple Give Script?

perttu Kitty
I was here?
Join date: 17 Dec 2004
Posts: 23
05-20-2005 19:28
I know this is probebly a really stupid question but i can't use the search button on the forums for some reason. I want to make it so when ever someone touches the huge vodka bottle i'm carrying it gives them a smaller coppy of it and i don't think i'm using th right script and i'm not sure you can even do it...

Any help would be greatly apresiated!

Rock out,
~Perttu
_____________________
There's enough hatered in the world we don't need any on Second Life.
Toy LaFollette
I eat paintchips
Join date: 11 Feb 2004
Posts: 2,359
05-20-2005 19:32
might try this with a copy of the bottle in the bottle......
default
{
touch_start(integer total_number)
{
llGiveInventory(llDetectedKey(0), "Inventory Item";);
}
}
_____________________
"So you see, my loyalty lies with Second Life, not with Linden Lab. Where I perceive the actions of Linden Lab to be in conflict with the best interests of Second Life, I side with Second Life."-Jacek
Luke Ramona
Registered User
Join date: 3 Apr 2005
Posts: 32
05-21-2005 05:27
Just for the sake of clarification... if the bottle is called "Bottle of Vodka"

CODE

default
{
touch_start(integer total_number)
{
llGiveInventory(llDetectedKey(0), "Bottle of Vodka");
}
}
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
05-21-2005 05:50
For further clarification, she said that the "big bottle" is something she is "carrying", and that she wants to have it touch triggered. If it is an attachment, then it cannot be touched.

If the bottle is not attached, the above scripts will work. But if the bottle is attached, then the "touch_start()" event can never be triggered.

- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
05-21-2005 06:47
Ace, you're wrong.

Attached objects DO receive touch events, if someone clicks on them.

(Just rez a cube, make a default script, and attach it to your head. Then click on it.)