I use a scene variable DialogueIndex. Dialogue 0–11 works perfectly and starts at the beginning of the scene.
At DialogueIndex = 12, I pause the dialogue so the player can extinguish two fires. I set DialogueActive = 0 and hide the dialogue UI.
When both fires are out (Fire_Core.IsActive = 0 and Fire_Core2.IsActive2 = 0), I try to:
- Set
DialogueActive = 1 - Set
DialogueIndex = 13 - Show the dialogue UI again
However, dialogue 13 and onward does not show at all. The first 0–11 works fine, but after pausing at 12, it never resumes.
Is there a better way to pause and resume dialogue? Ideally I want:
- Dialogue pauses at index 12
- Player extinguishes fires
- After 4 seconds, dialogue automatically resumes at 13
Would using a timer be a cleaner approach?
If there isn’t any better way, I could just manually make another scene variable per dialogue set so I’m just asking if there is a better/faster way and how to fix the current problem.
Any advice would be appreciated.
