Total War: ATTILA

Total War: ATTILA

35 ratings
Various army size
   
Award
Favorite
Favorited
Unfavorite
Tags: mod, Campaign
File Size
Posted
353.757 KB
13 Jun, 2019 @ 8:27am
1 Change Note ( view )

Subscribe to download
Various army size

Description
This mod reduces the maximum army size from 20 units to (the number of victories of the general) * 0.5 + 10. Each victory of the general adds to the size of the army 0.5 unit. It could be a victory over a small army, or the killing of Attila — it doesn't matter. The leader of the faction has no such restriction, his army allowed to have 20 units. NPC faction are NOT affected by this mod.

This small modification gives an interesting depth: the old and experienced generals are now of great value, even if they have problems with loyalty. On the one hand, you want to take care of them, but on the other, you cannot replace them in a dangerous situation with a new general if the army is large.

The code contains a restriction blocking the hiring of troops and mercenaries if the size of the army exceeds the allowable.
However, using scripts, it is impossible to completely block an increase in an army above this limit. There are at least 4 scenarios when modding is powerless:
1) after the victory, you capture the enemy onager (+1 squad above the limit).
2) during the battle (or because of old age) your general dies and in his place comes a new general with a restriction lower than the actual size of the army.
3) you manually change the general
4) when exchanging units between armies - in this case it is impossible to detect both armies in scripts.

Due to these difficulties, if the size of the army exceeds the limit of the general, the modifier applies to the army:
0) if the units have a permissible number or less: no modifiers.
1) if the limit is exceeded by 1: -25 to Integrity
2) if the limit is exceeded by 2: -50 to Integrity
3) if the limit is exceeded by 3: -75 to Integrity
4) if the limit is exceeded even more: -100 to Integrity
The latter ensures that this army will rebel the next turn.

Best of all, this modification appears in the WRE + Legendary. In this scenario, a large number of rebellions occurs, which is usually tedious. However, in this modification, endless rebellions help train generals, because the size of the defeated army does not matter, only the fact of victory matters. This reduces the degree of emotional discomfort.

I did not check how the mod works for horde factions and tested it only at Grand Campaing. Like other mods with scripts, there is no compatibility with other mods.
18 Comments
-=|Yo-Yo|=- 11 Aug, 2021 @ 11:47pm 
please, apply the effects to the AI too!
trummy 5 Sep, 2020 @ 12:50am 
Great, thanks! In addition, I had to edit turns.lua a little (as far as I understand it, your turns.lua doesn't call “CheckCivilWar();”).
lsoft  [author] 4 Sep, 2020 @ 10:27pm 
as I can understand, the easiest way to transfer army_size.lua + turns.lua to that mod, then call LongFallInit(); from att_start.lua; also scripting.lua should have that lines:

require("turns");
require("army_size");

(and logging if you need it)

of course you should not forget about db data and text data.

One additional moment is logging: logging is highly primitive and optional. if you will not transfer logging.lua, you should remove all lines with invocation `is_file_exists`, `write_log_message` and `is_file_exists`.
trummy 3 Sep, 2020 @ 11:46am 
Isoft, how to make it compatible with Fall of the Eagles + Europa Perdita Revised?
lsoft  [author] 22 May, 2020 @ 10:47pm 
Warriordude, sorry dude)) I have neither time nor interest to adapt lua script for Rome or Britannia. But, of course, you are allowed to do it yourself. I can answer on questions about my lua code if it will require.
Warriordude 19 May, 2020 @ 1:00pm 
I've been looking for a mod like this, this compatible with Mk 1212, can you make one for Rome 2 or Thrones of Britannia.
lsoft  [author] 18 Jun, 2019 @ 9:05am 
TTO | VCR Volante, it is possible to apply integrity debuff to a NPC armies, but it is IMpossible to cease AI from recruit 20 units. So, it ends with permanent rebels for AI factions. It is meaningless as you can see.
lsoft  [author] 18 Jun, 2019 @ 9:01am 
eggheadpayton, only for a player faction, yeah.
M82 18 Jun, 2019 @ 6:48am 
can you make it apply to AI as well ? Would actually be better when playing on Very Hard dif
eggheadpayton 17 Jun, 2019 @ 6:21pm 
So this mod doesnt apply the army cap changes to the npc factions? only the players faction?