IsStageDone - Quest

From Creation Kit
Jump to: navigation, search

Member of: Quest Script

Obtains whether the specified stage is done or not.

Syntax

bool Function IsStageDone(int aiStage) native
bool Function GetStageDone(int aiStage)
  return IsStageDone(aiStage)
EndFunction

Parameters

  • aiStage: The stage to check.

Return Value

Whether the passed-in stage is done or not.

Examples

; is stage 20 done in the main quest?
bool mainQuestStage20Done = MainQuestProperty.IsStageDone(20)


; Prints a debug message if the side quest has completed stage 10
if (SideQuestProperty.GetStageDone(10))
  Debug.Trace("The side quest has finished stage 10!")
endIf

See Also