Change font size
It is currently Wed Aug 15, 2018 1:18 pm

Forum rules


{L_IMAGE}



Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: multiprim color changer
PostPosted: Fri Jul 18, 2008 7:58 pm 

Joined: Fri Jul 18, 2008 6:44 pm
Posts: 4
///master colorchanger put in primary prim
/// script by: Fred Extraordinaire

key owner;
// put the name of ur object below or whatever u want the command to
// be for color changeing
string objectname = " your objects name here";

default
{
on_rez(integer start)
{
owner = llGetOwner();
llMessageLinked(LINK_SET, 0, "IM", "say '" + objectname + "' then the color you want to change to.");
}
state_entry()
{
llListen(0,"",owner,"");
llListen(1,"",owner,"");

}
listen(integer channel,string name, key id, string message)
{
if(id == owner)

if(message == objectname + " green")
{
llMessageLinked(LINK_SET, 0, "green", "");
}
if (message == objectname + " yellow")
{
llMessageLinked(LINK_SET, 0, "yellow", "");
}
if (message == objectname + " red")
{
llMessageLinked(LINK_SET, 0, "red", "");
}
if (message == objectname + " blue")
{
llMessageLinked(LINK_SET, 0, "blue", "");
}
if (message == objectname + " grey")
{
llMessageLinked(LINK_SET, 0, "gray", "");
}
if (message == objectname + " orange")
{
llMessageLinked(LINK_SET, 0, "orange", "");
}
}
}

//////slave colorchange (put in any prim you want to change colors
default
{
link_message(integer sender, integer num, string str, key id)
{
if (str == "green")
{
llSetColor(<0.500,1.0,0.500>, ALL_SIDES);

}
if (str == "yellow")
{
llSetColor(<1,1,0.5>, ALL_SIDES);

}
if (str == "red")
{
llSetColor(<0.500,0.200,0.200>, ALL_SIDES);

}
if (str == "blue")
{
llSetColor(<0.500,1.0,1.0>, ALL_SIDES);

}
if (str == "gray")
{
llSetColor(<0.200,0.200,0.200>, ALL_SIDES);

}
if (str == "orange")
{
llSetColor(<1.0,0.500,0.200>, ALL_SIDES);

}
if (str == "pink")
{
llSetColor(<1.0,0.0,0.50196>, ALL_SIDES);

}

}
}

//////owner IM script (yes this was written before llOwnerSay deal with it)
default
{
link_message(integer sender, integer num, string str, key id)
{
if (str == "IM") {
llInstantMessage(llGetOwner(), id);
}
}
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net