bon pour tout les prims liées,ok pas de probs.
par contre, j'ai pas bien compris pour juste que la couleur s'appilqie a certains prims. Mon porbleme est que en fait, une fois ma liste de prims a colorés est faite, je ne sais pas oû la placer dans le script.
list bouton=["rouge","orange","rose","bleu","jaune","blanc","violet","vert","noir","gris"];
default
{
state_entry()
{
integer channel=1;
llListen(channel,"",llGetOwner(),"");
}
touch_start(integer total_number)
{
integer channel=1;
llDialog(llGetOwner(),"Choisissez la couleur du Vaisseau",bouton, channel);
}
listen(integer channel, string name, key id, string message)
{
if(message=="rouge") llSetLinkColor(LINK_SET,<255,0,0>,ALL_SIDES);
if(message=="vert") llSetLinkColor(LINK_SET,<0,255,0>,ALL_SIDES);
if(message=="bleu") llSetLinkColor(LINK_SET,<0,0,255>,ALL_SIDES);
if(message=="orange") llSetLinkColor(LINK_SET,<255,128,0>,ALL_SIDES);
if(message=="rose") llSetLinkColor(LINK_SET,<255,102,102>,ALL_SIDES);
if(message=="jaune") llSetLinkColor(LINK_SET,<255,102,102>,ALL_SIDES);
if(message=="blanc") llSetLinkColor(LINK_SET,<255,255,255>,ALL_SIDES);
if(message=="violet") llSetLinkColor(LINK_SET,<128,0,128>,ALL_SIDES);
if(message=="noir") llSetLinkColor(LINK_SET,<0,0,0>,ALL_SIDES);
if(message=="gris") llSetLinkColor(LINK_SET,<102,102,102>,ALL_SIDES);
}
}