A selection definition block defines a menu of choices. You can call up a menu by using the choose script command. Selection definition blocks are special in that they act as "doorways" to other procedures or script commands - the player chooses the script which is executed. When they are called, a window pops up with a list of choices and the player is able to choose one by selecting one and then clicking "Select". A selection definition block looks like this:
define selection <selectionname> info <Information about the menu> choice <A choice> (script) . . . end define
Only one "info" line may be present. Each "choice" line corresponds to a different selection on the menu, and you can have as many "choice" lines in any selection definition block as you like.
choice <selection text> script
This specifies the text displayed for each choice, and the script executed when it is selected.
info <information text>
Specifies the text displayed when the user is prompted to make a choice from this menu.