Higher breakpoint for a particular epic battle?

Post Reply
DestroyerofSid
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 4
Joined: Sat Jun 02, 2018 11:44 pm

Higher breakpoint for a particular epic battle?

Post 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.
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28385
Joined: Sun Dec 04, 2005 6:25 pm

Re: Higher breakpoint for a particular epic battle?

Post 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.",
Richard Bodley Scott

Image
DestroyerofSid
Private First Class - Opel Blitz
Private First Class - Opel Blitz
Posts: 4
Joined: Sat Jun 02, 2018 11:44 pm

Re: Higher breakpoint for a particular epic battle?

Post by DestroyerofSid »

Ah the UI does not change automatically, that would explain a lot. Thanks!
Post Reply

Return to “Field of Glory II: Scenario Design”