Class QuestExtensions
- Namespace
- SkyrimForge.Game
- Assembly
- SkyrimForge.Game.dll
Provides extension members for Quest.
public static class QuestExtensions
- Inheritance
-
QuestExtensions
- Inherited Members
Methods
AddPlayerTopic(Quest, Topic)
Adds topic to this quest's player dialogue, in the branch it starts or else in a new top-level branch.
public static bool AddPlayerTopic(this Quest quest, Topic topic)
Parameters
Returns
- bool
Whether the quest's branch table lists the branch afterward.
Remarks
Call it while no conversation is open, since the game reads the branches when it builds a conversation. The dialogue menu lists only the starting topics of top-level branches.
SetObjective(Quest, ushort, string)
Sets the text of the quest's objective with index, adding the objective where the quest has none with that index.
public static BGSQuestObjective SetObjective(this Quest quest, ushort index, string text)
Parameters
Returns
- BGSQuestObjective
The objective, which the quest retains until the process exits.
Exceptions
- ArgumentNullException
textisnull.