Jump to content

Issue with terminal entry not reappearing.


markyrocks

Recommended Posts

Ok so I have a terminal attached to a quest. The first option is designed to display when the quest stage is 0. Then it disappears. Well I realized I needed a way for it to come back so I basically added a reset button that doesn't appear until quest stage is higher than 10, that all works. Click the first option. It sets the stage to 10, it redraws and disappear. Reset button appears. But the reset button is supposed to change the quest stage to 0. The stage exists and I even wrote a function that displays a notification when the quest stage is set to 0 via the reset button. But the first button never comes back. I have the checkbox allow repeated stages selected. Everything else seems to be working correctly. I'm actually getting down to the fine details of this mod. Any help would be great thanks.
Link to comment
Share on other sites

Allow repeated stages only kicks in after quest.Reset() to enable log entries to be duplicated. It is not actually needed to SetStage() the same stage multiple times.

 

BUT this is the gotcha GetStage() or GetCurrentStageID() returns the highest completed quest stage. not the current stage ! So if you are using stage conditions to control the display of your buttons they will only ever work once between quest.Reset()

 

Show Button0 GetStage() myQuest == 0

Show Button10 GetStage() myQuest == 10

Which is why we tend to set a conditional scriptvariable or globalvariable to expose the current stage number in the stage fragment or main script so the conditional display logic becomes:

 

Show Button0 GetGlobalVariable myQuestStageGlobal == 0

Show Button0 GetGlobalVariable myQuestStageGlobal == 10

 

https://forums.nexusmods.com/index.php?/topic/6875447-quest-allow-repeated-stages-getstage/?hl=%2Bmultiple+%2Bstages&do=findComment&comment=62414232

Link to comment
Share on other sites

Ok that makes sense, for my intent I can just reset the quest when when the reset button is pressed. What you said makes perfect sense. I really don't have a need to get the current stage. But ya my conditions were set to first button getstage()==0 reset button getstage>=10. The whole point of this is to keep the user from spamming the button. But ty, the fact that the reset button wasn't going away should have been a giveaway.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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