Where are my opponents? What does the terrain look like? Where are the portals? Where is the Gold? Where are the Gems?


This program will generate a random map which can be
compiled using DK2mapper.exe for head-2-head or skirmish play.

This is a console program.use with the MS-DOS prompt.

I recommend you place it in the dk2\Data\editor\maps directory.


Syntax: dk2randommap <name> <width> <height> <players> <start_gold> <portals> <gold> <gems> <lava> <water>
where:
<name> = Map Name
<width> = Map width
<height> = Map height
<players> = number of players
<start_gold> = starting gold amount for players
<portals> = number of portals (3x3)
<gold> = number of gold squares
<gems> = number of gems squares
<lava> = number of lava squares
<water> = number of water squares
There are no optional parameters!

This will generate the file <name>.Map , which can then be compiled using dk2mapper.exe.


So if I want a random map with lots of lava for 3 people:

dk2randommap Random1 100 100 3 10000 15 100 6 3000 0


Small 2 player map with lots of gold:

dk2randommap Random1 50 50 2 10000 8 300 4 0 50

This program uses recursive techniques to place water, lava, and gold in groups.
So if your system is wimpy memory wise and you want to place lots of these terrain types, 
you may have problems. Try it and see....


Again, I am not responsible for what happens if things go wrong.
This software may be distributed, as long as no cost is charged.
--Mark Kinkead
mok@mars.superlink.net
