Exemple #1
0
    public void ProcessQuestUnTrigger(QuestTrigger questTrigger)
    {
        if (complete)
        {
            return;
        }

        if (questTrigger.questNode == currentObjective)
        {
            currentObjective.MarkTaskIncomplete(questTrigger.task);
            currentObjective.ShowCurrentTasks();
        }
        else
        {
            questTrigger.questNode.MarkTaskIncomplete(questTrigger.task);
            if (questTrigger.questNode == currentObjective.previous)
            {
                currentObjective = questTrigger.questNode;
                currentObjective.ShowCurrentTasks();
                // When you go to the previous node, make the quest giver say
                // the repeated dialog.
                dialog = currentObjective.repeatedDialog;
            }
        }
    }
Exemple #2
0
 private void AdvanceQuestAndDisplayObjectives()
 {
     // TODO Select the next objective.
     givePlayersQuestNodeRewards();
     if (currentObjective.next.Length == 0)
     {
         complete = true;
     }
     else
     {
         currentObjective = currentObjective.next[0];
         currentObjective.ShowCurrentTasks();
     }
 }
Exemple #3
0
 public void ShowCurrentTasks()
 {
     currentObjective.ShowCurrentTasks();
 }