Modified Bishop/Priest/Wespe - One turn delay?

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

Modified Bishop/Priest/Wespe - One turn delay?

Post by GottaLove88s »

Gents,

Has anyone seen anything to modify the action of the on-board Arty (eg. Bishop/Priest/Wespe) so that, either...

(i) Player sets the target but the shot doesn't fall until the next turn (preferred option, but possibly hard to program for?), or
(ii) Bishop/Priest/Wespe can fire, but then cannot fire the next turn (in the same way that firing is locked out if the unit moves)

Would either or both of these be difficult to code? I'm flummoxed...

:?
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
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: Modified Bishop/Priest/Wespe - One turn delay?

Post by pipfromslitherine »

I wouldn't attempt i (you would have to prevent them moving, etc, etc) - it is doable, but much tougher.

for ii You could just add an attrib which is "cooldown" which you would then check in a custom IndirectFire bsf. When something with a cooldown attrib fired, it would set another attrib (cooldowncount or something) which would then have to count down before they could fire again. You could do it all in one attrib with some clever coding, but it would be less clear :)

Cheers

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

Re: Modified Bishop/Priest/Wespe - One turn delay?

Post by GottaLove88s »

Thanks Pip,

Your (ii) sounds interesting and do-able. Are you aware of any code out there that already modifies "cool down" in a similar way.

I'd like to copy something that already works, ideally?
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
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: Modified Bishop/Priest/Wespe - One turn delay?

Post by pipfromslitherine »

Hmmm - no, sorry. I know that we actually had support weapons working something like that, but we took it out as it wasn't much fun :)

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: Modified Bishop/Priest/Wespe - One turn delay?

Post by enric »

Has anyone seen anything to modify the action of the on-board Arty (eg. Bishop/Priest/Wespe) so that, either...
Maybe you're lucky, my next scenario: A small town in Germany, use the canadian Sexton (similar to Priest) they have a reduced range and only may fire every two turns.
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Modified Bishop/Priest/Wespe - One turn delay?

Post by GottaLove88s »

Dream!! When is this available...?

Sounds like you've solved several of the problems that made on board arty too strong!!
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
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: Modified Bishop/Priest/Wespe - One turn delay?

Post by enric »

GottaLove88s wrote:Dream!! When is this available...?

Sounds like you've solved several of the problems that made on board arty too strong!!
Just waiting for the new BA released, I've adapted all actions to the new code on the battle/scripts unit's actions.
Post Reply

Return to “Battle Academy : Modders Corner ”