right now I'm making small RPG for my best friend as a birthday gift.
In this game we have super powers and on start each battle we go through transformation like Sailor Moon.
But these transformations take some time so just like in anime I have made shorter versions and I want to make possible to change between them in preferences.
So I added to Preferences this:
Code: Select all
frame:
style_group "pref"
has vbox
label _("Transformation lenght")
textbutton _("Full") action SetVariable("persistent.short_trans", False)
textbutton _("Short") action SetVariable("persistent.short_trans", True)Code: Select all
While running game code:
File "renpy/common/00action_data.rpy", line 50, in get_selected
return getattr(self.object, self.field) == self.value
AttributeError: 'StoreModule' object has no attribute 'persistent.short_trans'And if I put it in label start, this error will occurd if I go into the preferences before clicking on New game.

