Page 1 of 1
adding a unit
Posted: Wed Jan 23, 2013 4:22 am
by battlevonwar
Looked through a few of the modding guides, didn't find this one. Can someone point me to adding units into a scenario guide? If this is available?
RE: adding a unit
Posted: Wed Jan 23, 2013 6:38 am
by doomtrader
@battlevonwar, there are couple of ways to add a unit into the scenario.
Would you like to add them at the very beginning, to the saved game, or maybe as a result of some event during your game (ie when Paris falls)?
RE: adding a unit
Posted: Wed Jan 23, 2013 7:55 am
by JLPOWELL
To add to the initial order of battle you can just edit the land_units.csv (or air or naval units files as appropriate. I may take some time to publish a 'how to' as there are quite a few fields to deal with to set the unit characteristics. One key (at least for me) is to pull the file into Excel and convert it into columns (it is semicolon delimited)
RE: adding a unit
Posted: Wed Jan 23, 2013 7:59 am
by JLPOWELL
Adding units using events is a bit trickier as they are in XML instructions so you need to invoke some 'methods' which I have not seen documented, but appear to be reverse engineerable by finding and existing event and copying the 'method'. There are parameters involved however and at present I don't see exactly how you set the characteristics of units created in this way..
RE: adding a unit
Posted: Wed Jan 23, 2013 10:39 pm
by battlevonwar
Sounds a little complicated and easy to mess up? I guess why it's not often done?
RE: adding a unit
Posted: Thu Jan 24, 2013 9:16 am
by doomtrader
It is really easy, just write what you want to do and I will lead you.
