Map Generation

Jxkl5

Flying Narwhale
Veteran
Joined
Oct 16, 2012
Messages
55
Reaction score
1
First Language
American
Primarily Uses
Hi,

How would I make a game where a random dungeon is generated after the player does something (such as touch an object)? 

The new levels would all have to have specific game play objects ranging from gold to enemies, but placed in random locations.

Is this even possible? I was thinking of making the game Rouge like....
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You want the dungeon itself to be randomly generated? Or just the locations of the items?


I don't think anybody has done a random map generator script (I made a start, realized how involved it was going to be, and moved on to things I actually needed for my game). You could make several dungeon maps, then use events to teleport to a random one.


Tsukihime wrote a script that lets you place items randomly - one of the methods is to paint an area with region ids, then specify that region id as the available area for events, and it'd choose randomly from any tiles with that region id. That way you know they're not going to be placed in dumb places like on walls or inaccessible cliffs.
 

Arin

Some happiness we have to let go of.
Veteran
Joined
Oct 18, 2012
Messages
1,228
Reaction score
189
First Language
Fraglspock
Primarily Uses
RMMV
I don't think anybody has done a random map generator script (I made a start, realized how involved it was going to be, and moved on to things I actually needed for my game). You could make several dungeon maps, then use events to teleport to a random one.
Saba-kun actually has a Random Dungeon creator for RPG Maker VX Ace that mimics random dungeons in a sort of Diablo-esque fashion.

EDIT: http://forums.rpgmakerweb.com/index.php?/topic/1000-saba-kans-random-dungeon-generator-014/
 
Last edited by a moderator:

Jxkl5

Flying Narwhale
Veteran
Joined
Oct 16, 2012
Messages
55
Reaction score
1
First Language
American
Primarily Uses
Would there be a way to make a simple scrip (or some code in Event> Advance> Script) where it makes a random dungeon with the built in engine?

After that, I just need the events to automatically spawn on the new map. I want to be as original as possible and not use other peoples scripts...
 

Hollow

(◡‿◡✿)
Veteran
Joined
Jul 14, 2012
Messages
519
Reaction score
439
First Language
English
Primarily Uses
RMMV
I'd recommend checking out this topic for more tips on stuff like this. The second post in particular is a good example of making randomly generated dungeon maps.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
That's still not talking about truly random dungeons though. It mentions templates, preset entrances/exits, but nothing about how to fill out the map.


If you had a true random dungeon, you would not have any control about where the entrances and exits were, or how many there were. There is not a way to generate a random dungeon with the built in engine, since that tool is not available at runtime. If someone has already created a script, then you have 3 options - use the script, write your own, ditch the idea of true randomness. There is no "yes you can have a completely random dungeon generated by your game at runtime without using a script" option.
 
Last edited by a moderator:

Jxkl5

Flying Narwhale
Veteran
Joined
Oct 16, 2012
Messages
55
Reaction score
1
First Language
American
Primarily Uses
I have been thinking about this...  Is there a way to call the existing Dungeon Generator (the one built into the game) then place events (with specific names e.g.: <money>, <enemy>, <portal>, ect.)

on only the floor tiles in the next room? And then have the portals in the first room teleport the player to a random floor tile in the generated room.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Did you read my post, above yours? I already explained why you can't "call the existing Dungeon Generator (the one built into the game)" when you're playing a game.


The Dungeon Generator is part of the editor. Just like the character generator. It's not included in the games that are created with the engine.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top