Page 1 of 1

How to create new units

Posted: Sun Jan 05, 2020 9:36 am
by FrenchDude
I'm trying to create a unit for Rome, I did everyting that is written in the wiki : http://archonwiki.slitherine.com/index. ... ding_Units
But there's one thing I don't manage to do correctly :

" Name - This is a reference to the name used for this unit type. Add a new, unique string id in this table (by convention, starting with IDS_UNIT_NAME_ and ending with the unique portion of the Alias) and then define a new string with this id in your scenario's TEXT1.TXT file.
Text - This is a reference to the description used for this unit type. Add a new, unique string id in this table (by convention, starting with IDS_UNIT_TEXT_ and ending with the unique portion of the Alias) and then define a new string with this id in your scenario's TEXT1.TXT file."

I created the new unique ID and Text in the UNITS.CSV table, but I don't know how to add a new string id in the TEXT1.txt file. I've read the wiki but I've still not understood. At first I tried to add this at the end of the TEXT1.TXT file, but I think I'm not doing the right thing at all :

IDS_UNIT_NAME_PEDITES_EXTRAORDINARII0,
IDS_UNIT_TEXT_ROM_PEDITES_EXTRAORDINARII0,

I don't know much about modding, if someone knows how to do it I'm all ears

Re: How to create new units

Posted: Wed Jan 08, 2020 9:13 am
by Pocus
You are almost there!

IDS_UNIT_NAME_PEDITES_EXTRAORDINARII0, "Pedites",

should be the entry units.csv reference to.

Re: How to create new units

Posted: Wed Jan 08, 2020 7:52 pm
by FrenchDude
Pocus wrote: Wed Jan 08, 2020 9:13 am You are almost there!

IDS_UNIT_NAME_PEDITES_EXTRAORDINARII0, "Pedites",

should be the entry units.csv reference to.
Thanks Pocus ! I finally managed to create a unit ! I have another question : How does the "Recruit_Weight" in the UNITS.CSV work ? If I want the AI to recruit a certain elite unite type less than other types of units, should I make the "Recruit_Weight" higher ?

For example : I want the "Pedites Extraordinarii" to be less recruited by the AI than ordinary "Alae" units. In that case, I have to make the Recruit Weight higher for the Pedites, right ? Like Pedites recruit weight = 500, and Alae recruit weight = 350 ?

Thanks for your help Pocus, I'll be able to sink hours into modding new units now :lol: