Page 1 of 1

Higher breakpoint for a particular epic battle?

Posted: Tue Jul 31, 2018 11:09 pm
by DestroyerofSid
Hey guys,

Am currently in the process of creating a series of battles but have had poor luck trying to adjust the breakpoint for a particular battle. I tried cannibalising the special victory conditions from Carrhae but no luck.

To be specific I'd like to change the rout threshold for the AI enemy to 50 and 70, with a 30 percent differential. Any help would be appreciated.

Re: Higher breakpoint for a particular epic battle?

Posted: Wed Aug 01, 2018 8:57 am
by rbodleyscott
You can set the breakpoints by changing the scenario script:

Change

FUNCTION VictoryConditions()
{
StandardVictoryConditions(60, 40, 60, 40, 2, IsMultiplayer());

return 1; // VictoryConditions() must return a non-zero value so that the main program knows it exists and therefore not to use the default version.
}

to

FUNCTION VictoryConditions()
{
StandardVictoryConditions(60, 40, 50, 30, 2, IsMultiplayer());

return 1; // VictoryConditions() must return a non-zero value so that the main program knows it exists and therefore not to use the default version.
}

Note that the above parameters are the % unrouted for the first and second breakpoints, not the percent routed.

You can't change the 25% differential without more complex coding.

The above won't change the UI, so you also need to change the UI strings to match.

In text1.txt in your "campaign" folder, put

IDS_SCENUI_VC_STANDARD, "Rout the enemy army by:~a) Routing at least 50% of their troops and ",
IDS_SCENUI_VC_STANDARD1, "% more than you have lost, or~b) Routing 70% of their troops.",

Re: Higher breakpoint for a particular epic battle?

Posted: Wed Aug 01, 2018 12:34 pm
by DestroyerofSid
Ah the UI does not change automatically, that would explain a lot. Thanks!