Here is simple example of Afghanistan Enduring Freedom save0.cam campaign script "index" script:
Code: Select all
#
# Afghanistan - save 0
#
# airdefenses
source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\create.PMC.Airdefenses.tcl"
# load in some routines
source "D:\\F4_Theaters\\F4_Conf_files\\TCL\\create.Squadron.tcl"
# run blufor squadrons
source "afghanistan_save0_ef_squadrons_blufor.tcl"
# run blufor squadrons helicopters
source "afghanistan_save0_ef_squadrons_helicopters_blufor.tcl"
# run opfor squadrons
source "afghanistan_save0_ef_squadrons_opfor.tcl"
# run opfor squadrons helicopters
source "afghanistan_save0_ef_squadrons_helicopters_opfor.tcl"
# run blufor squadrons carriers
source "afghanistan_save0_ef_squadrons_blufor_carriers.tcl"
printout "blufor ground forces..."
source "afghanistan_save0_ef_ground_blufor.tcl"
printout "opfor ground forces..."
source "afghanistan_save0_ef_ground_opfor.tcl"
printout "thank you, have a nice day."
In this case we first run the default Tacedit airdefense and squadron function scripts, then we proceed with creating squadrons.
Squadrons are now split up to BLUFOR and OPFOR, more than that, the helicopter squadrons and aircraft carriers/squadrons are placed in their own script files.
Finally we run the ground forces, again each individual script file for BLUFOR and OPFOR. Of course ground forces are airdefenses and the normal moving ground units... but the airdefenses are placed separately at the top of this "index" script from its own file.
I really like this new system, its much more easier to manage than the older scripts I wrote so long time ago (for example ODS carriers are still created with the old method if anyone knows what I'm talking about heh).
Next on the this project is to change the "create.brig.bat.sub.tcl" script / system so the ground units are placed on objectives, instead of just x,y coordinates most of the time them being open ground where ground unit movement is very bad or no movement at all.
If anyone has any suggestions, feel free to post.