Background for Skyrim SE
Member of the Quest script
QuestfunctionGetQuest(stringeditorId)NativeGlobal

Description

Wiki Description

Type: SKSE Global Function.

Returns the quest of the specified editor id, or None if none match.

Documentation Comment

returns the quest with the specified editor id


Caveats

CK Wiki - Notes

  • Quests do not have to be running to be collected.
  • This can be a good alternative to using Game.GetFormFromFile(...) to return quests, or to check for a certain plugin to be present, as authors rarely change editor ids.

Parameters

stringeditorId


Examples

;Check for a Dragonborn quest and implicitly cast the quest return to a boolean (None = False)
bool isDLC2Present = Quest.GetQuest("DLC2CultistAmbush")
    
If isDLC2Present
    ;Perform Logic dependent on Dragonborn being present.
Else ;If it is not installed only one other possibility. 
    Debug.Trace("Dragonborn.esm was not present.")
EndIf

Auto-Generated Example

string myString__editorId

Quest returnedValue = Quest.GetQuest(myString__editorId)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.