How to delay bombers?

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

How to delay bombers?

Post by GottaLove88s »

Gentlemen,

I'm using SetScriptGlobal to delay the availability of fighter-bombers, bombers and artillery until a dawn turn...

SetScriptGlobal("Fw190","gCounter",-3);
SetScriptGlobal("Stuka","gCounter",-1);
SetScriptGlobal("he111","gCounter",-2);
SetScriptGlobal("GermanBattery","gCounter",-1);

SetScriptGlobal("Hurricane","gCounter",-3);
SetScriptGlobal("Typhoon","gCounter",-1);
SetScriptGlobal("Blenheim","gCounter",-2);
SetScriptGlobal("B17","gCounter",-1);

This works fine for the Fw190, Stuka, Hurricane, Typhoon & German Arty... but it has no effect on the He111, Blenheim or B17 bombers...

I'm guessing that's because the required name for the bombers is different from what's held in CARDS.TXT (similar to GermanArt in CARDS.TXT becoming GermanBattery for the script call).

Where does BA pull up the script call names for the medium/heavy bombers? So I can update eg. "B17" to "B17Bomber" or whatever is necessary to control the delay... I couldn't find anything in BombardTools.BSF but I could easily be looking in the wrong place... :oops:

Thanks guys!
:D
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
rf900
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 339
Joined: Fri May 04, 2012 6:59 am

Re: How to delay bombers?

Post by rf900 »

It may use the bonus file name, so you will need to use:

BombingB17
BombingHe111
BombingBlenheim
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: How to delay bombers?

Post by GottaLove88s »

Thanks rf... Your solution works a treat!
:mrgreen:
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Post Reply

Return to “Battle Academy : Modders Corner ”