GetCurrentStageID - Quest

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Quest Script

Obtains the highest completed stage in this Quest.

Syntax[edit | edit source]

int Function GetCurrentStageID() native
int Function GetStage()

Parameters[edit | edit source]

None.

Return Value[edit | edit source]

The highest completed stage in this Quest.

Examples[edit | edit source]

; Obtains the current stage
int mainQuestStage = MainQuestProperty.GetCurrentStageID()


; Obtains the current stage
int sideQuestStage = SideQuestProperty.GetStage()

Notes[edit | edit source]

The GetCurrentStageID & GetStage functions both return the highest Quest stage completed. When a Quest that allows repeated stages regresses stages, the actual lower current stage value will not be returned. Use a script counter or Global.

See Also[edit | edit source]