Code: Select all
screen choice(items):
style_prefix "choice"
vbox:
for i in items:
textbutton i.caption action [narrator.add_history(kind="adv", who="{b}>>>{/b}", what=i.caption), i.action]
I would like for it to only show the selected choice, not all choices.Narrator: Would you like to show trigger warnings?
>>> Yes
>>> No
---
If I just put 'i' instead of 'i.caption' then it throws up this error:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/screens.rpy", line 679, in execute
screen history():
File "game/screens.rpy", line 679, in execute
screen history():
File "game/screens.rpy", line 686, in execute
use game_menu(_("History"), scroll=("vpgrid" if gui.history_height else "viewport"), yinitial=1.0):
File "game/screens.rpy", line 325, in execute
screen game_menu(title, scroll=None, yinitial=0.0):
File "game/screens.rpy", line 325, in execute
screen game_menu(title, scroll=None, yinitial=0.0):
File "game/screens.rpy", line 333, in execute
frame:
File "game/screens.rpy", line 335, in execute
hbox:
File "game/screens.rpy", line 336, in execute
frame:
File "game/screens.rpy", line 338, in execute
if scroll == "viewport":
File "game/screens.rpy", line 339, in execute
viewport:
File "game/screens.rpy", line 346, in execute
vbox:
File "game/screens.rpy", line 347, in execute
transclude
File "game/screens.rpy", line 686, in execute
use game_menu(_("History"), scroll=("vpgrid" if gui.history_height else "viewport"), yinitial=1.0):
File "game/screens.rpy", line 690, in execute
for h in _history_list:
File "game/screens.rpy", line 692, in execute
window:
File "game/screens.rpy", line 695, in execute
has fixed:
File "game/screens.rpy", line 710, in execute
text what:
Exception: Cannot display (u'Yes', <renpy.ui.ChoiceReturn object at 0x0393A290>, True) as text.