Help figuring out roguelike-ish dungeon generation?

Hi! Long time lurker, first time poster here. As such, not quite sure this is the right spot to post (don't really use forums) but hey! Gotta get the idea out there.

So, getting to it, I'm attempting to design a system that creates randomized / procedural dungeons in RPG Maker MV with minimal plugin use.
It's going to be a more exploratory side project with dungeons similar to Binding of Isaac or Bloodborne's Chalice Dungeons.

Idea being: How would I go about structuring that kind of generation? Making doors that pick a random room are fine and all, but keeping several individual rooms available for backtracking? Making sure the doors don't lead to a dead end? Remembering what rooms are where? It's gonna take more than just some randomized variables and conditional branches...

So, I'm trying to hash out some ideas, and here's my first thought:
View attachment Dungeon Gen Concept.png
The idea is to have the game keep track of an invisible grid, which is referenced when travelling between rooms and creating and interesting map structure. But again, having zero experience in this field of game design, I'm running into a ton of issues with the overall systems.

If anyone has any ideas on how this could work, how it could be done better, or how it could be done easier, please let me know! It's a challenge I'd like to tackle, but clearly I can't figure it out solo.

Thank ya kindly!
you could make 25 empty room maps to be the underlaying grid you move between when you touch a door.

then set up 25 variables to be the assigned ramdom room for each spot on the grid.
for example, you make maps with ID 50 to 100 the randomized rooms, then set the 25 room variables to random between 50 - 100.

then every empty room has an automatic event that instantly teleports you to the same map XY coordinates but on the random room assigned to that part of the grid. with the teleport to variables event.

every door teleports you to the appropiate empty room on the grid, and then that empty room teleports you to it's assigned random room.

if you make every random room accessible through all 4 edges you don't have to worry about dead ends.

from there you can randomize the goal location between grid space 1-25 and make that spot generate a goal room instead of a normal random room with the same method.

though to make a more specific layout that could result in a dead end you'd have to make individual seeds to avoid said dead ends, hand craft the main path and let it generate only side rooms.

you could also make the grid bigger, just need more empty room maps and more room variables.

things like eliminating repeat rooms can also be done with conditional branch: script. though that's probably worth it's own post.

hope that's clear enough to understand lol

Original thread: https://forums.rpgmakerweb.com/threads/help-figuring-out-roguelike-ish-dungeon-generation.177307/