multiple STARTTURN_*

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

multiple STARTTURN_*

Post by enric »

// You can now have multiple STARTTURN_* functions all of which are called (don't rely on the order in which
// they are called though!)

I messed how to made this to work.
If I added a FUNCTION in the main.BSF like STARTTURN_MYTASK(me), but it is never called.
If I created a new .BSF like STARTTURN_MYTASK.BSF with this function, and added to the BATTLE/SCRIPTS/ it is neither called.

How should I create an STARTTURN_MYTASK without modifying the original STARTTURN.BSF?
pipfromslitherine
Site Admin
Site Admin
Posts: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: multiple STARTTURN_*

Post by pipfromslitherine »

Where is the documentation you are referencing.

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: multiple STARTTURN_*

Post by enric »

Just found it as a commen in several .BSF files
for example in:

25PDRBATTERY.BSF (line 72)
RALLY.PDF (line 116)
RESUPPLY.BSF (line 102)
etc.
pipfromslitherine
Site Admin
Site Admin
Posts: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: multiple STARTTURN_*

Post by pipfromslitherine »

Ah - that is just that the bonuses can each have a STARTTURN function, as they have. No other aliases get called in other scripts.

Cheers

Pip
follow me on Twitter here
Post Reply

Return to “Battle Academy 2: Modders Corner”