The DropDown Command

sample.png

Command Summary

Creates a custom menu

Menu Location

Describe how to get the command from a menu.

Calculator Compatibility

This command works on all calculators.

Token Size

X byte(s)

Similar to the Menu( command, the DropDown is used in a dialog box to make body text that includes a dropdown menu, with multiple options. This is good for use in text RPGs or game menus where a dialog box already exists and there isn't a need for another box. Look at this code for example:

:Dialog
:DropDown "Do you like food?", {"Yes", "No"}, t
:EndDlog

This will create a window with the title as "Do you like food" and the options as "Yes" and "No". "T" corresponds to the choice you selected For example, if you chose "Yes", the "T" would be equal to 1. However, if you pressed "No", then "T" would be equal to 2. Basically, the value of your chosen variable will correspond to the choice you made in the window.

Error Conditions

730 - Missing start or end of block syntax happens when the command isn't put between a Dialogue/EndDlog block.

Related Commands

Several (around 3) commands have a similar function or are used in a similar context to this command. Make a bulleted list of them, with links to the other commands' pages. It will often be the case that several commands all link to each other.

Credits

Credits to an unknown user (who's account got deleted). He/she created the code and the first paragraph of the explanation.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial-No Derivative Works 2.5 License.