MV Random Entered Dungeon

I want to make a simple game where Town has dungeon and inside the dungeon keep changing, there is a catch after 9 floor the tenth will have boss until floor 20 (For now).

How to do it?

What i had in mind is make a lot... Like a lot of dungeon then... Thats... that where i stumped...😅
you could set up various maps set each one to a number, randomize a variable so the game sends the player to a random map, after the player leaves a map make a number rise then have it check if the amount of maps passed is a multiple of 10 via javascript, and have the player fight a boss to progress.
Javascript? I need to code? 👋Is there another way?
have it check if the amount of maps passed is a multiple of 10 via javascript
you wouldnt need to use JS for that. the control variables event commands supports the modulo operation. so if that variable % 10 equals 0, then its a multiple of 10
So using the Control Variable Event inside the engine is possible right? Can anyone please a bit on tutorial?😢I haven't ever touch Variable or alike event before
So using the Control Variable Event inside the engine is possible right? Can anyone please a bit on tutorial?😢I haven't ever touch Variable or alike event before
Yes, Its one of the options on the first page in the event coding section
The editor has built-in tutorials that covers the basics under "Help" in the main menu if you haven't seen them.
I haven't ever touch Variable or alike event before
that is a big failing, because you can't do anything more complex than a "go there" quest without using variables to check and remember the quest status.

in addition to the official tutorials, this game might also help you:
You can randomly send them to pregenerated dungeons, but also have randomizers affect the dungeons in various ways. You could change pathways, set or randomize encounters, have treasure randomly placed, etc.

One thing that can be useful is to generate random numbers ahead of time, then replace them as they are used. This will make it hard for the player to use Save and Load to force certain random occurrences.
Yeah variables are the best way to do this,

Or you can use a plugin for this but if you haven't even touched variables, I would get the basics of the basics with the maker down first. There is plenty of YouTube videos online for new players.

and as Robro said, the game has a help file.

Once you start messing around with variables, and making your random dungeon, I would start small.

Like, make 5 maps, name then Floor 1, Floor 2 etc. Don't put much effort in them, just enough to know their different floors.


Then experiment with how variables work and work your way from there.
Okay... I successfully made random dungeon works... 4 dungeon maps randomly selected and after the 5th time continue exploring dungeon player will transported to boss floor. But i still have problem... is there a way to prevent player to enter the same maps consecutively?

You know... After inside Map A player goes to Map A again from start and not go to Map B, C or D.
Okay... I successfully made random dungeon works... 4 dungeon maps randomly selected and after the 5th time continue exploring dungeon player will transported to boss floor. But i still have problem... is there a way to prevent player to enter the same maps consecutively?

You know... After inside Map A player goes to Map A again from start and not go to Map B, C or D.
when you random map id to go in dungeon in variable you can make one more variable which will store last map_id then when u random it try to check if random map id= lastmap_id then dont go to map and raddom gain else go tomap
😅Okay... need to churn it in and make it simple... I'll update again if i'm able to do it
Update... Alright... I Did it! Thank so much you guys that helped me!
Okay... I successfully made random dungeon works... 4 dungeon maps randomly selected and after the 5th time continue exploring dungeon player will transported to boss floor. But i still have problem... is there a way to prevent player to enter the same maps consecutively?

You know... After inside Map A player goes to Map A again from start and not go to Map B, C or D.

If random variable X = the id of the current map, they go to X + 1 instead.
I do it like this...it works for me. Did i do it right?
while this prevents to go to the same dungeon again, it still has the possible of a sequence 2, 1, 3, 2 or a later return to a previoous dungeon before the sequence is up.

However to truly prevent that you would have to use elements of a randomized array, setting all floors upon entering the first floor - and that is a lot more complex to do, especially as the array can nly be handled by script.
Oh no...No..No... If its too complex i'm afraid that myself would be too lazy to continue the game because trying to keep testing...

I have zero experience at coding and my logic is even seems like potato...
while this prevents to go to the same dungeon again, it still has the possible of a sequence 2, 1, 3, 2 or a later return to a previoous dungeon before the sequence is up.

However to truly prevent that you would have to use elements of a randomized array, setting all floors upon entering the first floor - and that is a lot more complex to do, especially as the array can nly be handled by script.

I understand the goal here is a random dungeon, not to exhaustively go through a list of dungeons one time. There shouldn't be an issue of some repetition, especially if each map has random elements. If you have eight maps with eight random elements, that's 64 maps, and the odds of the third map being a repeat map of the the first map is 1:56. As OP noted, the maps keep changing. Realistically, i think about 24 maps might be better, but still manageable, with random elements on each map.

All you have to do is keep track of a variable every time they go up or down, to see if it's level 10+.

By random elements, I mean when you enter the floor, you create a random variable. Based on this, certain parts of the map will have "tiles" appear or disappear (they are actually events, or as an alternative you could use a plugin that alters tile behavior). So any given map might actually have a different path through it based on the variable. Then, other random variables can create (or not) special entrances to rooms, place mini-bosses and treasures, and even alter the decor.

It shouldn't be too complex to do with eventing. Once you create one map that works like this, you can clone it as many times as want and create different map variations. You could create close to the maximum number of maps if you want. Plus, if you make the maps bigger, you could create a large number of variables that substantially alter how the maps look, giving the appearance of something procedurally driven.

This is not, however, an undertaking for someone who is feeling lazy. 🙂 Creating a small prototype, though, should be a snap.

So you'll always be tracking a few variables:
What floor am I on
What is the ID of the current map
Upon entering each floor, some variables, for example: blocked hallways, bonus room, treasures A, treasures B.
The new map ID they are going into.
Well this just to win some competition that must be submitted at 24 August. What my target are:
Players start in a divine realm and choose from premade classes (Warrior, Mage, Archer), each with unique stats. After customizing their build with SP (Stat Points), they’re sent to a city with a dungeon entrance. (I use some YEP plugin)


Core Mechanics:


  • Dungeon is randomized every run. (Cause its possible without Plugin so yeah... thanks guys)
  • Permadeath: die once, it's game over — but your grave stays.
  • On retry, you return to the starting room, but can recover gear/EXP by reaching your grave.
  • Leaving the dungeon resets progress to Floor 1.
  • Grave notes from past adventurers hint the "god" is actually a devil.
  • Final floor (Floor 100) is a boss fight against the god/creator.
Is it too complicated in such short time?

Original thread: https://forums.rpgmakerweb.com/threads/random-entered-dungeon.178592/