|
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
|
10-30-2007 08:10
Hiyas Everyone, I would like to set up a function that will cycle different notecards from the root prim to a linked prim so that the linked prim only has one notecard at a time. Is this possible? I've looked at the llGiveInventory and llGetInventory commands but they can be a little confusing. Any help is always greatly appreciated! 
|
|
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
|
10-30-2007 08:49
From: Zena Juran Hiyas Everyone, I would like to set up a function that will cycle different notecards from the root prim to a linked prim so that the linked prim only has one notecard at a time. Is this possible? I've looked at the llGiveInventory and llGetInventory commands but they can be a little confusing. Any help is always greatly appreciated!  It's UNPOSSIBLE! I'm not sure why you're trying to, but there may be another way to accomplish your goal.
|
|
Lex Neva
wears dorky glasses
Join date: 27 Nov 2004
Posts: 1,361
|
10-30-2007 09:01
Not only is it possible, there are two ways I can think of to do what you want to do.
First, if you really truly want to give inventory to another prim, try this:
llGiveInventory("notecard name", llGetLinkKey(3));
That'll give the notecard to the prim with link #3... that's going to be the second child prim in a linked set.
Also, you may not actually have to send the notecards over at all. If you're planning to have the child prims read the notecards using llGetNotecardLine(), did you know that you can specify a notecard's key, and the notecard need not be in the prim's inventory? So you could use llGetInventoryKey() in the root prim to get the notecard's key, and pass it on to the child prim using llMessageLinked().
|
|
Tyken Hightower
Automagical
Join date: 15 Feb 2006
Posts: 472
|
10-30-2007 09:15
From: Lex Neva Not only is it possible, there are two ways I can think of to do what you want to do.
First, if you really truly want to give inventory to another prim, try this:
llGiveInventory("notecard name", llGetLinkKey(3));
That'll give the notecard to the prim with link #3... that's going to be the second child prim in a linked set. It's... UNPOSSIBLE! Try it. Edit: Well, nevermind, apparently it's ununpossible.
|
|
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
|
Two Wonderful Ideas
10-30-2007 09:50
I think using the notecard key in my situation will be better. I'll post later when I'm finished with everything. Thanx!!! 
|
|
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
|
Third Way... Sorta
10-30-2007 19:10
I had to have a script in the linked prim anyway (notecard giver) so I added a couple of "for" statements (one for the root and one for the linked) to get a list of the same notecards that I dropped into each prim. I then just messaged linked from the root which cards the notecard giver in the linked will call up to give out. Thanks for all the help! 
|