I got it to work.
The thing is, in my game I update it monthly and I just realized that the quests declarations are in a label.
Example:
Code: Select all
label createlog:
python:
quests = [ ]
########################################################
goals = [ ]
stages = [ ]
goals.append(Goal("Test1", _("test")))
goals.append(Goal("Test2", _("test")))
goals.append(Goal("Test3", _("test")))
stages.append(Stage("Test1"))
stages.append(Stage("Test2"))
stages.append(Stage("Test3"))
quests.append(Quest(_("The Test"),
_("test.*{/b}"),
_("Main"),
goals,
log = Questlog(quests, "qlog", "qkey")
del goals
del quests
del stages
stages))
So, my question is; is there a way for the labels to update the new stuffs. Like with after_load or something?
Simply calling the createlog label will remove all the existing quests and basically resets it.
I do understand that the code is old, and the maker of the original code hasn't been active since 2017, so getting help with this is probably limited.
But if there are some smart people out there with some great tricks that may be useful I would really appreciate it.