.

Hmmm. Square selection. I wouldn't know how to go about it in the SDK - although there are a few python mods which I know do it.
 
Lord Olleus said:
The funny thing is that there must already be an SDK version of doing this as Mission_Airstrike and Mission_Airbomb need square selection.

I'm not sure on this, but I think you need to also add your "INTERFACEMODE_AIRPOWER" to the Civ4InterfaceModeInfos.xml. You can probably just copy the airbomb info.
 
First you'll need to find the bit where the AI decides on what air mission to do. You'll probably want to get something that judges how many aircraft are needed for defence (CvCity->getNumAirDefenders() or something similar), and then use any excess aircraft, or maybe a certain percentage of the defending aircraft which is either, dependant on how the war is going (very general... might be hard to do), or fixed, to conduct the mission.

Then you'll have to find a suitable target. Best ones would be near cities you have bombers and land troops in range of. There might already be some functoins in place which you may be able to use to help with this - I'm not sure.

You'll also have to fix the unit order in there somewhere so that the bombers don't do their bombing runs before the fighters have tried to clear the skies.... but the bombers need to do their bombing runs before the units move in.
 
Back
Top Bottom