Combat Strength boost for particular War Types?

Deliverator

Graphical Hackificator
Joined
Feb 12, 2008
Messages
4,813
Location
London, UK
It would cool to have Units that get a Combat Strength boost when fighting during a particular War Type e.g. Holy War, Defensive War. I've had a bit of a play around but didn't manage to get this working.

I can add requirements like this:
<Row>
<RequirementId>REQUIRES_PLAYER_DECLARED_HOLY_WAR</RequirementId>
<Name>WarType</Name>
<Value>HOLY_WAR</Value>
</Row>
<Row>
<RequirementId>REQUIRES_PLAYER_DECLARED_COLONIAL_WAR</RequirementId>
<Name>WarType</Name>
<Value>COLONIAL_WAR</Value>
</Row>
<Row>
<RequirementId>REQUIRES_PLAYER_DECLARED_TERRITORIAL_WAR</RequirementId>
<Name>WarType</Name>
<Value>TERRITORIAL_WAR</Value>
</Row>

But when I try and associate these requirements with individual unit modifiers I get a CTD. Anyone know if this is possible to pull off currently?
 
What requirement are you using? I do not see anything in the GameEffects.xml that would allow such a RecuirementArgument like you are using here. We can not add our own Effect's or Requirement's atm.
 
Last edited:
Please do tell how you add your own Requirement. (Like in GameEffects.xml)

EDIT:

I think you are confusing Requirements and Requirement effect, I can not see how it is currently possible to add a new Requirement for use in Requirements without dll access. (Sounds confusing I know, blame Firaxis for thier weird namings)
 
Last edited:
Download my file Strategos on this site, look inside it, and tell me if that's what you're looking for. I may be confused after all. But I added things like:

<Row>
<RequirementId>REQUIRES_UNIT_NEXT_TO_INTEGRATED_INFANTRY</RequirementId>
<RequirementType>REQUIREMENT_PLOT_ADJACENT_FRIENDLY_UNIT_TYPE_MATCHES</RequirementType>
</Row>


So if that's what you mean, it's possible and it works.
 
Nope we are talkign abotu 2 different things.
REQUIRES_UNIT_NEXT_TO_INTEGRATED_INFANTRY - Requirement
REQUIREMENT_PLOT_ADJACENT_FRIENDLY_UNIT_TYPE_MATCHES - Requirement Effect. (I ment this)
 
I would like to see something where you maybe get combat bonuses only when attacking cities that are relevant to the casus belli. For example, you get a bonus when recapturing one of your own cities in a Reconquest War, but you'll get no such bonus if you decide to push on to one of their cities (maybe you'd even get a penalty?). This would encourage that the casus belli be used to accomplish specific objectives rather than just excuses for more complete conquests.
 
If you can figure this out, I would love to use it with my civ. Maybe you can provide the code for the Holy War part, we can help each other out. I can get your code for my mod and you get it figured out. Reply if you're interested.
 
Back
Top Bottom