Disable 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

Disable plugin

Post by enric » Wed Jun 06, 2018 8:30 am

I can't remember the command to disable the plugin that ends the battle if one side has all units eliminated, can you refresh me? Pip.

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: Disable plugin

Post by enric » Wed Jun 06, 2018 8:46 am

Maybe?
FUNCTION WIN_SCENARIO_CALLBACK(winner)
{
return -1;
}

pipfromslitherine
Site Admin
Site Admin
Posts: 9246
Joined: Wed Mar 23, 2005 10:35 pm

Re: Disable plugin

Post by pipfromslitherine » Wed Jun 06, 2018 3:06 pm

That is correct. It is called when the game thinks the battle is over, and you can return -1 to prevent the normal ending of the battle.

Cheers

Pip
follow me on Twitter here

Post Reply

Return to “Battle Academy 2: Modders Corner”