Custom Quest makes use of unitys event system in order to make it easier for you use the system.
Events, which events can your system listen for?
Having an event system to listen for the events in Custom Quest might make it easier for you to use Custom Quest with you game, if this is what you prefer, here is a list of the current events used in custom quest
Custom Quest calls out at specific times in the quests lifetime, you are able to use an event system to to react to these events
Quest objects spawned
When new objects are spawned for the quest criteria.
When a reward is given to the player for completing a quest.
When the entire quest is completed used to update ui and make sure the proper player
When a quest is failed by a player,
If you prefer using a listener as a separate component instead of a part of either CQUnit or CQPlayer the you can ad the CQRewardListener as a component to your object.
Custom quest contains an optional UI setup, if you would like to use your own ui but make use of the pre made events to keep your ui up to date with your quests.
Reset quests in list
Used to keep the quest list clean, run whenever quests are removed from the quest list.
Update quest tracker
Used when new quests are activated and/or quests are completed in order to keep the quest compass synchronized.
When a criterion has progressed in any way, used in the UI to keep the UI elements up to date with the player’s progress.
When a criteria is completed, for updating the the UI elements, which player completed.
When a criteria is failed
Start quest pop up
When a quest pop up should become active in the game for the player to accept or deny the quest.
Alternately you can use the event system to call methods using the following methods:
Call this Method, and give the needed info to make a quest completed.
Call this method to tell the desired Criteria about the progress.
Call this method to give the player a reward, when finishing the quest.
Call this method to reset the quest event.
Call this method to update the “compass” quest tracker.
Call this method if you want the quest to make a popup, when starting.