.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Basic Map Editing Question (http://forum.shrapnelgames.com/showthread.php?t=33526)

Hellboy February 27th, 2007 07:06 PM

Basic Map Editing Question
 
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

Re: Basic Map Editing Question
 
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

Re: Basic Map Editing Question
 
Quote:

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

Re: Basic Map Editing Question
 
Quote:

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 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

Re: Basic Map Editing Question
 
Edi's new Dom3 database is here, and there is information about the online unit reference here.

Hellboy March 1st, 2007 12:08 AM

Re: Basic Map Editing Question
 
Awesome, just exactly what i needed. Thanks for the quick reply!


All times are GMT -4. The time now is 07:36 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.