So im having some issues with a redirect of a page. in my minigame after you mess up it takes you to an error page that lets you try again once you fail 3 times it redirects you to a different fail page that takes money away from you. The problem is that once you go to try again it no longer redirects you it just keeps letting you try again.
This is the code on the retry page that will redirect to the last fail page
That is all the code. Rather than redirecting i tried to make it so that after three wrong answers it would give the message that they had answered wrong 3 times and lose $50 it would also advance time and add a quit button to take them back to the main computer terminal. It does all that the problem is if you go back in and lose 3 times again it wont do that again it just keeps repeating the try again.
visited() will only ever be 3 once for a given passage. It is not a story variable and can never be reset. So try using a story variable instead of visited(), increment it on a fail, then set it back to 0 after the player quits and goes back to the main terminal.