So, I have two classes to store quests in my game and to show them to the player every time he enters a screen, just like this:
Code: Select all
class Quest(renpy.store.object):
def __init__(self, subj=".png", descr=""):
self.subj = subj
self.descr = descr
class Qlist(renpy.store.object):
def __init__(self):
self.quests = []
def add(self, quest):
self.quests.append(quest)
def ok(self, quest):
self.quests.remove(quest)
Code: Select all
default hope1 = Quest("hope", "Meet {color=#3397fe}Hope{/color} at the gym.")
Can someone help me with this?