-
Notifications
You must be signed in to change notification settings - Fork 0
Quest Events
You can add new quest events in the script "QuestEvents".
Example:
public void NewQuestEvent(Quest quest)
{
// Quest event...
}
The quest events are located in the "QuestEvents" game object:
Click onto the quest file, after that, you have to decide when a specific event should be triggered (See Conditions):
Simply, click on the "+" sign to add a new event, and the "-" sign to remove the currently selected event from the list. After you added an event, the window should look like this:
Next to "None (Object)", you have to press the small circle. Select the Prefab "QuestEvents". For function, you have to select the method which should be executed on this event. After you selected a method, there should appear a field that says "None (Quest)". In there, you have to insert the quest itself again (File).
Execute this event, if the hamster picks up one or more grains.
Execute this event, if the hamster drops one or more grains.
Execute this event, if the hamster moved.