Description
Wiki Description
Obtains whether the specified quest stage is done or not.
A stage is "done" if it has ever been visited with the Quest.SetCurrentStageID(...) or Quest.SetCurrentStageID(...) functions.
GetStageDone is an alias for IsStageDone.
Documentation Comment
Alias for IsStageDone - checks to see whether the given stage is done or not
Caveats
CK Wiki - Notes
IsStageDonereturnstruefor the current quest stage, even while the quest fragment scripts for the current stage have not yet completed.- A stage is not considered "done" if it has not been explicitly visited, even if its stage number is lower than the current stage number.
- Assume you have a quest with stages 0, 10, 20, 30, 40, 50, and 60. You call
SetStagefor stages 0, 40, 20, and 60, in that order. See the following table for the result thatIsStageDonewill return after the finalSetStage(to stage 60) has been completed:
| IsStageDone | Result |
|---|---|
| 0 | true |
| 10 | false |
| 20 | true |
| 30 | false |
| 40 | true |
| 50 | false |
| 60 | true |
Even though GetCurrentStageID() will return 60, IsStageDone will return false for stages 10, 30, and 50, because these stages have not yet been visited. If you subsequently call SetStage(30), the result of GetCurrentStageID will still be 60, but IsStageDone(30) will now return true.
Parameters
intaiStage
CK Wiki Description
The stage to check.
Examples
No human-generated examples found for this function.
Auto-Generated Example
int myInt__aiStage
bool returnedValue = myQuest__toCallFunctionOn.GetStageDone(myInt__aiStage)