Jump to content

[SSE] Quest SetStage back


Tiziano74

Recommended Posts

Hi everyone

Does anyone know a way to set a quest stage back, for example form 20 to 10?

I tried using both, the console command setstage in game, and getowningquest().setstage(10) in the quest in the CK, but to no avail. . .
Is this something that can be done in any way, or is it not possible?

Thanks in advance to anyone who will answer

Link to comment
Share on other sites

 

 

Not enough information,  are you even sure setting the stage fired, what debugging procedures did you use? Opening the console screams I do not know what I am doing.  Set Stage return a boolean if success or not FYI true or false. If does not fire, it will also return a false ok? 

What happen? Do some proper debugging, and prove it is not user error. Also post your code, even if it is a just dialogue fragment, gives us something to work with.  What object contain the code?  Are you making a mod or just a player HINT tying to to reset the quest

Spoiler
bool Function SetCurrentStageID(int iStage) native
bool Function SetStage(int iStage)
  
Function Reset() native

 ; Reset the main quest
MainQuestProperty.Reset()

https://wiki.bethesda.net/wiki/creationkit/Skyrim/SetCurrentStageID_-_Quest/

Debug.MessageBox(self + " setting stage 10 is :" + GetOwningQuest.SetCurrentStageID(10))

yeah my debugging more advanced than what the wikki does, what the wikki does is for beginners, if you prefer their way, knock yourself out.. or use that, it should open a message box with either:

QuestName scriptName FormID setting stage 10 is : True 
or
QuestName ScriptName FormID setting stage 10 is : False 

OFC that just debugging code, do not leave it like that  🤣

if you are developing a mod, have you considered stage 25

10

20  Current Stage

25  <<< if stage 20 fails

30 <<< if stage 20 succeeds bypass 25

Link to comment
Share on other sites

  • 5 weeks later...

From the creaiton kit wiki, on the main quest tab...

Allow Repeated Stages: If this box is checked, a journal entry will be displayed (and quest stage results run) every time SetStage is called for a particular stage number. Otherwise, SetStage has no effect after it is called the first time for any stage on a running quest.

Generally this box is not ticked for the vast majority of quests.

  • Like 1
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...