ID:1634476
 
Code:


Problem description:

How do i generate a cave at runtime? What i mean by this how do i generate a cave when the game has started. I could use map intancing but i want all of the players to be able to enter it and inside i want there to be ores. What do i i need to do to do this?
Do you mean procedural generation; like creating a random cave, or do you mean creating a separate instance of a pre-existing cave?
Yeah creating a random cave.
In response to I2ed
I2ed wrote:
Yeah creating a random cave.

There are some good resources on procedural generation in the developer section. Usually though it's something you're going to have to chew through on your own. This might help you get started.
Can you also show me the other way?
In response to I2ed
I can't remember if there's a built-in function for copying maps now, but if not, there's these two fantastic resources for doing just that.

http://www.byond.com/developer/LummoxJR/SwapMaps

http://www.byond.com/developer/Forum_account/MapInstancing