From: azure Milev
I'd like to be able to create more dialogue button in the second script, if it's possible. Can anyone point me in the right direction for making the second script listen to the first? thank you kindly!
Hi azure~ If you'd like to have multiple menus and more buttons, you could do it in the 1 script under the same state. Below is a working 5-page menu sample script, up to 45 numbers with "prev", "next" and back to main menu page options. Hope that helps.

//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
//_/_/_/_/_/_/_/_/_/_/_/_/ The Script Begins /_/_/_/_/_/_/_/_/_/_/_/_/_/
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
key toucher = NULL_KEY; // who touches to use
integer menu_chan = -1; // channel to use in the menu
integer listen_num = -1; // menu listen event handler
integer menu_page = 1; // menu page number
integer using_menu = FALSE; // boolean to avoid multi menus
list MAINMENU = [
" ", "Pictures", " "];
//==============================================================
create_menu(string menu_message,list menu_button)
{ // function used to create menu to "user", given a "menu_message" and "menu_button"
menu_chan = 0 - (integer)llFrand(2147483647);
listen_num = llListen(menu_chan,"", toucher,""

;
llDialog(toucher, menu_message, menu_button, menu_chan);
llSetTimerEvent(60.0); // 60 sec timer used to in case the "ignore" button is pressed or time out
}
//==============================================================
default
{
state_entry()
{
}
touch_start(integer int)
{
if (!using_menu)
{ // only provide menu if no one is using
toucher = llDetectedKey(0);
using_menu = TRUE;
create_menu("MAINMENU MESSAGE",MAINMENU); // create the main menu
}
}
listen(integer channel, string name, key id, string message)
{
llListenRemove(listen_num); // just to save resources
if (message == " "

{ // the space is pressed and back to start
using_menu = FALSE;
menu_page = 1;
}
else if (message == "Pictures"
{ // page 1 begins
string menu_msg = "PAGE 1 MESSAGE";
list page1_button = ["LIST","Main Menu","+ >>>","07","08","09","04","05","06","01","02","03"];
create_menu(menu_msg,page1_button);
}
else if (message == "Main Menu"
{ // back to main menu
using_menu = FALSE;
menu_page = 1;
create_menu("MAINMENU MESSAGE",MAINMENU);
}
else if ( (message == "- <<<"

|| (message == "+ >>>"

)
{ // if the "prev" or "next" page is pressed
if (message == "+ >>>"

// increment the page number
menu_page += 1;
else if (message == "- <<<"

// decrement the page number
menu_page -= 1;
string menu_msg = ""; // initialize a menu message
list template_button = ["- <<<","Main Menu","+ >>>"]; // standardize the bottom 3 buttons
list add_on_button = []; // the buttons to add from different pages
if (menu_page == 1)
{
menu_msg = "PAGE 1 MESSAGE";
add_on_button = ["LIST","Main Menu","+ >>>","07","08","09","04","05","06","01","02","03"];
}
else if (menu_page == 2)
{
menu_msg = "PAGE 2 MESSAGE";
add_on_button = template_button + ["16","17","18","13","14","15","10","11","12"];
}
else if (menu_page == 3)
{
menu_msg = "PAGE 3 MESSAGE";
add_on_button = template_button + ["25","26","27","22","23","24","19","20","21"];
}
else if (menu_page == 4)
{
menu_msg = "PAGE 4 MESSAGE";
add_on_button = template_button + ["34","35","36","31","32","33","28","29","30"];
}
else if (menu_page == 5)
{
menu_msg = "PAGE 5 MESSAGE";
template_button = ["- <<<","Main Menu"," "]; // last page special case, no more "next page"
add_on_button = template_button + ["43","44","45","40","41","42","37","38","39"];
}
create_menu(menu_msg,add_on_button);
}
else if (message == "LIST"
{ // do "LIST" actions
}
else if (message == "01"
{ // do "01" actions
}
else if (message == "02"
{ // do "02" actions
}
// .... add more "else if" in between for each picture number
else if (message == "45"
{ // do "45" actions
}
}
timer()
{ // 60 sec timer used to in case the "ignore" button is pressed or time out
llListenRemove(listen_num);
llSetTimerEvent(0.0);
using_menu = FALSE;
menu_page = 1;
}
}
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
//_/_/_/_/_/_/_/_/_/_/_/_/ The Script Ends /_/_/_/_/_/_/_/_/_/_/_/_/_/_/
//_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/