Help - Search - Members - Calendar
Full Version: Randomly Generated Dungeons
RPG RPG Revolution Forums > Game Engines > RPG Maker XP Discussion
Xanirus
No, I'm not asking where is that random dungeon creator from RPG2K3 that was "curiously removed" from RPGXP. To me, it's not random unless it's generated on the spot in-game. (I can drag a floor tile and close my eyes and do the same thing, heh.) What I'm looking how to do how to do that in-game.

In theory, I know how to make it work, but there's some problems. For one it's not completely random, but it's close. I have a bunch of small rooms with entrances and exit events all on one really huge map. (To save space.) I have an idea where you can accept random missions, and when you hit "accept" the game puts a bunch of random #'s in several variables. When you enter a cave or forest or whatever, where you'll end up is dependent on which # the game chose. When you finish the mission, you'll be transported out of the map, and all the variables are reset back to zero.

In theory, I think this would work just fine, the problem is if the player chooses to backtrack, I don't know how to make it so you will get back to the previous randomly chosen step for that current instance. This may be simple, through just further use of variables, or not, I'm not much of a scripter (I can configure pre-made ones pretty well but making my own is beyond me right now.) With further handling of the variables I think I can make it work, but I got to leave the house now and was just wondering if anyone had any ideas or if this is just impossible all together with just using events/variables.
amerk
I'm not terribly good with variables as of yet, and not sure how much help this will be, but you should be able to generate random teleports using variables and events, probably create a bunch of rooms that are linked together through one event but have each teleport as a variable, so everytime you step into a teleport you are taken to any number of rooms sharing that event by random.

Basically, it'd be similar to creating random thunder on a map, the tutorial for that can be found at rpgmaker.net under engines for rm2k3 tutorials. So you might be able to check that out for better understanding.

As for returning to the previous location, rpgmaker.net has a tutorial that may help, under engines, this time XP and then tutorials: Bacially it's a tutorial about creating a spell or item called recall and shows you how to mark your location on the current map and then enter a town or dungeon, use the recall spell or item, it'll take you back to where you were previously when your location was being marked. Great for escaping dungeons.

Now, as for using them together, that may be tricky, because if you set up the "mark and recall" for each room, it would essentially become ineffective since everytime you teleport would mark that as the new location, but it would be a good tool to use to escape the dungeon if there is a need to run back to town.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.