integer CHANNEL = -499899882; // dialog channel
list MENU_MAIN = ["Yes", "No"]; // the main menu
// a submenu
default {
state_entry() {
llListen(CHANNEL, "", NULL_KEY, ""

}
touch_start(integer total_number)
{
llDialog(llDetectedKey(0), "How Much?", 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(1, name + " picked the option '" + message + "'."

else if (message == "Yes"

llInstantMessage(llGetOwner(), "Instant message goes here"

else if (message == "No"

llInstantMessage(llGetOwner(), "Instant message goes here"

else
llSay(0, name + " picked invalid option '" + llToLower(message) + "'."

}
}