Runtime Added Quest is not loaded
Posted: Tue Feb 08, 2022 12:21 am
I'm adding quest in runtime use QuestLog class as below:
EDIT: So I debugged a bit and save string data has my new quest, but the issue is when I'm calling
Quest added in runtime is not recovered, only pre-created quests are loaded.
Here's an example of my quest json in save file
Code: Select all
QuestLog.AddQuest(questName, questDesc);
Code: Select all
string saveString = PixelCrushers.DialogueSystem.PersistentDataManager.GetSaveData();
writer.Write(saveString);
Code: Select all
PixelCrushers.DialogueSystem.PersistentDataManager.ApplySaveData(saveString);
Here's an example of my quest json in save file
Code: Select all
Item[
"minor_quest_transport_Villager2"
]={
Name="minor_quest_transport_Villager2",
Description="",
State="active",
CarryObject="Carriable_bale3",
Count=0,
TargetCount=3,
Location="Transport Location",
Agent="Villager2",
Reward=100,
};