Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

configuration menus

Rocketman Raymaker
Registered User
Join date: 4 Feb 2007
Posts: 530
07-03-2007 10:23
i have created a game and am now creating a configuration menu for this using llDialog,

I have two buttons in the main menu, setup and view config.

View config will display the current settings and exit the menu.

Setup takes you to a sub menu with 3 buttons, number of players, countdown time and Auto entry.

so anyway, i have got the script working up to this point but am not sure what to do next.

What i want is when you click an option in the submenu the object will ask you a question which you will then answer and it change the variable accordingly.

For example, you click setup then number of players then the object would say "how many players do you want to enter?"

to which you respond "/1 5" then the object would update the numPlayers variable to 5.

So how do i do this?
_____________________
"Proud member of the anti-ginko busy body committee"
Tiarnalalon Sismondi
Registered User
Join date: 1 Jun 2006
Posts: 402
07-03-2007 10:58
Well there are several ways to do this, and it all depends on which you prefer.

The easiest and most user-friendly method would be that if they pick "Number of Players", then it will pop up another dialog menu that states something like "Please specify the number of players" with the options of "1", "2", etc. If you want, to make the if/else easier you could make it "1p", "2p", etc, or just set the number of players menu to a different channel and separate your listen statement with each channel.

The other would be for them to actually say the number after picking that option, which would really involve a lot of the same as the above, which is why I would prefer to just use the menu personally.
Milambus Oh
Registered User
Join date: 6 Apr 2007
Posts: 224
07-03-2007 11:01
Many ways it can be done, but here is one..

When they click the button, switch to a state made specifically for handling the "Number of Players" routine.

Alternatively, you could just turn on a listen and set a status toggle which says you are listening for the Number of Players.
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
07-04-2007 11:59
Well you could go into a state called 'listeningForNumPlayers', set a listener, and accept the next thing said as the number of players (then remove the listener, and switch back to your main state).

If you do this however make sure to not get stuck there, either have a timer to go back to the main state if the player doesn't continue, or have a touch_event to go back (incase they are trying to bring the menu back up).