Osiris/API/QuestIsSubquestEntry

From Divinity Engine Wiki
Revision as of 18:00, 19 September 2018 by Tinkerer (talk | contribs) (call -> query, expanded explanation (Success/failure section needs verification))
Jump to: navigation, search
Full Definition(s)
  • query QuestIsSubquestEntry([in](STRING)_QuestID, [in](STRING)_StateID, [out](INTEGER)_Bool)
Description

In DOS2:DE, a quest can have sub-quests. You create a sub-quest by creating a new (top-level) quest with a particular identifier, but without quest updates. Next, you can add quest updates to this sub-quest by filling in the SubQuests' entry of a Quest State in the journal editor. This will also make that sub-quest a sub-quest of quest yo which the Quest State belongs. This query can be used to determine whether or not a particular quest state is from a sub-quest.

Return Values
  • Success/Failure: Default return value.
  • _bool: 1 if _StateID is belongs to a sub-quest, 0 otherwise.
Notes
  • /
See Also