This is a guide on how to use, modify, and create quests.
The Quest Manager is a singleton named QUEST_MANAGER
. There is only one Quest Manager in the project, currently located in the Manager Dialogue scene.
Currently, there are 5 quest types:
CompositeQuest
A quest of sub quests.MarkerQuest
Requires the player to be at a specific location. The Marker
script can be attached to a game object to specific the position of a marker.ItemQuest
Requires the player to simultaneously have a set of items in their inventory.PickupQuest
Requires the player to pick up a certain number of items (the type or method of picking up the item does not matter).ValueQuest
Requires the player to have a certain scrap value in their inventory.KillQuest
Requires the player to kill a certain number of enemies (or anything with a health component) of a specific type.Quests are now based off scriptable objects instead of game object components. First, open the folder Assets/Resources/Quests
in the project panel. Next, right click inside the project panel and select the Create menu, then the New Quest menu, and finally pick the appropriate quest type. Additionally, you can create sub-folders inside the quest folder to organize quest files, however, quests are identified by their file name which must be unique.
The following parameters exist on all quest types: