Iran save0.tri file - DRAFT
Posted: 2007-04-16 08:30:51
Been working on this all weekend (in between finishing tax preparation) and it seems to be working pretty well. It has the Iran objective numbers in it and it incorporates SMs idea of ending the game when Iran is bombed back into the stoneage. It also has a section for where CIS comes into the war based on supply levels dropping too low for Iran or on troop ratios dropping too low. I haven't really tested out the supply levels yet (don't have afull fledged campaign up and running yet to test it with) but I know the troop level ratio works good.
Code: Select all
// ALWAYS USE CampID for reference to objectives!!!!!
//
// Base event file
//
// Iran Save0: Persian Lightning
// Version for Falcon 4: Allied Force
//
// :::::::::::::::::::::::::::::::::::::::::;
//
// #TOTAL_EVENTS is a required entry, and
// should be # of events we have triggers
// and code for
// KCK WARNING: KEEP THIS UPDATED!
//
#TOTAL_EVENTS 17
//
// :::::::::::::::::::::::::::::::::::::::::;
//
// initialize
//
// #SET_EVENT will set the activated flag for any
// events we want to be initially activate
// ie: Seoul already should be marked as
// captured in the Pusan parameter scenario
//
// This marks the US/Coalition as initially on the defensive
#SET_EVENT 10
// Unknown what the following does...
#PARENTRECALCDEPTH 4
// Unknown what the following does...
#FLOT_SORTDISTANCE 20
// From post at PMC by Schumi, the following command: maximum distance between two FLOT objects (in km) to draw a line
#FLOT_DRAWDISTANCE 50
// Unknown what the following does...
#MINEVALUATEAIRBASEDISTANCE 20
// This sets the initial tempo
// #SET_TEMPO 255
#ENDINIT
//
// :::::::::::::::::::::::::::::::::::::::::;
//
// Now come the individual triggers
//
// Event #1
// Baghdad being attacked by Iranian forces
//
#IF_EVENT_PLAYED 1
#ELSE
#IF_CONTR_ALLIES 6 O 4523 4553 4538 4572 4640 4659 4697 4726 4753 4814 4904 // Checks "OR" (O=OR) conditions of control on the following objectives:
// 4904 = Village of Abu Sabaya at 370, 854 between An Nasiriyah and Al Basrah (northwest of Al Basrah)
// 4814 = City of Al Amarah at 376, 950
// 4753 = Village of Shayk Sa'd at 301, 1032 just east of Al Kut
// 4726 = Village of Jassan at 267, 1074 north of Al Kut
// 4697 = village of Kharbut at 217, 1120 east of Baghdad
// 4659 = City of Al Miqdadiyah at 187, 1187 northeast of Baghdad
// 4640 = City of Tolafarush at 232, 1229 northeast of Al Miqdadiyah
// 4572 = Village of Gankewa at 257, 1380 east of Kirkuk
// 4538 = Village of Shaqlawan at 159, 1457 northeast of Irbil
// 4553 = Village of Kuysanjaq at 181, 1421 east of Irbil
// 4523 = Village of Az Zibar at 140, 1509 north of Irbil
#PLAY_MOVIE 100
#SET_PAK_PRIORITY 6 4701 100
#SET_PAK_PRIORITY 2 4701 100
#CHANGE_PRIORITIES 6 2
#CHANGE_PRIORITIES 2 1
#SET_TEMPO 255
#DO_EVENT 1
#ENDIF
#ENDIF
//
// Event #2
// Baghdad falls/regained
//
#IF_EVENT_PLAYED 2
#IF_CONTR_ALLIES 2 A 4695 4701 4704
#SHIFT_INITIATIVE 2 6 50
#RESET_EVENT 2
#ENDIF
#ELSE
#IF_CONTR_ALLIES 6 A 4695 4701 4704
#PLAY_MOVIE 101
#DO_EVENT 2
#SHIFT_INITIATIVE 6 2 50
#ENDIF
#ENDIF
//
// Event #3
// Tehran being attacked by U.S./Coalition forces
//
#IF_EVENT_PLAYED 3
#ELSE
#IF_CONTR_ALLIES 2 O 1158 14446 1211 14478 1180 1244 14443
#PLAY_MOVIE 102
#SET_PAK_PRIORITY 6 1180 100
#SET_PAK_PRIORITY 2 1180 100
#CHANGE_PRIORITIES 6 1
#CHANGE_PRIORITIES 2 2
#SET_TEMPO 255
#DO_EVENT 3
#ENDIF
#ENDIF
//
// Event #4
// Tehran falls/regained
//
#IF_EVENT_PLAYED 4
#IF_CONTR_ALLIES 6 A 1211 1180
#SHIFT_INITIATIVE 2 6 50
#RESET_EVENT 4
#ENDIF
#ELSE
#IF_CONTR_ALLIES 2 A 1211 1180
#PLAY_MOVIE 103
#DO_EVENT 4
#SHIFT_INITIATIVE 6 2 50
#ENDIF
#ENDIF
//
// Event #5
// Iran advances beyond Iraqi border
//
#IF_EVENT_PLAYED 5
#ELSE
#IF_EVENT_PLAYED 7
#ELSE
#IF_CONTR_ALLIES 6 O 4925 4914 4779 4659 4583
#DO_EVENT 5
#RESET_EVENT 6
#ENDIF
#ENDIF
#ENDIF
//
// Event #6
// Iranian forces pushed back within their own borders
//
#IF_EVENT_PLAYED 5
#IF_EVENT_PLAYED 7
#PLAY_MOVIE 104
#DO_EVENT 6
#RESET_EVENT 5
#ELSE
#IF_CONTR_ALLIES 2 A 481 721 2586 2190 1896 1868 1742 1445
#PLAY_MOVIE 104
#DO_EVENT 6
#RESET_EVENT 5
#ENDIF
#ENDIF
#ENDIF
//
// Event #7
// U.S./Coalition forces advance beyond Iraq-Iran border villages and towns
//
#IF_EVENT_PLAYED 7
#ELSE
#IF_EVENT_PLAYED 5
#ELSE
#IF_CONTR_ALLIES 2 O 715 297 1351 1584 1754 1939 2277 2547
#DO_EVENT 7
#RESET_EVENT 8
#ENDIF
#ENDIF
#ENDIF
//
// Event #8
// U.S./Coalition forces pushed back to DMZ
//
#IF_EVENT_PLAYED 7
#IF_EVENT_PLAYED 5
#PLAY_MOVIE 105
#DO_EVENT 8
#RESET_EVENT 7
#ELSE
#IF_CONTR_ALLIES 6 A 2586 2619 2190 1826 1699 1548 91
#PLAY_MOVIE 105
#DO_EVENT 8
#RESET_EVENT 7
#ENDIF
#ENDIF
#ENDIF
//
// Event #9
// Combined forces go on offensive
//
#IF_EVENT_PLAYED 10
#IF_ON_OFFENSIVE 2
#PLAY_MOVIE 106
#DO_EVENT 9
#RESET_EVENT 10
#ENDIF
#ENDIF
//
// Event #10
// Combined forces go on defensive
//
#IF_EVENT_PLAYED 9
#IF_ON_OFFENSIVE 6
#PLAY_MOVIE 107
#DO_EVENT 10
#RESET_EVENT 9
#ENDIF
#ENDIF
//
// Event #11
// CIS joins the war
//
#IF_EVENT_PLAYED 11
#ELSE
#IF_SUPPLY 6 L 40
#CHANGE_RELATIONS 4 6 1
#PLAY_MOVIE 108
#DO_EVENT 11
#ELSE
#IF_FORCE_RATIO A 6 2 L 2
#CHANGE_RELATIONS 4 6 1
#PLAY_MOVIE 108
#DO_EVENT 11
#ENDIF
#ENDIF
#ENDIF
//
// Event #12
// Coalition has bombed Iran back to the Stone Age-they sue for peace
//
#IF_EVENT_PLAYED 12
#ELSE
#IF_SUPPLY 6 L 20 // if supply level for Team 6 drops to less than 20
#DO_EVENT 12 // do event 12 if conditions in line above are met
#END_GAME 12 // end game
#ELSE
#IF_FORCE_RATIO A 6 2 L 3 // if force ratio between Team #6 versus Team #2 drops less than 3:1 (guess on 3:1 part here)
#DO_EVENT 12 // do event 12 if conditions in line above are met
#END_GAME 12 // end game
#ENDIF
#ENDIF
#ENDIF
//
// Event #14
// Bad guys win
// Iran controls Baghdad (4701), Al Mawsil (4539), Al Basrah (4925), the Iraqi Oil fields at As Salman (4928) and An Nasiriyah (4892)
//
#IF_CONTR_ALLIES 6 A 4539 4701 4892 4925 4928
#PLAY_MOVIE 113
#DO_EVENT 14
#END_GAME 14
#ENDIF
//
// Event #15
// This game isn't going anywhere so put the player out of his misery
//
#IF_BORDOM_HOURS 120
#PLAY_MOVIE 114
#DO_EVENT 15
#END_GAME 15
#ENDIF
//
// Event #16
// Timeout = 30 game days
//
#IF_CAMPAIGN_DAY G 30
#PLAY_MOVIE 115
#DO_EVENT 16
#END_GAME 16
#ENDIF
//
// Event #17
// US/Coalition controls TABRIZ (177), ARAK (1635), AHVAZ (2277), ESFAHAN (1898) AND TEHRAN (1180)
// Good guys Win!
//
#IF_CONTROLLED 2 A 177 1635 2277 1898 1180
#PLAY_MOVIE 116
#DO_EVENT 17
#END_GAME 17
#ENDIF
// End
#ENDSCRIPT