Skip to main content

QuestManager

The QuestManager stores the quests and can figure out what quest is available.

quests: Object = {}

Stores a list of Quests, by ID.

addQuest(quest)

Adds a Quest object to the list of quests.

var quest = load("res://quests/Quest.gd").new()
quest.id = "findSukiStart"
quest.dialogueID = "findSukiStart"
quest.name = "Finding a New Girl"
quest.description = "Ask the mayor if he knows of any girls that could join Queen's brothel."
quest.mapKey = "MayorsOffice"
quest.location = "Easthollow Town"
quest.parent = "hornyBorisNaknu"
QB.quest.addQuest(quest)

quest: Quest

An already initialized Quest object.

getQuest(id)

Gets a quest object from the list of quests.

QB.quest.getQuest("newGame")

id: String

ID of the quest.

getActiveQuests(mapKey?)

Gets all the active quests. You can give a mapKey parameter if you only want to query the quests for a certain part of the map.

QB.quest.getActiveQuests()
QB.quest.getActiveQuests("MayorsOffice")

mapKey: String

ID of the map button.