AI combat bonus

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Post Reply
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

AI combat bonus

Post by Kossatx »

Hi, anyone knows in which file is AI combat bonus script? Thanks!
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2173
Joined: Tue Nov 23, 2010 3:35 pm

Re: AI combat bonus

Post by Robotron »

Don't call me "anyone". ;)

All combat stuff is of course dealt with in game.combat.lua which can be found in Data/Scripts/game/

Tell me what AI combat bonus you are specifically searching for so I can point you at the correct part of that script.
Image
Slitherine's Commander the Great War - Director's Cut: POTZBLITZ mod!
FIND IT HERE: http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Re: AI combat bonus

Post by Kossatx »

:lol: Of curse I was summoning you, Robotron. I was looking for any script which gives general bonus for AI, not an event specific bonus, but global. Time ago there was what I'm looking for in "main_hud.lua", around "GiveOneOffBonuses” command... but now I can't found it :?
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2173
Joined: Tue Nov 23, 2010 3:35 pm

Re: AI combat bonus

Post by Robotron »

function GiveOneOffBonuses(faction,alliance) can be found in game_resources.lua but contrary to what you think it does not give combat bonus to the AI but instead extra manpower and it always did just that.

There never was a function that gave a global combat bonus to the AI, only situation/event specific bonus and those can all be found in game_combat.lua.

And just to be clear: the new difficulty selection system does not affect the AI at all but only affects the player: he loses more morale, has worse combat results and all neutral nations are less likely to join the player's alliance.
Medium difficulty reduces combat/morale/neutral alignment change by -10% each time, Hard difficulty by -15% each and impossible difficulty by -20% each.
Image
Slitherine's Commander the Great War - Director's Cut: POTZBLITZ mod!
FIND IT HERE: http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Re: AI combat bonus

Post by Kossatx »

Oh! I was wrong then, thanks for your explanation.
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2173
Joined: Tue Nov 23, 2010 3:35 pm

Re: AI combat bonus

Post by Robotron »

If you need help with anything else I'll be happy to give advice. :)
Image
Slitherine's Commander the Great War - Director's Cut: POTZBLITZ mod!
FIND IT HERE: http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Re: AI combat bonus

Post by Kossatx »

Thanks a lot for your support :!:
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”