View Single Post
Example of Multiple choice
Old
RKengineer
Junior Member
 
Status: Offline
Posts: 4
Join Date: Mar 2016
Location: Laurel, MD
Default Example of Multiple choice - 03-28-2016, 09:08 PM

I would like to display the text of a question, then multiple possible answers (one per line). Then prompt the user to select one choice. For example:

What would you like for lunch?
A) Peanut butter & jelly sandwich
B) Garden salad
C) Burger and fries
D) none of the above, I'm on a diet

The "say" procedure seems to be limited to displaying a single line.

I tried using the Billboard prop, but can't find a way to write on it.

Ideally, I would like to make it a re-usable function that can be called with an array of text strings: the question, multiple choices. The function would display these, prompt the user for a choice, and return the letter/number of the choice to the caller.
   
Reply With Quote