The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: AlwaysIdeas on February 26, 2007, 08:20:16 AM

Title: Ancient Cave
Post by: AlwaysIdeas on February 26, 2007, 08:20:16 AM
I don't know if anyone has asked this but is there a script for a randomly generated dungeon like Lufia's Ancient Cave? I want mine to be just like the one Lufia 2, go down to floor 100 etc.
Can anyone help? :)
Title: Re: Ancient Cave
Post by: .:Pyroken Serafoculus:. on February 26, 2007, 11:07:13 AM
That would be one gigantic script. I suppose you could get a script to generate a random cave with a wall autotile, and then add the details to that, but I have no idea how to implement that.
Title: Re: Ancient Cave
Post by: modern algebra on February 26, 2007, 01:51:21 PM
There actually was one in 2k3, but I don't think they maintained the feature. It was kind of hard to use. Anyway, good luck finding the script
Title: Re: Ancient Cave
Post by: italianstal1ion on February 26, 2007, 08:57:08 PM
Where do I find these things :D

Anyway, here it is, random dungeon generator, a bit hard to explain so heres a demo;

http://savefile.com/files/519735

Credits go to Wachunga
Title: Re: Ancient Cave
Post by: AlwaysIdeas on February 27, 2007, 06:40:51 AM
Thanks this is great for mazes, but I am looking more for open rooms and doors, (doors not necessary I suppose) not tunnels, but thanks a ton anyway, this will help me! ;)
Title: Re: Ancient Cave
Post by: Irock on February 27, 2007, 06:58:04 AM
Quote from: AlwaysIdeas on February 27, 2007, 06:40:51 AM
Thanks this is great for mazes, but I am looking more for open rooms and doors, (doors not necessary I suppose) not tunnels, but thanks a ton anyway, this will help me! ;)
Why not make multiple different ones and use variables?

EXAMPLE: say you wanted it to have a random dungeon out of 2 different ones you have created.

Go to variable operations. Choose random Number between 1 and 2 (depending on how many dungeons you want it to randomize from)
<>Variable [0001] = Random (1,2)

Okay now Conditional branches. On tab 1 go to variable>constant>1>==

<>Conditional Branch Variable [0001] == 1
<>Teleport [001 YourDungeon1]
: :Else Handler

Then repeat what you just did except replace one with two in the conditional branch and change the teleport event to the other possible dungeon. Place this under else handler.