The DropDown Command

dropdown.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

2 bytes

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

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 2.5 License.