HUD Menu Script:
integer CHANNEL = 42;
list MENU_MAIN = ["Armor Color", "Fx Color"];
list MENU_FXCOLOR1 = ["fx black","fx white","fx red","fx yellow","fx green","fx cyan","<<< Back","Next >>> "];
list MENU_FXCOLOR2 = ["fx blue","fx purple","fx orange","fx brown","fx pink","fx grey"," <<< Back"];
list MENU_ARMORCOLOR1 = ["armor black","armor white","armor red","armor yellow","armor green","armor cyan","<<< Back","Next >>> "];
list MENU_ARMORCOLOR2 = ["armor blue","armor purple","armor orange","armor brown","armor pink","armor grey"," <<< Back"];
default {
state_entry() {
llListen(CHANNEL, "", NULL_KEY, ""
; }
touch_start(integer total_number)
{
if(llDetectedKey(0) == llGetOwner())
{
llDialog(llDetectedKey(0), "Pick a Option", MENU_MAIN, CHANNEL);
}
}
listen(integer channel, string name, key id, string message)
{
if (llListFindList(MENU_MAIN + MENU_FXCOLOR1 + MENU_ARMORCOLOR1 + MENU_FXCOLOR2 + MENU_ARMORCOLOR2, [message]) != -1)
{
llSay(-20000, message );
if (message == "Fx Color"
llDialog(id, "FX Color Menu 1", MENU_FXCOLOR1, CHANNEL);
else if (message == "Armor Color"
llDialog(id, "Armor Color Menu 1", MENU_ARMORCOLOR1, CHANNEL);
else if (message == "Next >>> "
llDialog(id, "FX Color Menu 2", MENU_FXCOLOR2, CHANNEL);
else if (message == "<<< Back"
llDialog(id, "Pick a Option", MENU_MAIN, CHANNEL);
else if (message == "Next >>> "
llDialog(id, "Armor Color Menu 2", MENU_ARMORCOLOR2, CHANNEL);
else if (message == " <<< Back"
llDialog(id, "FX Color Menu 1", MENU_FXCOLOR1, CHANNEL);
else if (message == " <<< Back"
llDialog(id, "Armor Color Menu 1", MENU_ARMORCOLOR1, CHANNEL);
}
}
}
Attach Listen Script:
default
{
state_entry()
{
llListen(-20000,"",NULL_KEY,""
;}
listen(integer channel, string name, key id, string message)
{
if ( llGetOwner() == llGetOwnerKey( id ))
{
if (message == "armor black"
llSetColor(<0,0,0>, ALL_SIDES);else if (message == "armor white"
llSetColor(<1,1,1>, ALL_SIDES);else if (message == "armor grey"
llSetColor(<0.5,0.5,0.5>, ALL_SIDES);else if (message == "armor red"
llSetColor(<1,0,0>, ALL_SIDES);else if (message == "armor yellow"
llSetColor(<1,1,0>, ALL_SIDES);else if (message == "armor green"
llSetColor(<0,1,0>, ALL_SIDES);else if (message == "armor cyan"
llSetColor(<0,1,1>, ALL_SIDES);else if (message == "armor blue"
llSetColor(<0,0,1>, ALL_SIDES);else if (message == "armor purple"
llSetColor(<1,0,1>, ALL_SIDES);else if (message == "armor orange"
llSetColor(<1,0.5,0>, ALL_SIDES);else if (message == "armor brown"
llSetColor(<0.5,0.25,0>, ALL_SIDES);else if (message == "armor pink"
llSetColor(<1,0,0.5>, ALL_SIDES);}
}
}
: