Code: Select all
init python
# If persistent.endings is None (the first pass through the game), then make it a set.
if persistent.endings is None:
persistent.endings = set()
# This shows a single ending, as necessary.
def show_ending(number, name):
if name in persistent.endings:
ui.text("% 2d. %s" % (number, name))
else:
ui.text("% 2d. ---------------------------------" % (number,))
# Add a button that brings people to the ending list to the main menu.
config.main_menu.insert(2, ("Endings", "endings_1", "True"))
# Jump here to return to the main menu.
label endings_return:
return
Code: Select all
label endings_1:
scene bg endings_1
$ ui.vbox()
$ show_ending(1, "True Ending")
$ show_ending(2, "False Ending")
$ show_ending(3, "Best Ending")
# ...
$ show_ending(12, "Etcetera.")
# $ ui.textbutton("Previous Page", clicked=ui.jumps("endings_0")
$ ui.textbutton("Next Page", clicked=ui.jumps("endings_2")
$ ui.textbutton("Return", clicked=ui.jumps("endings_return")
$ ui.close()
$ ui.interact(suppress_overlay=True)
Code: Select all
label true_ending:
$ persistent.endings.add("True Ending")
".:. True Ending"
return
Character A Ending:
1.???
2.???
3.???
Character B Ending:
1.???
2.???
3.???
And so on..
How to do it?