Page 2 of 2

Re: How to modify the deployment area?

Posted: Mon Sep 10, 2012 10:33 am
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 :-)

Re: How to modify the deployment area?

Posted: Mon Sep 10, 2012 11:13 am
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

Re: How to modify the deployment area?

Posted: Mon Sep 10, 2012 11:33 am
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

Re: How to modify the deployment area?

Posted: Mon Sep 10, 2012 12:09 pm
by GottaLove88s
Thanks RF! :-)