VP plugin

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

VP plugin

Post by enric »

From the wiki VP Plugin Custom Victory Conditions & Globals
The VP plugin provides an easy way to place and set up VPs, and some simple victory conditions and UI feedback. But if you want more complex victory conditions, it is possible to both disable the automatic ending of the battle, and to interogate the various plugin values.

To disable the victory processing, make the following call at the start of the battle

SetUniversalVar("Slith_VP_EndBattleLogic", 1) ;
Using this call, on the PreBattleSetup, I expected that BA will not finish a game when all units of a side were eliminated, but BA still ends the game, what else should be done?
pipfromslitherine
Site Admin
Site Admin
Posts: 9863
Joined: Wed Mar 23, 2005 10:35 pm

Re: VP plugin

Post by pipfromslitherine »

You would also need to over-ride the WIN_SCENARIO_CALLBACK to have it entirely dependent upon your own logic.

Cheers

Pip
follow me on Twitter here
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: VP plugin

Post by enric »

Is there any documentation on this somewhere?
ok, I see some more info in stub engine, thank you
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: VP plugin

Post by enric »

With the WIN_SCENARIO_CALLBACK overrided, if you end the battle by EndBattle (winner) a "Objective complete" or "Objective Failed" appers. (depending of the "winner"), but what if it was a draw? can be that window avoided?.
Is there another way to end the battle that EndBattle(winner)?
pipfromslitherine
Site Admin
Site Admin
Posts: 9863
Joined: Wed Mar 23, 2005 10:35 pm

Re: VP plugin

Post by pipfromslitherine »

There is no concept of a draw in BA.

Cheers

Pip
follow me on Twitter here
Post Reply

Return to “Battle Academy : Modders Corner ”