Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

menu driven color changing script in a linked object?

Mickeylicious Munster
Registered User
Join date: 20 Feb 2008
Posts: 49
02-18-2009 11:28
i has added a color menu driven changing script in a couch in a 17 prim couch that i want to link together but i only want certain parts to be optional to color change but since its all linked its changing the whole thing. can someone please come to me and look at the script and tell me what exactly needs to be changed in this script?
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
02-18-2009 11:36
list links_to_change = [ 3, 4, 5, 7, 11 ];
integer i;
integer n = llGetListLength(links_to_change);

for(i = 0; i < n; i++) llSetLinkTexture(llList2Integer(links_to_change, i), texture_id);
_____________________
Argent Stonecutter - http://globalcausalityviolation.blogspot.com/

"And now I'm going to show you something really cool."

Skyhook Station - http://xrl.us/skyhook23
Coonspiracy Store - http://xrl.us/coonstore
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
02-18-2009 11:37
If it is a single script, it's probibly using llSetLinkPrimitiveParams and giving the argument of LINK_SET, you have two options. Either find out what the link number of each piece of the couch you want to change, and call that function with just those numbers, or you put a script in each prim you want to change color and have it waiting for a linked message from some master script that tells them what color to change.

Edit: Or what argent said :)
Mickeylicious Munster
Registered User
Join date: 20 Feb 2008
Posts: 49
huh?
02-18-2009 11:40
i am soooo confused i dont knows nothing about scripts :(