here are the scripts im working with:
Touch Menu Script:
CODE
// when touched, present a dialog
integer CHANNEL = 42; // dialog channel
list MENU_MAIN = ["", ""]; // the main menu
default {
state_entry() {
llListen(CHANNEL, "", NULL_KEY, ""); // listen for dialog answers (from multiple users)
}
touch_start(integer total_number)
{
llDialog(llDetectedKey(0), "What do you want to do?", MENU_MAIN, CHANNEL); // present dialog on click
}
listen(integer channel, string name, key id, string message)
{
if (llListFindList(MENU_MAIN, [message]) != -1) // verify dialog choice
{
llSay(0, name + " picked the option '" + message + "'."); // output the answer
if (message == "Options...")
llDialog(id, "What do you want to do?", MENU_MAIN, CHANNEL); // present main menu on request to go back
// here you have the name and key of the user and can easily verify if they have the permission to use that option or not
else if (message == "Sit")
llSay(0, "This is where stuff would happen if this wasn't just an example");
} else
llSay(0, name + " picked invalid option '" + llToLower(message) + "'."); // not a valid dialog choice
}
}
and the Show/Hide Controller:
CODE
default
{
touch_start(integer total_number)
{
llSay(0, "show");
llSay(1, "show");
llSay(2, "show");
llSay(5, "show");
llSay(7, "show");
llSay(9, "show");
llSay(69, "show");
//llShout(5, "unlock");
//llWhisper(0, "unlock");
state hide;
}
}
state hide
{
touch_start(integer total_number)
{
llSay(0, "hide");
llSay(1, "hide");
llSay(2, "hide");
llSay(5, "hide");
llSay(7, "hide");
llSay(9, "hide");
llSay(69, "hide");
//llShout(5, "lock");
//llWhisper(0, "lock");
state default;
}
}
so like i said i want to be able to use the touch menu to send out the commands to the to the show/hide controller.any help would be greatly appreciated and ya might just get a really really nice free item inworld...tyvm in advance..
