I never get to do defensive sieges. They always try to wait me out
I'm assuming that they only attack you if the army balance is at or above a certain ratio in their favor? Is there a way to modify that?
I never get to do defensive sieges. They always try to wait me out
I'm assuming that they only attack you if the army balance is at or above a certain ratio in their favor? Is there a way to modify that?
I have been attacked before but I was always outmanned by a good margin, though.
You can change the ratio in the AI files in the config_ai_battle.xml file
<friendly-to-enemy-strength-ratio>0.8</friendly-to-enemy-strength-ratio>
This line is for making the AI to decide or not to attack, think of army ratio, if the value is 1.0 it means a ratio of 1:1 then he will attack, if it's lower than the AI will think he's strong enough to take on against the player even if his army is weaker.
kevindrosario, in descr_campaign_db.xml you will find this line:
<!-- modifies the effective sieging attackers strength when determining the priority of making attack decision -->
<siege_att_str_modifier float="1.0"/>
To make an attack more likely simply raise the number. A value of 2.0 would mean that the AI will estimate it's own strength at 200% of what it should be.
Sorry to correct you but that has nothing to do with it. In fact nothing in that file has any relevance for campaign AI.
It's the first part of the section that analyses the battle, it sets a base for the following modifiers.
<friendly-to-enemy-strength-ratio>0.8</friendly-to-enemy-strength-ratio>
Basically that setting is telling the AI that enemies are 20% stronger than friendlies.
Last edited by Taiji; October 07, 2011 at 02:14 PM.
Thanks very much! That's exactly what I was hoping existed and wasn't hardcoded.