Page 1 of 1

Calling a quest in a script

Posted: Thu Jul 23, 2015 12:44 pm
by SuperSparkplug
Hi there,

Because of some difficulties doing this with the dialogue system, I want to make a script for certain objects that will call for an gameobject to be enabled if a certain quest is active. What function would I need to call?

Re: Calling a quest in a script

Posted: Thu Jul 23, 2015 3:18 pm
by Tony Li
Use the QuestLog class:

Code: Select all

using PixelCrushers.DialogueSystem;

if (QuestLog.IsQuestActive("questName")) {
    // enable your GameObject.
}