Difference between revisions of "SetStage"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
m (only works with defined QuestStages)
imported>JOG
m
Line 11: Line 11:




Always remember that Setstage only accepts stages that are defined in the Quest's "Quest Stages" tab. When you try to set a quest-stage that isn't defined, the the Stageindex doesn't changeat all.  
Always remember that Setstage only accepts stages that are defined in the Quest's "Quest Stages" tab. When you try to set a quest-stage that isn't defined, the the Stageindex doesn't change at all.  
   
   


[[Category: Functions]]
[[Category: Functions]]
[[Category: Quest Functions]]
[[Category: Quest Functions]]

Revision as of 11:03, 16 April 2006

Syntax:

SetStage QuestID StageIndex 

Example:

SetStage MS27 30 

Sets the specified quest stage to "Done", and resolves any of the attached stage items that pass their conditions (runs results, adds to quest log, completes the quest if it should).

If this is the first stage of the quest to be added to the journal, the player will receive a "Quest Added" message on screen.

Also, if the quest is not currently running, SetStage will automatically start it.


Always remember that Setstage only accepts stages that are defined in the Quest's "Quest Stages" tab. When you try to set a quest-stage that isn't defined, the the Stageindex doesn't change at all.