|
Morlieth Cahill
Registered User
Join date: 19 Jul 2006
Posts: 2
|
09-21-2007 15:39
Hello all, I've been trying to think of a way to in a linked set do a touch.start event that lists the notecard of each cliked prim (for a hud) whether it's child or root shouldnt matter, each clicked prim should list it's content in a dialog, and then based on number pressed in the dialog, the script should give the item corresponding to the number...
Can someone kindly help me puzzle this together?
|
|
Morlieth Cahill
Registered User
Join date: 19 Jul 2006
Posts: 2
|
09-27-2007 11:30
bump
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
09-27-2007 12:00
Are you saying . . .
Click on a prim and choose the content from that prim?
OR
Click on a prim and choose from the content of all of the prims?
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
09-28-2007 02:57
it sounds like you want to put something in EACH child prim (notes, scripts, textures, objects, whatever) and give it away if that child is touched? this isn't any better than having a whole bunch of separate prims giving out contents... what would be preferable, is a single script in the root with touched( integer vIntTouch){ integer i = llDetectedLink(0) if (i=1){ //code to give away list of items for root prim } else if (i=2){ //code to give away list of items for child 1, etc }
this takes all the scripts in the children and moves them into one central script, saves on overheard and complexity to update, you can even pull this trick from a single child if your root prim is too cluttered hope that's what you're after (there are a few reasons to need scripts in children (llGetPrimParams) but most can be worked around and make it less of a headache
|