I'm working on a project, trying to combine two diffrent things into one. I have a menu script I'm using to change the textures on a set of linked ojects with linkmessage which all works fine, but now I'm trying to make it so the new owner can add any full perm texture, with a specific name (they would change it to define which area it would be used for like Inside1, Inside2, Outside1, Outside2, etc...) and then use the menu to change the texture.
The textures need to be only in the root prim to make it simple and I have a simple script that works by putting it in the root prim then anouther script in the child prims and the root prim everytime it's touched sends the next texture to the child prims. That all works great, but I can't figure out how to take the texture change script and make it work for the menu.
I need it to send the texture of the correct name in inventory to the child prims and right now it's only capable of sending the first (alphabetically) becuase it's not looking for the texture name, just the first texture (I think anyway).
So if anyone has any pointers I'd really appriacte it. I mostly just play around until it works out and cut and past so I'm not really a scripter.
root prim
CODE
if (message=="Inside 1")
{
if (name != "")
integer number = llGetInventoryNumber(INVENTORY_TEXTURE);
float rand = llFrand(number);
integer choice = (integer)rand;
string name = llGetInventoryName(INVENTORY_TEXTURE, 0);
key textureid = llGetInventoryKey(name);
llMessageLinked(LINK_SET,0,"",textureid);
}CODE