Page 1 of 1

VP plugin

Posted: Thu Oct 03, 2013 6:04 pm
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?

Re: VP plugin

Posted: Thu Oct 03, 2013 7:17 pm
by pipfromslitherine
You would also need to over-ride the WIN_SCENARIO_CALLBACK to have it entirely dependent upon your own logic.

Cheers

Pip

Re: VP plugin

Posted: Thu Oct 03, 2013 7:29 pm
by enric
Is there any documentation on this somewhere?
ok, I see some more info in stub engine, thank you

Re: VP plugin

Posted: Sun Oct 06, 2013 3:05 pm
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)?

Re: VP plugin

Posted: Tue Oct 08, 2013 3:39 pm
by pipfromslitherine
There is no concept of a draw in BA.

Cheers

Pip