Bonus initial delay

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

Bonus initial delay

Post by enric »

I put, at turn one start:

SetScriptGlobal("GERMANBATTERY", "gCounter",3) ;
SetScriptGlobal("B17", "gCounter", 3) ;
SetScriptGlobal("P47", "gCounter",3) ;
SetScriptGlobal("USBattery", "gCounter", 3) ;

I got the following

P47 turns until ready: 1
B17: ready
German artillery until ready: 1 turn
US artillery: ready



Can you help me to understand it?.
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: Bonus initial delay

Post by pipfromslitherine »

IIRC the counter counts up, not down. It then compares to the Delay value set in the CARDS file. Check out the BonusTimerCheck function in the TOOLS.BSF file

Cheers

Pip
Post Reply

Return to “Battle Academy : Modders Corner ”