Numerical choices in choices menu?
Posted: Wed Dec 27, 2017 6:52 am
Like in rpg games - where you can press numbers on keyboard to answer. Is it possible to do someway?
Supporting creators of visual novels and story-based games since 2003.
https://lemmasoft.renai.us/forums/
Code: Select all
screen choice(items):
# style_prefix "choice"
#
# vbox:
# for i in items:
# textbutton i.caption action i.action
style_prefix "choice"
for n, i in enumerate(items, 1): # n would be the number starting from 1
if n<10:
key str(n) action i.action
textbutton str(n) + ") " + i.caption action i.action