GameQuestList Contains() Methods

v4.0

Each can optionally include a Uid() to specify the quest to search for, or will return if any quest is of that status.

if (gameQuestList.ContainsQuestsInProgress())
    Debug.Log("We have in progress quests!");
if (gameQuestList.ContainsQuestsSucceeded(uid))
    Debug.Log($"We have successfully completed quest {uid}");
if (gameQuestList.ContainsQuestsFailed())
    Debug.Log("We have failed in at least one quest");
if (gameQuestList.ContainsCompleted(uid))
    Debug.Log($"Quest {uid} has completed, either in success or in failure.");

Additional Contains methods

// Contains at least one quest which modifies stats
if (gameQuestList.ModifiesStats)
    Debug.Log("At least one quest will modify stats in it's current status.");

Last updated