Randomized Dungeon Creation

I was wondering if there was a way to create a randomized dungeon layout every time the player enters that area.
Similar to Tartarus from Persona 3 (for those who've played it). The layout of the room would change every time the player enters that map.
I was wondering if there was a way to create a randomized dungeon layout every time the player enters that area.
Similar to Tartarus from Persona 3 (for those who've played it). The layout of the room would change every time the player enters that map.
Hello, don't know if I'll be of much help, but I'll try to help!

At the moment, I don't think there is a random dungeon creator out there (I could be completely wrong), but there's a simple way to do things manually without an auto generated dungeon.

Fair warning, for the example I'm going to show you, you will need to create each dungeon yourself, since I don't think there's a Dungeon Generator, but like I said, I could be wrong.

Basically, the way I'm thinking is using a single Variable and Conditional Branches. It'll look as follows:

Random Dungeon.PNG


To put it simply, make a Variable. I'll be using Variable #25 and calling it "Random Dungeon" for this, but you could set it as whatever you'd like!

Control the Variable to be Random and set it to 1 - X, X being however number of Dungeons you would like to add. For this example, I'll be using only 4 Dungeons, so the Random Number will select 1-4.

After you set the Variable, create Conditional Branches relative to how many Dungeons there are. So since I have 4 Dungeons, I'll make 4 Conditional Branches, setting the Condition to look for the Variable.

If Variable (Random Dungeon) = 1, then Transfer Player to Dungeon 1.
If Variable (Random Dungeon) = 2, then Transfer Player to Dungeon 2.
If Variable (Random Dungeon) = 3, then Transfer Player to Dungeon 3.
If Variable (Random Dungeon) = 4, then Transfer Player to Dungeon 4.

Make sure to set the Trigger to whatever you'd like! Mine is on Player Touch for simplicity.

To summarize, when the Player touches the Event, it'll activate a Variable, and set it to a random number. Whichever number it lands on, the Dungeon associated to that number will be selected, and the Player will be transferred there.

From there, just make an exit to the dungeon, and whenever the Player returns to the entrance that transfers them, it'll select the same or different dungeon every time!

Hope I was able to help or give ideas!
You can use V_Aero's Procedural Random Dungeons
Oh! I guess there is one! Well, I hope the OP can use it well! I'll have to look into it myself!
Thank you all so much! I really appreciate the help!
Thank you all so much! I really appreciate the help!
Not a problem!

Original thread: https://forums.rpgmakerweb.com/threads/randomized-dungeon-creation.121876/