Quest condition save data
Posted: Thu Nov 10, 2022 2:53 pm
I have a quest condition that holds an identifier used to find a target village in my game's world. When the quest is started, the condition gets the quest giver's current village identifier in StartChecking. After starting the quest, I want to be able to save the active quest when I exit the game then restore the active quest and quest condition with the same village identifier. I am already using the save system and all quests have been saved/loaded fine so far.
I tried adding the village identifier to the questNode's tag dictionary when we first get it but it appears that the tag dictionary contents are not loaded until after the node's state is loaded and StartChecking is called. What's the best practice for saving additional data for quest conditions like this target village ID?
I tried adding the village identifier to the questNode's tag dictionary when we first get it but it appears that the tag dictionary contents are not loaded until after the node's state is loaded and StartChecking is called. What's the best practice for saving additional data for quest conditions like this target village ID?