Yes, I know how to make a dungeon lead randomly somewhere.
What I need is a way for the game to remember it.
For example:
I go west of map 1. It could land me in the east part of map 2, 3, 4, 5, 6, or 17. I end up in 6. If I were to go east of map 6, afterwards, I would end up back in map 1. If I go west again, back to map 6.
However, if going west of map 1 got me in map 17, then going east of map 17 will land me in map 1. If this happens, going west of map 1 will lead me to map 17.
And I need a way to reset this when they leave the dungeon.
I was thinking of saving the variable numbers when it gets randomly generated, but I have no way of making it two-way.
Can you help me?
What I need is a way for the game to remember it.
For example:
I go west of map 1. It could land me in the east part of map 2, 3, 4, 5, 6, or 17. I end up in 6. If I were to go east of map 6, afterwards, I would end up back in map 1. If I go west again, back to map 6.
However, if going west of map 1 got me in map 17, then going east of map 17 will land me in map 1. If this happens, going west of map 1 will lead me to map 17.
And I need a way to reset this when they leave the dungeon.
I was thinking of saving the variable numbers when it gets randomly generated, but I have no way of making it two-way.
Can you help me?