How to modify the deployment area?

Download scenarios and talk about scenario design.

Moderators: Slitherine Core, BA Moderators

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

Re: How to modify the deployment area?

Post by GottaLove88s »

Thanks RF, Your ZIP works perfectly. That makes things highly flexible for setting up scenarios. This is going to be incredibly useful... Was using Mac's included Text Editor, which had hidden some .RTF code in there, making it invisible to me, even though I saved as a .BSF rather than an .RTF... Sorry about that... Y muchisimas gracias... otra vez :-)
Last edited by GottaLove88s on Mon Sep 10, 2012 11:14 am, edited 3 times in total.
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
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: How to modify the deployment area?

Post by GottaLove88s »

PS. GRACIAS RF, You're the King!... Just to let you know, I made one small edit to your code... I swapped FUNCTION StartTurn(side) in, for FUNCTION Tick(side) out... Tick ran SetTileLOS several times per second, so it became possible to "paint" LOS when I was deploying my units... StartTurn seems to run SetTileLOS only once, at the beginning of my turn, so a player can't cheat...

viewtopic.php?f=87&t=36734&p=351022#p351022
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 modify the deployment area?

Post by rf900 »

Yes, that sounds good. If you want it only for one player you can do an additional check for the side:

if((GetTurn() == 0) && (side==0)) //for first player for example
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: How to modify the deployment area?

Post by GottaLove88s »

Thanks RF! :-)
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 : Scenario Design”