Quest Tag Dictionary for Quests starting in QuestJournal
Posted: Wed Jan 30, 2019 5:45 am
Hello again!
I tried to start my game with a hand-written quest that has been assigned to the quester's journal in the editor, but QuestTags (like "{QUESTGIVER}") are not replaced. If I hand the quest from the questgiver, this is not an issue.
Do I have to use SaveSystems in order to call ApplyData from QuestJournal.cs?
As far as I can tell, this method calls the function AddQuest which will initialize the tagDictionary for the quest.
Or is it even possible to start a game with a quest that has already been assigned to the quester's journal?
Kind regards,
Franca
I tried to start my game with a hand-written quest that has been assigned to the quester's journal in the editor, but QuestTags (like "{QUESTGIVER}") are not replaced. If I hand the quest from the questgiver, this is not an issue.
Do I have to use SaveSystems in order to call ApplyData from QuestJournal.cs?
Code: Select all
public override void ApplyData(string data)
{
base.ApplyData(data);
RepaintUIs();
}
As far as I can tell, this method calls the function AddQuest which will initialize the tagDictionary for the quest.
Code: Select all
/// <summary>
/// Adds a quest to this quest giver's list.
/// </summary>
/// <param name="quest"></param>
public override Quest AddQuest(Quest quest)
{
if (quest == null) return null;
var instance = base.AddQuest(quest);
instance.AssignQuestGiver(myQuestGiverTextInfo);
QuestMachineMessages.RefreshUIs(this);
return instance;
}
Or is it even possible to start a game with a quest that has already been assigned to the quester's journal?
Kind regards,
Franca