Iran save0.tri file - DRAFT

Iran theater

Moderators: Lone Wolf, Snake Man

Post Reply
User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Iran save0.tri file - DRAFT

Post by Sherlock » 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
Sherlock
Victurous te Saluto

Snake Man
Commander-In-Chief
Posts: 9338
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Contact:

Post by Snake Man » 2007-04-29 20:32:50

Hmm was just thinking... when a campaign ENDs completely, is all what we get a certain video played, or can we see a string of text displayed also. What I mean is, can we theater developers write this text as custom?

I know in theater.irc file there is the TXT_TRUCE_EVEN, TXT_TRUCE_FAVORABLE and TXT_TRUCE_UNFAVORABLE, but is that it, the three different choices and nothing more? Maybe we could end the war with more possible events, where these three choices would not be enough, umm actually its only ONE choice per situation hmm.

What about small events during a campaign like Ahvaz falled/cained etc etc, can we get any news blip texts displayed to the user somehow?

If we cant, the all these events mean precisely nothing (no I dont mean the Iran specific, I'm kind of saying generally).
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2007-04-29 20:40:34

Snake Man wrote:Hmm was just thinking... when a campaign ENDs completely, is all what we get a certain video played, or can we see a string of text displayed also. What I mean is, can we theater developers write this text as custom?

I know in theater.irc file there is the TXT_TRUCE_EVEN, TXT_TRUCE_FAVORABLE and TXT_TRUCE_UNFAVORABLE, but is that it, the three different choices and nothing more? Maybe we could end the war with more possible events, where these three choices would not be enough, umm actually its only ONE choice per situation hmm.

What about small events during a campaign like Ahvaz falled/cained etc etc, can we get any news blip texts displayed to the user somehow?

If we cant, the all these events mean precisely nothing (no I dont mean the Iran specific, I'm kind of saying generally).
I don't know about the other versions, but in AF you get the news popup window. Also, movies could be made to play as well. Just takes figuring out which number in the TRI file play movie commandline goes to which movie file ( I think this is documented in another file somewhere that I saw back a long time ago but I don't remember for sure).
Sherlock
Victurous te Saluto

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2007-04-30 18:15:03

Had an idea this morning when reading back through the old thread over at Frugals that I originally created asking for an Iranian theater for AF (before SM started his here)....

Is there a way we could use a count down in a trigger file for one of the campaign scenarios with the backdrop storyline that Iran will launch / expode a nuclear weapon (or weapons) on Israel by a certain day/time of the campaign if certain objectives have not been conquered by the US/Coalition? I think this could be done using the end game option and play a movie plus publish a news report reporting success or failure. It would definitely add more tension to the campaign in a way because the player would be working against the clock as well as the enemy forces.

Thoughts? Is it worth the effort? Maybe for a followup campaign?
Sherlock
Victurous te Saluto

Snake Man
Commander-In-Chief
Posts: 9338
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Contact:

Post by Snake Man » 2007-04-30 18:40:03

Maybe I dont understand what you mean... but just use the set days for campaign to end (lose, nuke explodes) but have another victory condition like same day or day before (win, you prevented it)?
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2007-05-01 20:11:49

Snake Man wrote:Maybe I dont understand what you mean... but just use the set days for campaign to end (lose, nuke explodes) but have another victory condition like same day or day before (win, you prevented it)?
Yeh. Something along those lines would have to be done in the TRI file. Would this type of scenario be "fun" to play is, I guess, what I am wondering....?
Sherlock
Victurous te Saluto

Snake Man
Commander-In-Chief
Posts: 9338
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Contact:

Post by Snake Man » 2007-05-01 21:07:08

Well I always hate time limits, it feels like I'm trapped with them. I want the freedom, of course if the time limit is some reasonable like 60 days or something that you *really* can do some damage in the campaign, then maybe yeah, but not sure if thats such an ultimatum deadline anymore with so long time period.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests