Airstrike/Artillery - Restrictions

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

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: Airstrike/Artillery - Restrictions

Post by enric »

No, no, it was just a info, because passing files from a Mac to a iPad, directly o by iCloud is the same.
As i do it in others apps (moving files from the Mac to the iPad) and I have no issue with the names I thought it was something that could be adjusted from the app.
In the future and, if as expected, BA grows and grows, A way to allow users to make their own scenarios in the Mac or PC and be able to send them to the iPad, without the aid of Slitherine, will be a great improvement.
As an idea, I've an application for the iPad: iRealb, that allows you to create songs on the Mac, put any name (upper/lower), and send by email, then on the iPad you can open the email and pass the received files to iRealb.
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: Airstrike/Artillery - Restrictions

Post by pipfromslitherine »

OK, gotcha. It would definitely be part of any system we implemented to let people drop files onto the iPad. It's just not there now as there is no supported way for them to do it.

I'm more likely to implement a 'beta' upload section of some kind to let people grab 'unofficial' mods that people might want to put up and that allows anyone who has created a mod to upload. Otherwise it's adding support hassles for a tiny % of users who are going to be happy or able to connect to iTunes and move files around.

Cheers

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

Re: Airstrike/Artillery - Restrictions

Post by GottaLove88s »

Enric/Pip, Thanks again for your clever code to restrict artillery/airstrikes at the beginning of a new MP game.
Experimenting, the values below stop players setting artillery or airstrikes until precisely 3rd turn... Nice :-)


// called at the start of every turn.
// You would tend to use this for events
FUNCTION StartTurn(side)
{
if (GetTurn() == -1 )
{
// Setup VPs, damaged tiled, ...
PreBattleSetup() ;
}

if (GetTurn() == 0) // allied
{
SetScriptGlobal("P47", "gCounter",2) ;
SetScriptGlobal("USBattery", "gCounter", 1) ;
}
if (GetTurn() == 1) // German
{
SetScriptGlobal("ME262", "gCounter", 4) ;
SetScriptGlobal("NebelBattery", "gCounter", 1) ;
}

}
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 : Modders Corner ”