Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thx it works amazing. If I want to add two more sub-classes, such as description and requirement, where else do I need to change in the screens?


init python:
    import collections
    class Quest ():
        def __init__(self, id, title, category, description, requirement, state= "pending"): 
            self.id = id             self.title = title             self.category = category             self.description = description             self.requirement = requirement             self.state = state

I only have 2 missions so far, this is what I have:

define prologue_quest = (
                    Quest("old_friend", _("Old Friend"), _("Prologue"), "Meet up with Jack.", "None", "unlocked"),
                    Quest("betrayer_on_the_hills", _("Betrayer on The Hills"), _("Prologue"), _("Assassinate The Enforcer. Leave no evidence."), _("Completed old_friend")),
                    # Quest("id", _("title"), _("category"), _("description"), _("requirement"), "state"),
                    )