tweaking unit strengths?

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Post Reply
nimblebooks
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 96
Joined: Mon Nov 30, 2009 8:48 pm

tweaking unit strengths?

Post 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.
Myrddraal
The Artistocrats
The Artistocrats
Posts: 1505
Joined: Wed Feb 23, 2011 2:49 pm

Re: tweaking unit strengths?

Post 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.
nimblebooks
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 96
Joined: Mon Nov 30, 2009 8:48 pm

Re: tweaking unit strengths?

Post 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"?
nimblebooks
Senior Corporal - Ju 87G
Senior Corporal - Ju 87G
Posts: 96
Joined: Mon Nov 30, 2009 8:48 pm

Re: tweaking unit strengths?

Post 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"?
Myrddraal
The Artistocrats
The Artistocrats
Posts: 1505
Joined: Wed Feb 23, 2011 2:49 pm

Re: tweaking unit strengths?

Post by Myrddraal »

For example, yeah :)
Aryaman
1st Lieutenant - 15 cm sFH 18
1st Lieutenant - 15 cm sFH 18
Posts: 833
Joined: Mon Nov 16, 2009 3:12 pm

Re: tweaking unit strengths?

Post 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?
Myrddraal
The Artistocrats
The Artistocrats
Posts: 1505
Joined: Wed Feb 23, 2011 2:49 pm

Re: tweaking unit strengths?

Post 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.
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”