PDA

View Full Version : Basic Map Editing Question


Hellboy
February 27th, 2007, 07:06 PM
I was trying to edit a small map (silentseasw.map), just to change a couple of provinces to a specific poptype. This seems easy enough, but for some reason my code is not working. Here's what I added, to set to Crystal Amazons:

-- Ptarmigan Ridge
#setland 33
#nostart 33
#poptype 40


I noticed that if I use:
#land 33
instead of setland, then the poptype works ok, but there is no random force placed there at all, which is still not exactly what I was shooting for.

Can anyone tell me how to set the poptype, and get an appropriate random indy force there at the same time?

Gandalf Parker
February 27th, 2007, 08:25 PM
SetLand says "put it here"
Land says "wipe it clean then put it here"
So if you are setting the basic poptype it looks like your only option is to wipe the province clean then set both poptype and defenders.

Here is part of
http://www.dom3minions.com/docs/map_qref.txt
6.1 #land <province nbr> kill off province and allow settings
6.2 #setland <province nbr> do not kill province but do allow settings
6.3 #commander "<commander type>" place commander and allow settings
6.4 #comname "<name>" overwrites the active commander's random name
6.5 #bodyguards <nbr of guards>"<type>" Gives bodyguards to commander.
6.6 #units <nbr of units> "<type>" squad of soldiers to commander.
6.7 #clearmagic Removes all magic skills from the active commander.
6.8 #xp <0-900> Gives experience points to the active commander.
6.9 #mag_astral <level> Gives magic ability to the active commander.
6.10 #randomequip <0-4> Gives random magic items to commander.
6.11 #additem "<item name>" Gives a magic item to active commander.

for type I find that the number assigned to a unit works better than the name. So to finish out your amazon example it would be...
#land 33
#nostart 33
#poptype 40
#commander 347
#bodyguards 10 248
#units 20 367

Hellboy
February 28th, 2007, 12:28 AM
Gandalf Parker said:
So if you are setting the basic poptype it looks like your only option is to wipe the province clean then set both poptype and defenders.


That's what I was afraid, thanks, tho Gandalf.

Hellboy
February 28th, 2007, 11:23 PM
Gandalf Parker said:


for type I find that the number assigned to a unit works better than the name. So to finish out your amazon example it would be...
#land 33
#nostart 33
#poptype 40
#commander 347
#bodyguards 10 248
#units 20 367

Where does one find the unit IDs and commander IDs? I looked around in www.dom3minions.com/docs (http://www.dom3minions.com/docs) and didn't find an obvious file name. I have the old Dom2 unit attributes spreadsheet, but even if the numbers therein are still valid, it doesn't seem to have unit numbers for Mictlan (which is the nation I want to test).

This seems like the kind of thing that Edi might produce w/ his DB, but I haven't found anything w/ national unit/commander IDs so far...

Any help would be appreciated.

Ballbarian
February 28th, 2007, 11:41 PM
Edi's new Dom3 database is here (http://www.shrapnelcommunity.com/threads/showflat.php?Cat=&Number=498596&page=0&view=collap sed&sb=5&o=&fpart=1), and there is information about the online unit reference here (http://www.shrapnelcommunity.com/threads/showflat.php?Cat=&Number=497152&page=0&view=collap sed&sb=5&o=&fpart=1).

Hellboy
March 1st, 2007, 12:08 AM
Awesome, just exactly what i needed. Thanks for the quick reply!