I have a problem with a menu displaying. The relevant sections of code are below. The first menu appears no problem, and if I select the second option on that menu (Select) I branch to the state to deal with that, which produces another menu with further options. But this second menu will just not display, the script freezes, and I have to reset the script manually from the Tools menu. Strange thing is, in LSLEditor it displays perfectly, and no errors are reported. Can anyone spot anything?
list mmMENU = ["Create", "Select", "List all"]; // the marker maker menu list
default
{
state_entry()
{
llSetAlpha(0.0, ALL_SIDES); //Make all sides transparent
llListen(mychannel, "", NULL_KEY, ""
; // listen for dialog answers (from multiple users)}
touch_start(integer total_number)
{
llDialog(llDetectedKey(0), "\nCreate - Create a new marker \nSelect - Select a marker to deploy \nList - List all the markers in the database", mmMENU, mychannel);
}
listen(integer channel, string name, key id, string message)
{
if (message == "Create"
state create; else if (message == "Select"
state select;else if (message == "List all"
state listall;}
}
state select
{
state_entry()
{
llListen(mychannel, "", NULL_KEY, ""
; // listen for dialog answers (from multiple users)llDialog(llDetectedKey(0), "\nChoose a marker to be deployed..", mmMENU, mychannel);
state finishUp;
}
listen(integer mychannel, string name, key id, string message)
{
}
}