The LISTVAR control allows you to enter a list of values for selection. The list is shown as a drop-down combo box with a small downward pointing arrow to the right. txt contains the name of the variable to change with the prompt information following the |. acc contains the range specification along with a list of values.
If you specify a range in acc the user will have the option of typing in a value for the LISTVAR. If no range is specified, the user will only be able to choose from the presented list.
The list follows the optional range as a series of numbers separated by bars |. You can also use description=number depending on purpose. For example
LISTVAR,"TENSION",10,10,30,0,,[0|50]20|30|40|50
would show the choices 20, 30, 40 and 50 and allows the user to type in a number between 0 and 50 whereas
LISTVAR,"TENSION",10,10,30,0,,Low=20|Medium=30|High=40|Maximum=50
would show the choices Low, Medium, High and Maximum (if a description is specified the number is hidden) and not allow the user to choose anything else.
If you use LISTVAR and the current value of the Constant or Game input is not included in the list, the value will be added to the list, or entered into the edit field as a number if a range has been specified.
NOTE LISTVAR will not work on the Macintosh. Values will display but selection will not change anything.