Page 2 of 2
Re: Army Lists and Min Max
Posted: Mon Aug 15, 2016 8:56 pm
by pipfromslitherine
the RandomMap_MapSize function gets called only to determine the map size, so calling AddBonus in there makes no difference. You would use SetGlobal to set a global variable to the map size, which you would then read in the _Build function where the map actually gets built.
The Log command is detailed in the autodocs (in Documents/My Games/BA2/AUTODOCS/BATTLESCRIPT.TXT), and you can see the output in the battle screen by pressing F6.
Cheers
Pip
Re: Army Lists and Min Max
Posted: Mon Aug 15, 2016 9:18 pm
by Brummbar44
Ahhh...ok, thanks Pip. I'll see if I can fiddle with it to make it work...otherwise, not a big deal.
Cheers!
Re: Army Lists and Min Max
Posted: Thu Aug 18, 2016 4:07 pm
by Brummbar44
Hi Pip,
Me again. I was wondering if there is a way to indicate the Fortification number set in a Skirmish in the MP screen?
For example, when I set up a Challenge some of the information about setup is included in the Challenge itself (like Attack) and the rest of the info about it can be obtained by hovering over it (like Openness)...I would like to be able to also show, on hover, the Fortification setting...but have no idea where to begin with that.
Can you point me in the right direction?
Re: Army Lists and Min Max
Posted: Thu Aug 18, 2016 4:53 pm
by pipfromslitherine
I think the info in the lobby screen is hardcoded, sorry
Cheers
Pip
Re: Army Lists and Min Max
Posted: Thu Aug 18, 2016 9:19 pm
by Brummbar44
Drat! Thanks Pip.
Any other way to indicate what the Fortification setting is to a player accepting the challenge that you can think of? ...perhaps through the Log somehow?
Re: Army Lists and Min Max
Posted: Fri Aug 19, 2016 2:53 pm
by pipfromslitherine
Unfortunately not really, the data just wouldn't get sent to the server. I guess we should have allowed script to write to the challenge name or user message.
Cheers
Pip
Re: Army Lists and Min Max
Posted: Fri Aug 19, 2016 3:41 pm
by Brummbar44
Oh well...Ok, thanks Pip.
Re: Army Lists and Min Max
Posted: Sat Aug 20, 2016 3:35 pm
by Brummbar44
I found this in the Autodoc...
Code: Select all
//set the fortification value [0,100]
SkirmishSetFortifications(fortifications)
Could I use this in MP Skirmish to preset the Fortification value? If so, where would I need to put it (ie. do I put it into the MAPGENERATE2.BSF)? ...or is it only for Single player mode?
Re: Army Lists and Min Max
Posted: Mon Aug 22, 2016 9:57 pm
by pipfromslitherine
I think that it is for starting skirmish battles from a campaign layer, so probably not useful for MP (if I am correct in thinking it is your plan).
Cheers
Pip
Re: Army Lists and Min Max
Posted: Mon Aug 22, 2016 10:04 pm
by Brummbar44
Ahhh...yes, I was hoping it might be an option for the MP version.