//Roz's Outfit Retexture Reciever
//THIS SCRIPT GOES IN THE FINAL BUILD/OUTFIT (once you
//have saved the data from the Texture Information Script
//into the user-defined functions below). This script
//communicates with the Texture Information HUD Buttons
//script to change textures on your build.
//Texture information from the Texture Information Script
//goes into the user-defined functions. When a function
//is called, the outfit uses the information to change
//textures.
//Using the texture data to create lists may be a better
//use of resources, but cutting and pasting that infor-
//mation into user defined functions will do the job as
//well, and should be easier for non-scripters to grasp.
//Texture Function Lists Start Here ----
//Outfit Texture Zero
fZero()
{
//Paste texture data from the Texture Information Script here
}
//Outfit Texture One
fOne()
{
//Paste texture data here
}
//Outfit Texture Two
fTwo()
{
//Paste texture data here
}
//Outfit Texture Three
fThree()
{
//Paste texture data here
}
//Outfit Texture Four
fFour()
{
//Paste texture data here
}
//Outfit Texture Five
fFive()
{
//Paste texture data here
}
//Outfit Texture Six
fSix()
{
//Paste texture data here
}
//Outfit Texture Seven
fSeven()
{
//Paste texture data here
}
//Texture Function Lists End Here ----
integer menuChan;
integer handle;
default
{
state_entry()
{
string uniq_chan = (string)llGetOwner();
//string uniq_chan = (string)llGetCreator();
//use llGetCreator() for events or stage shows where you will be
//changing several costumes at once. Perfect for NPCs or bots.
uniq_chan = "0x" + (llGetSubString(uniq_chan, 0, 3));
menuChan = 13 + (integer)uniq_chan;
handle = llListen(menuChan,"","","");
}
on_rez(integer start_param)
{
llResetScript();
}
listen(integer channel, string name, key id, string msg)
{
if (msg == "TF00") fZero();
if (msg == "TF01") fOne();
if (msg == "TF02") fTwo();
if (msg == "TF03") fThree();
if (msg == "TF04") fFour();
if (msg == "TF05") fFive();
if (msg == "TF06") fSix();
if (msg == "TF07") fSeven();
}
}
Comments
0 B
|👍
/👎
0 B
|0 👍
/0 👎
0 B
|👍
/👎