Callback

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

Callback

Post by enric »

I've a question about design, what is better for MP scenarios, a Campaign with a single scenario o several scenarios inside a single campaign?

I make the question because I see that if (for example) I modify the CALLBACKS.BSF file then all scenarios in the campaign need to be aware of such modification. Or there is a way to make a CALLBACKS.BSF (or another) specific for a scenario?.
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: Callback

Post by pipfromslitherine »

There are a number of ways around it - one would be to drive the callback logic via data in the units or via a universal var you set in the scenarios.

Cheers

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: Callback

Post by enric »

Yea, but if I use a universal variable when the callback executes in a scenario that has not that universal variable what's happen?.
I think, for MP, the best is to make a campaign (folder) for scenario.
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: Callback

Post by pipfromslitherine »

If you attempt to get the value of a non-existent global or universal variable, you will get back 0, and the var is created.

Cheers

Pip
Post Reply

Return to “Battle Academy : Modders Corner ”