Jump to content

llDialog not working


w1zard
 Share

You are about to reply to a thread that has been inactive for 4089 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

//Compact function to put buttons in "correct" human-readable order
integer channel;
 
list order_buttons(list buttons)
{
    return llList2List(buttons, -3, -1) + llList2List(buttons, -6, -4)
         + llList2List(buttons, -9, -7) + llList2List(buttons, -12, -10);
}
 
default
{
    state_entry()
    {   // Create random channel within range [-1000000000,-2000000000]
    channel = (integer)(llFrand(-1000000000.0) - 1000000000.0);
 
    llListen(channel,"", "","");
    }
 
    touch_start(integer total_number)
    {
        llDialog(llDetectedKey(0),"\nPlease choose an option:\n",
        order_buttons(["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]),channel);
    }
 
    listen(integer _chan, string _name, key _id, string _option)
    {
        llSay(0, _name + " chose option " + _option);
//ADDED THIS..... llDialog(llDetectedKey(0),"\nPlease choose an option:\n", order_buttons(["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]),channel); } }

 I am trying to use llDialog in listen directly after using llDialog. If this code worked, you would have an infinate menu. But I cannot directly show a dialog after showing the first one. What am I doing wrong? Thanks

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4089 days.

Please take a moment to consider if this thread is worth bumping.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...