Hegemony III: Clash of the Ancients

Hegemony III: Clash of the Ancients

Not enough ratings
Militia Stance
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
167.376 KB
5 Nov, 2021 @ 3:26pm
16 Apr, 2022 @ 2:54pm
6 Change Notes ( view )

Subscribe to download
Militia Stance

Description
Small mod that lets you assign one of the standard units to the local militia. Cost will be significantly reduced, combat ability a bit as well. Militia in cities/camps will lose experience over time - promoted officers will stay, though. Useful for keeping a garrisson in save territory without imminent threats.
3 Comments
Iakovosian 6 Mar, 2024 @ 4:40pm 
Thanks for the quick reply. I see them now. That's a pretty neat trick! :steamhappy:
Canute VII  [author] 6 Mar, 2024 @ 12:46pm 
Hi, I did that by defining a custom attribute. You can see it in the unit_militia.xnt file. It looks like this: <attribute attrtype="losexp" op="bool">1</attribute> It simply is "switched on" and refers to the strings.str file - here the enty is like:
%%NAME=Upgrades::Attributes::losexp
%%INDEX=1
%%TYPE=text
%%EDITTIME=1435461230
%%LANGUAGE=en
%%STRING=<<HEREDOC
Lose XP over time
HEREDOC
Iakovosian 6 Mar, 2024 @ 10:53am 
Quick question from a modding perspective - how did you add the "Lose XP over time" comment to the stance tooltip? (similar point for the tooltip comment on the 'Drill' stance in your 'Military Drill' mod)