Here's how I've got the extra scene put on the main menu if you beat the two routes in the game.
Code: Select all
if main_menu:
textbutton _("Start") action Start()
if persistent.IchigoClear and persistent.IchikaClear:
textbutton _("Bonus") action Start('bonus')
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/Bonus.rpy", line 10, in script
AY "Oh, boy. Here we go..."
KeyError: u'name'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/Bonus.rpy", line 10, in script
AY "Oh, boy. Here we go..."
File "C:\Users\Aaron Mays\Downloads\RenPy\renpy-6.99.12.4-sdk\renpy\ast.py", line 678, in execute
renpy.exports.say(who, what, interact=self.interact, *args, **kwargs)
File "C:\Users\Aaron Mays\Downloads\RenPy\renpy-6.99.12.4-sdk\renpy\exports.py", line 1229, in say
who(what, *args, **kwargs)
File "C:\Users\Aaron Mays\Downloads\RenPy\renpy-6.99.12.4-sdk\renpy\character.py", line 1012, in __call__
who = who_pattern.replace("[who]", sub(who))
File "C:\Users\Aaron Mays\Downloads\RenPy\renpy-6.99.12.4-sdk\renpy\character.py", line 1007, in sub
return renpy.substitutions.substitute(s, scope=scope, force=force, translate=translate)[0]
File "C:\Users\Aaron Mays\Downloads\RenPy\renpy-6.99.12.4-sdk\renpy\substitutions.py", line 244, in substitute
s = formatter.vformat(s, (), kwargs)
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 563, in vformat
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 585, in _vformat
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 646, in get_field
File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/string.py", line 605, in get_value
KeyError: u'name'
Windows-8-6.2.9200
Ren'Py 7.1.3.1092
Gemini ~ Team Requiem 1.0
Thu Feb 07 16:39:12 2019
Code: Select all
$ name = renpy.input("What's your name?", default="Ayumu", length=10)
$ name = name.strip()
$ persistent.name = "[name]"
$ renpy.save_persistent()