ID:179371
 
I'm sure theres a way, but I don't know how (And I don't have time to look for it anymore [I checked the Help On... section]... too many people bugging me to add other stuff), but is there a way to pop up a question with a list of answers, instead of just a query box? Thanks!
yes there is. its quite simple. Heres an example:

verb
myverb()
var/picked = input("Pick one") in list ("Choice 1","Choice 2")
usr << picked


-Rcet
In response to Rcet
Thanks very much!
You can use the input() proc, which is in the F1-Help file, and I think Rcet just gave you a basic example. Also, you remember how you got a query box when you used mob in oview()? It automatically generates a query whenever the player doesn't specify an argument for a verb that needs them... if the input type is "as text" or "as num", of course, it'll just be an entry field... but if you have something like this:

mob/var/list/spells = spells

mob/verb/cast(spell in src.spells)

If the player selects the cast verb from the panel, or just types "cast" and hits enter, it will pop up an input box with a list of all the spells the player knows. Also, if you "cast fir" and hit space, it will check the spell list and, if appropriate, expand to fireball, fireshield, or whatever.