56
edits
(Elaborate on notes. Add that GetStageDone is an alias. Indicate what happens when called from the current stage's quest fragment script. Indicate what happens if you call SetStage on a lower stage.) |
|||
Line 39: | Line 39: | ||
* <code>IsStageDone</code> returns <code>true</code> for the current quest stage, even while the quest fragment scripts for the current stage have not yet completed. | * <code>IsStageDone</code> returns <code>true</code> for 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 <code>SetStage</code> for stages 0, 40, 20, and 60, in that order. See the following table for the result that <code>IsStageDone</code> will return after the final <code>SetStage</code> (to stage 60) has been completed: | * Assume you have a quest with stages 0, 10, 20, 30, 40, 50, and 60. You call <code>SetStage</code> for stages 0, 40, 20, and 60, in that order. See the following table for the result that <code>IsStageDone</code> will return after the final <code>SetStage</code> (to stage 60) has been completed: | ||
{| class="wikitable | {| class="wikitable |
edits