Hello folks, I was wondering if you could help me out.
I’m on the verge of finishing quite a complicated text based adventure but have a slight issue. There are states in the game which I was hoping to be able to view from multiple locations in the story, like so.
Statement 1: You’re in bath, click R to view alien > you view alien , pressing R returns to statement 1.
Statement 2: You’re further into the story, click R to view alien > you view alien, pressing R returns you to statement 2.
Because of a mistake on my part the result is more like this:
Statement 1: You’re in bath, click R to view alien > you view alien , pressing R returns to statement 1.
Statement 2: You’re further into the story, click R to view alien > you view alien, pressing R returns you to statement 1 instead, erasing a significant amount of your progress on the spot.
I know how I can fix this - by simply duplicating the alien statement, giving them slightly different names and so keeping the statements on their own branches - but that’s messy, and could potentially end up with a lot more code then I need in some areas because of other stuff I have planned.
You could also give options to go back to either story section - but that causes various problems of it’s own in writing and game flow.
So I was wondering if there were a way to simply return to the previous scene? A function by which, pressing the same button, you could return to the previous statement no matter what it was? For now I’m using the above duplication workaround, but as I say, when it comes to initializing a future part of the game it could result in hundreds of extra lines (it’s a fairly big game).
Anyway, any help would be gratefully received.
