Swaping units

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

rf900
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 339
Joined: Fri May 04, 2012 6:59 am

Re: Swaping units

Post by rf900 »

Good news, seems to be working now. New version does a check to see if the tile is valid, artillery can swap but looses all AP, so no fire and no more swaps each turn. Added a message when the target tile/unit is not valid.

BTW, I was working on the new icons but still I haven't got them right.
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Swaping units

Post by GottaLove88s »

V cool, thanks RF! New code works really nicely. I note you've included a greyed out icon and a "don't cheat!" warning, if players try to swap into forest or rough ground... Very wise! Hard to make anything foolproof (because fools are so ingenious! ;-)). Good luck with the icons... I'm sure they look perfect amigo.
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: Swaping units

Post by rf900 »

update the icons for merge and swap, if you don't want to use one of the commands comment the line in the $DEFAULT.BSF file.
Post Reply

Return to “Battle Academy : Modders Corner ”