[GS] AI combat cheat value?

firsTraveler

Chieftain
Joined
Jul 4, 2014
Messages
22
Does anyone know what file the combat advantage for high dif levels is in? I've looked in all the .xml files and the .sql files (but I don't program sql so I could easly miss it).
 
it's in the Leaders.xml file, TraitModifiers table
That's just where those modifiers are attached to "TRAIT_LEADER_MAJOR_CIV". The modifiers themselves are actually defined in the Modifiers & ModifierArguments tables. The file is correct though.
 
This is the code you are refering to?

<Row>
<ModifierId>HIGH_DIFFICULTY_COMBAT_SCALING</ModifierId>
<Name>Amount</Name>
<Type>LinearScaleFromDefaultHandicap</Type>
<Value>-1</Value>
<Extra>1</Extra>
</Row>
<Row>
<ModifierId>LOW_DIFFICULTY_COMBAT_SCALING</ModifierId>
<Name>Amount</Name>
<Type>LinearScaleFromDefaultHandicap</Type>
<Value>0</Value>
<Extra>-1</Extra>
<SecondExtra>DIFFICULTY_PRINCE</SecondExtra>
</Row>

If I replace the 1 with 0 in <Extra>1</Extra> would that remove the unit combat strength bonus provided to the ai at high dif levels? Or would that just make the game not work?

Thank you
 
This is the code you are refering to?

<Row>
<ModifierId>HIGH_DIFFICULTY_COMBAT_SCALING</ModifierId>
<Name>Amount</Name>
<Type>LinearScaleFromDefaultHandicap</Type>
<Value>-1</Value>
<Extra>1</Extra>
</Row>
<Row>
<ModifierId>LOW_DIFFICULTY_COMBAT_SCALING</ModifierId>
<Name>Amount</Name>
<Type>LinearScaleFromDefaultHandicap</Type>
<Value>0</Value>
<Extra>-1</Extra>
<SecondExtra>DIFFICULTY_PRINCE</SecondExtra>
</Row>

If I replace the 1 with 0 in <Extra>1</Extra> would that remove the unit combat strength bonus provided to the ai at high dif levels? Or would that just make the game not work?

Thank you
idk, try it and see what happens - it'd be easy to test. I've only ever added a difficulty combat bonus via my own modifiers, I've never tried reducing or eliminating it completely. But yes, those are the correct lines of code.
 
<ModifierId>HIGH_DIFFICULTY_COMBAT_SCALING</ModifierId>
<Name>Amount</Name>
<Type>LinearScaleFromDefaultHandicap</Type>
<Value>-1</Value>
<Extra>1</Extra>

I changed <Extra>1</Extra> to <Extra>0</Extra>; that actually gave the ai a -1 strength penalty when I tested on deity level.

Then changed <Value>-1</Value> to <Value>0</Value>; and that removed the combat difference entirely when test at Deity.

Tested using ancient warriors and slingers.
 
Back
Top Bottom