Page 1 of 1
tweaking unit strengths?
Posted: Thu Nov 15, 2012 1:56 pm
by nimblebooks
how would i tweak unit strengths? Let's say I want to give the Canadian Corps a slightly higher base defense than normal.
Re: tweaking unit strengths?
Posted: Thu Nov 15, 2012 2:17 pm
by Myrddraal
The file you're looking for is:
Data / Scripts / units.lua
Open it in notepad.
However, I should say that unit stats are defined by unit type, and since the Canadian Corps are of the type 'infantry', you can't give the a higher defence than other infantry units... You would have to define a new unit type for this.
Re: tweaking unit strengths?
Posted: Thu Nov 15, 2012 2:20 pm
by nimblebooks
[quote="Myrddraal"]The file you're looking for is:
Data / Scripts / units.lua
Open it in notepad.
However, I should say that unit stats are defined by unit type, and since the Canadian Corps are of the type 'infantry', you can't give the a higher defence than other infantry units... You would have to define a new unit type for this.[/quote]
So "elite infantry"? or "especially polite infantry"?
Re: tweaking unit strengths?
Posted: Thu Nov 15, 2012 2:21 pm
by nimblebooks
The file you're looking for is:
Data / Scripts / units.lua
Open it in notepad.
However, I should say that unit stats are defined by unit type, and since the Canadian Corps are of the type 'infantry', you can't give the a higher defence than other infantry units... You would have to define a new unit type for this.
\
So "elite infantry"? or "especially polite infantry"?
Re: tweaking unit strengths?
Posted: Thu Nov 15, 2012 2:23 pm
by Myrddraal
For example, yeah

Re: tweaking unit strengths?
Posted: Fri Nov 16, 2012 7:44 am
by Aryaman
I have opened the file to take a look, but I don“t find the quality stat, is maybe that of hp=100?
Re: tweaking unit strengths?
Posted: Fri Nov 16, 2012 8:36 am
by Myrddraal
The 'quality' stat is not set in this file, it is generated by the game. Quality depends only on the manpower level of the nation producing the unit.
Something to note about this file - there are a fair amount of legacy stats in there. IIRC, the 'levels' are pretty much meaningless, and date from an early prototype of the research system.