Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Giving paired inventory items...

Dumisani Ah
Pass me the hammer
Join date: 2 Dec 2006
Posts: 95
07-16-2008 00:39
I'm trying to expand the little server client advertising network I made with Hewee's assistance, and I am currently adding a feature that will cycle the textures for different ads on a prim face (easy enough) and then when touched it will give the touching av the exact landmark for that texture plus a notecard (the landmark could be imbedded in the notecard of course).

Anyway, the question I want to ask is what the best practice for this would be, if it is possible to do of course? In my script I would need to match texture to notecard/landmark, so that the prim knows which pairs match when touched.
Is this also better to manage from a notecard/website? I'm not keen to go there, but hey, this is all learning for me, and if I must I will :)

Assumption: The items that are loaded from the server are loaded using the same name convention, i.e. 'first' (texture) matches 'first' (notecard/landmark).
If I use this assumption I am thinking that when touched, the script can check what texture is running parsed from its name 'first', and than filter out the prim inventory for the matching object called 'first' as well?

Or would it be better to use a naming convention that substitutes the name of the notecard with the UUID of the matching texture, so that the UUID can be used as an ID, i.e. check the UUID of the texture currently being displayed, somehow parse it into a string (we dont need numbers here, just text to match) and then somehow match it with a notecard in the inventory that has the same name?

Sorry for the long drawn out thinking process here, but I'm kinda stumped and as many of you know quite handy with a hammer, but useless with lsl!
_____________________
Screwdrivers are so 90's...
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
07-16-2008 01:12
Such things are best done using a delivery server system where the ad board tells the delivery server who touched it and which notecard/landmark to deliver.