[eQuestion] How to use TerritoryAttackScalar?

I came across this while looking for something else (how to increase unit design perk choices).

[quote]

        <!-- Unit stat effects from territory ownership -->
        <HomeTerritoryAttackScalar>0.0</HomeTerritoryAttackScalar>
        <HomeTerritoryDefenseScalar>0.0</HomeTerritoryDefenseScalar>
        <ForeignTerritoryAttackScalar>0.0</ForeignTerritoryAttackScalar>
        <ForeignTerritoryDefenseScalar>0.0</ForeignTerritoryDefenseScalar>

[quote]

 

I realized I could make a few fun custom factions, perhaps one who has a bonus fighting in their own ZOC, or a building that "weakens" enemy units in ZOC instead of strengthening your own. Then, I envisioned its utopian opponent who loves foreign wars and just can't fight very well inside of its own borders.

Something like "Unit gets 30% attack/defense in homeland, -20% elsewhere" and "unit gets -30% attack/defense in homeland, 20% elsewhere."

What can I do with this in other files in the /mods directory that allow me to apply bonuses/penalties depending on who's territory a unit is in? Can this be used to "buff" wildlands monsters for a scenario?

2,759 views 2 replies
Reply #1 Top

This XML was originally used in WoM (and also beta versions of FE) because you got a blanket bonus for fighting in your own territory, and a penalty for fighting in foreign territory.  This was prior to outposts and their upgrades being implemented.

I believe this code is located in the ElementalDefs (correct me if I'm wrong.)  Which means you can change it globally, but I'm pretty sure you can't affect it on a faction or individual level.

Although I've been wrong before...

Reply #2 Top

I jumped in the beta after that apparently, I realize why it was disabled as a feature, however it would still be somewhat fun to have a faction with it.