• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Lyrecryer

Back by Unpopular Demand!
85 Badges
Feb 27, 2010
2.074
13
  • Cities: Skylines - After Dark
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars
  • Crusader Kings II: Horse Lords
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Victoria 2
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cradle of Civilization
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Europa Universalis III Complete
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis III Complete
  • Europa Universalis 4: Emperor
Hi, I am here to ask you all what is wrong with these events? it keeps giving me error after errors. I am (somehow dispite updating) using 1.0.0.
Code:
###################ALLIED FORCES EVENTS################
###################USA SUGGESTS UNITY#####################

event = {
   id = 900000 
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "USA starts Allied Forces preparations"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations, will we do so?" 
   picture = "news_paper"

   action_a = {
      name = "The world needs protecting! Send the Invites!"
	  command = { type = setflag which = Allied Forces}}
}
}
###########USA SENDS THE OFFER########
event = {
   id = 900001
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	flag = Allied Forces
	event = 900000 	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations, will we do so? We have just sent the invites but we forgotten who to send them to. We should sent invites to Great Britian,France,Japan,Italy and China." 
   picture = "news_paper"

   action_a = {
      name = "We will send the invites!"
	  ai_chance = 80
	  command = { type = setflag which = Invites sent}
   }
}
}

###########Invites sent to nations:Reponse.########
event = {
   id = 900002
   country = FRA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900001
	 flag = Allied Forces
	flag = Invites sent
	 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	}
	
   name = "Allied Forces needs backers France choice"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. France have just been given an invite for this. What is our resposne?" 
   picture = "news_paper"

   action_a = {
      name = "Oui! We will join!"
	  ai_chance = 80
	  command = { type = setflag which = Oui}
   }
   
   action_b = {
      name = "Non! We will not join!"
	  ai_chance = 20
	  command = { type = setflag which = non}
   }
}
event = {
   id = 900004
   country = ENG
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900001
	 flag = Allied Forces
	flag = Invites sent
	
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers UK choice"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. The UK have just been given an invite for this. What is our resposne?" 
   picture = "news_paper"

   action_a = {
      name = "Yes! We will join!"
	  ai_chance = 80
	  command = { type = setflag which = Yes}
   }
   
   action_b = {
      name = "No! We will not join!"
	  ai_chance = 20
	  command = { type = setflag which = No}
   }
}
event = {
   id = 900005
   country = ITA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900001
	and = { flag = Allied Forces
	flag = Invites sent
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers Italy choice"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. Italy have just been given an invite for this. What is our resposne?" 
   picture = "news_paper"

   action_a = {
      name = "Si! We will join!"
	  ai_chance = 80
	  command = { type = setflag which = si}
   }
   
   action_b = {
      name = "No! We will not join!"
	  ai_chance = 20
	  command = { type = setflag which = no}
   }
}
#########################Backers countup####################
event = {
   id = 900006
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	
	and = { flag = Allied Forces
	flag = Invites sent
	flag = oui
	flag = Yes
	flag = si
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }
flag = non
flag = No
flag = no	
}
	} 
   name = "Allied Forces needs backers All agreed!"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. We have full backing with everyone! We can now proceed with the plan!
   picture = "news_paper"

   action_a = {
      name = "Ok let get ready."
	  command = { type = setflag which = Final} # Final Stages of intergration.
command = { type = clrflag which = oui} #no longer needed
     command = { type = clrflag which = non} #no longer needed
	  command = { type = clrflag which = si} #no longer needed
	  command = { type = clrflag which = no} #no longer needed
	  command = { type = clrflag which = Yes} #no longer needed
	  command = { type = clrflag which = No} #no longer needed
	  command = { type = clrflag which = Invites Sent} #no longer needed
   }
}

event = {
   id = 900007
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	
	and = { flag = Allied Forces
	flag = Invites sent
	flag = non
	flag = No
	flag = no
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }
flag = oui
flag = yes
flag = si	
}
	} 
   name = "Allied Forces needs backers All refused!"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. We have no backing with anyone! We cannout countine!
   picture = "news_paper"

   action_a = {
      name = "At least we have tried."
	  command = { type = clrflag which = Allied Forces}
	  command = { type = clrflag which = Invites Sent}
	  command = { type = clrflag which = oui}
     command = { type = clrflag which = non} 
	  command = { type = clrflag which = si}
	  command = { type = clrflag which = no}
	  command = { type = clrflag which = Yes}
	  command = { type = clrflag which = No}

   }
}
#####################Nations says yes######################
event = {
   id = 900003
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900002
	and = { flag = Allied Forces
	flag = Invites sent
	flag = oui
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers France says yes!"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. France have just said yes!" 
   picture = "news_paper"

   action_a = {
      name = "Great!"
	  
   }
   
}

event = {
   id = 900008
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900004
	and = { flag = Allied Forces
	flag = Invites sent
	flag = yes
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers UK says yes!"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. UK have just said yes!" 
   picture = "news_paper"

   action_a = {
      name = "Great!"
	  
   }
   
}

event = {
   id = 900009
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900005
	and = { flag = Allied Forces
	flag = Invites sent
	flag = si
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers Italy says yes!"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. Italy have just said yes!" 
   picture = "news_paper"

   action_a = {
      name = "Great!"
	  
   }
   
}
###############Nations says no.################
event = {
   id = 900010
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900002
	and = { flag = Allied Forces
	flag = Invites sent
	flag = non
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers France says no!"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. France have just said no!" 
   picture = "news_paper"

   action_a = {
      name = "Damn!"
	  
   }
   
}

event = {
   id = 900011
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900002
	and = { flag = Allied Forces
	flag = Invites sent
	flag = No
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers UK says no!"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. UK have just said No!" 
   picture = "news_paper"

   action_a = {
      name = "Damn!"
	  
   }
   
}

event = {
   id = 900012
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900002
	and = { flag = Allied Forces
	flag = Invites sent
	flag = no
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers Italy says no!"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. Italy have just said no!" 
   picture = "news_paper"

   action_a = {
      name = "Damn!"
	  
   }
   
}
event = {
   id = 900013
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900006
	and = { flag = Allied Forces
	flag = Final
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Final peperations"
   desc = "With the nations ready to support each other, it is aproccing the final stages. The Allied Forces is ready to take flight. However we now need to prepare a flag.We have 2 designs to go for. what will it be? the one on the left? or the one on the right?" 
   picture = "Allied_Flag"

   action_a = {
      name = "One of the left(RA2-3)"
	  
   }
   
   action_b = {
      name = "One of the right(RA1)"
	  
   }
   
}
 

MartinBG

Darkest Hour Developer
2 Badges
Nov 16, 2007
5.634
257
  • Hearts of Iron II: Beta
  • Hearts of Iron IV Sign-up
You have at least 2 extra } (after the first and the second events). You'll be able to catch those by yourself easy if you use better formatting (indents and so) and a good text editor (Notepad++ is excellent for this job)

Another problem (not a crash one, but a problem nevertheless) is that you have many actions with just name defined. These are invalid and an event with just one such action will never fire. If there is a valid action + invalid one only the valid will be visible. To have a valid empty actions you should add and empty command to those ( command = {} ). Alternatively there is a new setting in misc.txt that does that for you but it is useful only if you're making a complete new events mod as its effect must be considered in all events.
 

Lyrecryer

Back by Unpopular Demand!
85 Badges
Feb 27, 2010
2.074
13
  • Cities: Skylines - After Dark
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars
  • Crusader Kings II: Horse Lords
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Victoria 2
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cradle of Civilization
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Europa Universalis III Complete
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis III Complete
  • Europa Universalis 4: Emperor
Well now it's saying "ERROR: UNKNOWN IHS IN GAME-EVENT"

What does this mean? It keeps appearing all the time.
 

Lyrecryer

Back by Unpopular Demand!
85 Badges
Feb 27, 2010
2.074
13
  • Cities: Skylines - After Dark
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars
  • Crusader Kings II: Horse Lords
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Victoria 2
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cradle of Civilization
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Europa Universalis III Complete
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis III Complete
  • Europa Universalis 4: Emperor
ah I was wondering if I should have used underscores instead of spaces.

ooh kay what gone wrong this time?:
14o61ds.png
 
Last edited:

Lyrecryer

Back by Unpopular Demand!
85 Badges
Feb 27, 2010
2.074
13
  • Cities: Skylines - After Dark
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars
  • Crusader Kings II: Horse Lords
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Victoria 2
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cradle of Civilization
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Europa Universalis III Complete
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis III Complete
  • Europa Universalis 4: Emperor
no really how do i fix this? the file only 552 lines long. Oh god what happen I am not good with computer.
 

Sgt. Optimus

Major
18 Badges
Nov 12, 2006
679
0
36
  • Europa Universalis IV: El Dorado
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Golden Century
  • Europa Universalis IV: Dharma
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Crusader Kings II
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Europa Universalis IV
  • Europa Universalis III
  • 500k Club
  • Stellaris Sign-up
I have no choice but to hijack this thread, so here goes:

Is there a way to create an event or a decision that defines which flag should specific country get based on it's puppet status?

To make thing a bit more clear, here's what I was going for, I found a flag of Albanian Kingdom, Italian protectorate to be precise, and this flag is specific only for this period of albanian history, since it became nazi puppet afterwards, again with different flag.

I think I found this plausible somewhere on this forum but I'm not 100% sure...

The reason why I'm asking is, I found amusement in creating historical flags set on specific period of time, like Independent State of Croatia or Japanese puppet China without changing the TAGs or creating whole new nations.

Thanks!
 
Last edited:

^_AC_^

Field Marshal
84 Badges
Feb 24, 2009
5.695
327
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Magicka
  • Leviathan: Warships
  • Knights of Pen and Paper +1 Edition
  • Victoria 2: Heart of Darkness
  • War of the Roses
  • Hearts of Iron IV Sign-up
  • Europa Universalis III Complete
  • The Showdown Effect
  • Warlock 2: The Exiled
  • Crusader Kings II: Conclave
  • 500k Club
  • Stellaris
  • Europa Universalis IV: El Dorado
  • Prison Architect
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Imperator: Rome Sign Up
  • Europa Universalis IV: Common Sense
  • Stellaris: Ancient Relics
  • Knights of Pen and Paper 2
  • Europa Universalis IV: Cossacks
  • Hearts of Iron IV: Cadet
  • Surviving Mars
  • Cities: Skylines - Green Cities
  • Europa Universalis IV: Cradle of Civilization
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Europa Universalis IV: Dharma
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Stellaris Sign-up
  • Europa Universalis IV: Golden Century
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Imperator: Rome Deluxe Edition
For example, something like this (untested):

Code:
event = {
	id = 1234321
	random = no
	country = ALB
	style = 2
	
	trigger = {
		puppet = { country = ALB country = ITA }
		NOT = { local_flag = ALB_ITA_PUPPET }
	}
	
	date = { day = 1 month = january year = 1936 }
	offset = 30
	deathdate = { day = 30 month = december year = 1963 }
	
	name = "A new Flag"
	desc = "A new Flag"
	
	action_a = {
		name = "Great!"
		command = { type = flag_ext where = ALB which = "_ITA_PUPPET" }
		command = { type = local_setflag which = ALB_ITA_PUPPET }
	}
}
 

Lyrecryer

Back by Unpopular Demand!
85 Badges
Feb 27, 2010
2.074
13
  • Cities: Skylines - After Dark
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars
  • Crusader Kings II: Horse Lords
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Victoria 2
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cradle of Civilization
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Europa Universalis III Complete
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis III Complete
  • Europa Universalis 4: Emperor
I am still having the same errors...
Code:
###################ALLIED FORCES EVENTS################
###################USA SUGGESTS UNITY#####################

event = {
   id = 900000 
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "USA starts Allied Forces preparations"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations, will we do so?" 
   picture = "news_paper"

   action_a = {
      name = "The world needs protecting! Send the Invites!"
	  command = { type = setflag which = Allied_Forces}}
}

###########USA SENDS THE OFFER########
event = {
   id = 900001
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	flag = Allied_Forces
	event = 900000 	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations, will we do so? We have just sent the invites but we forgotten who to send them to. We should sent invites to Great Britain,France,Japan,Italy and China." 
   picture = "news_paper"

   action_a = {
      name = "We will send the invites!"
	  ai_chance = 80
	  command = { type = setflag which = Invites_sent}
   }
}


###########Invites_sent to nations:Response.########
event = {
   id = 900002
   country = FRA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900001
	 flag = Allied_Forces
	flag = Invites_sent
	 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	}
	
   name = "Allied Forces needs backers France choice"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. France have just been given an invite for this. What is our response?" 
   picture = "news_paper"

   action_a = {
      name = "Oui! We will join!"
	  ai_chance = 80
	  command = { type = setflag which = Oui}
   }
   
   action_b = {
      name = "Non! We will not join!"
	  ai_chance = 20
	  command = { type = setflag which = non}
   }
}
event = {
   id = 900004
   country = ENG
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900001
	 flag = Allied_Forces
	flag = Invites_sent
	
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers UK choice"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. The UK have just been given an invite for this. What is our response?" 
   picture = "news_paper"

   action_a = {
      name = "Yes! We will join!"
	  ai_chance = 80
	  command = { type = setflag which = Yes}
   }
   
   action_b = {
      name = "No! We will not join!"
	  ai_chance = 20
	  command = { type = setflag which = No}
   }
}
event = {
   id = 900005
   country = ITA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900001
	and = { flag = Allied_Forces
	flag = Invites_sent
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers Italy choice"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. Italy have just been given an invite for this. What is our resposne?" 
   picture = "news_paper"

   action_a = {
      name = "Si! We will join!"
	  ai_chance = 80
	  command = { type = setflag which = si}
   }
   
   action_b = {
      name = "No! We will not join!"
	  ai_chance = 20
	  command = { type = setflag which = no}
   }
}
#########################Backers count up####################
event = {
   id = 900006
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = oui
	flag = Yes
	flag = si
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }
flag = non
flag = No
flag = no	
}
	} 
   name = "Allied Forces needs backers All agreed!"
   desc = "We have full backing with everyone! We can now proceed with the plan!
   picture = "news_paper"

   action_a = {
      name = "Ok let get ready."
	  command = { type = setflag which = Final} # Final Stages of integration.
command = { type = clrflag which = oui} #no longer needed
     command = { type = clrflag which = non} #no longer needed
	  command = { type = clrflag which = si} #no longer needed
	  command = { type = clrflag which = no} #no longer needed
	  command = { type = clrflag which = Yes} #no longer needed
	  command = { type = clrflag which = No} #no longer needed
	  command = { type = clrflag which = Invites_Sent} #no longer needed
   }
}

event = {
   id = 900007
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = non
	flag = No
	flag = no
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }
flag = oui
flag = yes
flag = si	
}
	} 
   name = "Allied Forces needs backers All refused!"
   desc = "We have no backing with anyone! We cannot continue!
   picture = "news_paper"

   action_a = {
      name = "At least we have tried."
	  command = { type = clrflag which = Allied_Forces}
	  command = { type = clrflag which = Invites_Sent}
	  command = { type = clrflag which = oui}
     command = { type = clrflag which = non} 
	  command = { type = clrflag which = si}
	  command = { type = clrflag which = no}
	  command = { type = clrflag which = Yes}
	  command = { type = clrflag which = No}

   }
}
#####################Nations says yes######################
event = {
   id = 900003
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 							
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900002
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = oui
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers France says yes!"
   desc = "France have just said yes!" 
   picture = "news_paper"

   action_a = {
      name = "Great!"
	  command = {}
	  
   }
   
}

event = {
   id = 900008
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900004
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = yes
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers UK says yes!"
   desc = "UK have just said yes!" 
   picture = "news_paper"

   action_a = {
      name = "Great!"
	  command = {}
   }
   
}

event = {
   id = 900009
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900005
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = si
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers Italy says yes!"
   desc = "Italy have just said yes!" 
   picture = "news_paper"

   action_a = {
      name = "Great!"
	  command = {}
   }
   
}
###############Nations says no.################
event = {
   id = 900010
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900002
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = non
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers France says no!"
   desc = "France have just said no!" 
   picture = "news_paper"

   action_a = {
      name = "Damn!"
	  command = {}
   }
   
}

event = {
   id = 900011
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900002
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = No
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers UK says no!"
   desc = " UK have just said No!" 
   picture = "news_paper"

   action_a = {
      name = "Damn!"
	  command = {}
   }
   
}

event = {
   id = 900012
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900002
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = no
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers Italy says no!"
   desc = "Italy have just said no!" 
   picture = "news_paper"

   action_a = {
      name = "Damn!"
	  command = {}
   }
   
}
event = {
   id = 900013
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1937 } 									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	event = 900006
	and = { flag = Allied_Forces
	flag = Final
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Final perpetrations"
   desc = "With the nations ready to support each other, it is approaching the final stages. The Allied Forces is ready to take flight. However we now need to prepare a flag.We have 2 designs to go for. what will it be? the one on the left? or the one on the right?" 
   picture = "Allied_Flag"

   action_a = {
      name = "One of the left(RA2-3)"
	  command = {}
   }
   
   action_b = {
      name = "One of the right(RA1)"
	  command = {}
   }
   
}
 

ewphoenix123

Darkest Hour Cartographer
10 Badges
Apr 26, 2007
817
1
  • Arsenal of Democracy
  • Cities in Motion
  • Crusader Kings II
  • Europa Universalis III
  • Divine Wind
  • Hearts of Iron III
  • Sword of the Stars
  • Sword of the Stars II
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
In event 900001 you have one option with an ai chance of 80, which is quite strange, maybe adding another option b, with 20% AI chance...so it will fire properly?

Tim

Doesn't matter anymore in DH. You don't need to reach 100% in total.

Only thing i can suggest is. get notepadd++ which supports syntax farbcoding and check if you have all brackets set properly, also as said above test each event indivdually.
 

Lyrecryer

Back by Unpopular Demand!
85 Badges
Feb 27, 2010
2.074
13
  • Cities: Skylines - After Dark
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sword of the Stars
  • Crusader Kings II: Horse Lords
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Victoria 2
  • 500k Club
  • Stellaris: Leviathans Story Pack
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cradle of Civilization
  • Knights of Pen and Paper 2
  • Crusader Kings II: Conclave
  • Hearts of Iron IV: No Step Back
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV Sign-up
  • Stellaris Sign-up
  • Hearts of Iron IV: Cadet
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Hearts of Iron IV: Together for Victory
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Cities: Skylines - Parklife
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Prison Architect
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Cities: Skylines - Mass Transit
  • Europa Universalis IV: Mandate of Heaven
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Third Rome
  • Surviving Mars
  • Europa Universalis III Complete
  • Hearts of Iron IV: Death or Dishonor
  • Europa Universalis III Complete
  • Europa Universalis 4: Emperor
ok now it seems to freeze up with no error whatsoever.

Code:
###################ALLIED FORCES EVENTS################
###################USA SUGGESTS UNITY#####################

event = {
   id = 900000 
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1930 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces preparations"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations, will we do so?" 
   picture = "news_paper"

   action_a = {
      name = "The world needs protecting! Send the Invites!"
	  command = { type = setflag which = Allied_Forces}}
}

###########USA SENDS THE OFFER########


event = {
   id = 900001
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1930 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	flag = Allied_Forces
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Allied Forces needs backers"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations, will we do so? We have just sent the invites but we forgotten who to send them to. We should sent invites to Great Britain,France,Japan,Italy and China." 
   picture = "news_paper"

   action_a = {
      name = "We will send the invites!"
	  command = { type = setflag which = Invites_sent}
   }
}


###########Invites_sent to nations:Response.########


event = {
   id = 900002
   country = FRA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1930 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	 flag = Allied_Forces
	flag = Invites_sent
	 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	}
	
   name = "France choice"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. France have just been given an invite for this. What is our response?" 
   picture = "news_paper"

   action_a = {
      name = "Oui! We will join!"
	  ai_chance = 99
	  command = { type = setflag which = Oui}
   }
   
   action_b = {
      name = "Non! We will not join!"
	  ai_chance = 1
	  command = { type = setflag which = non}
   }
}
event = {
   id = 900004
   country = ENG
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1930 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	 flag = Allied_Forces
	flag = Invites_sent
	
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "UK choice"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. The UK have just been given an invite for this. What is our response?" 
   picture = "news_paper"

   action_a = {
      name = "Yes! We will join!"
	  ai_chance = 99
	  command = { type = setflag which = Yes}
   }
   
   action_b = {
      name = "No! We will not join!"
	  ai_chance = 1
	  command = { type = setflag which = No}
   }
}
event = {
   id = 900005
   country = ITA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1930 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	and = { flag = Allied_Forces
	flag = Invites_sent
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Italy choice"
   desc = "The United States of America have chosen to start a new army under the Allied Forces flag. While the flag is not yet ready, the idea of the plan is already underway, however it is unlikely that this will succeed unless help is given from other nations. Italy have just been given an invite for this. What is our resposne?" 
   picture = "news_paper"

   action_a = {
      name = "Si! We will join!"
	  ai_chance = 99
	  command = { type = setflag which = si}
   }
   
   action_b = {
      name = "No! We will not join!"
	  ai_chance = 1
	  command = { type = setflag which = no}
   }
}
#########################Backers count up####################
event = {
   id = 900006
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1930 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = oui
	flag = Yes
	flag = si
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }
flag = non
flag = No
flag = no	
}
	} 
   name = " All agreed!"
   desc = "We have full backing with everyone! We can now proceed with the plan!
   picture = "news_paper"

   action_a = {
      name = "Ok let get ready."
	  command = { type = setflag which = Final} # Final Stages of integration.
command = { type = clrflag which = oui} #no longer needed
     command = { type = clrflag which = non} #no longer needed
	  command = { type = clrflag which = si} #no longer needed
	  command = { type = clrflag which = no} #no longer needed
	  command = { type = clrflag which = Yes} #no longer needed
	  command = { type = clrflag which = No} #no longer needed
	  command = { type = clrflag which = Invites_Sent} #no longer needed
   }
}

event = {
   id = 900007
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1930 } 	
	offset = 5									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	
	and = { flag = Allied_Forces
	flag = Invites_sent
	flag = non
	flag = No
	flag = no
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }
flag = oui
flag = yes
flag = si	
}
	} 
   name = "All refused!"
   desc = "We have no backing with anyone! We cannot continue!
   picture = "news_paper"

   action_a = {
      name = "At least we have tried."
	  command = { type = clrflag which = Allied_Forces}
	  command = { type = clrflag which = Invites_Sent}
	  command = { type = clrflag which = oui}
     command = { type = clrflag which = non} 
	  command = { type = clrflag which = si}
	  command = { type = clrflag which = no}
	  command = { type = clrflag which = Yes}
	  command = { type = clrflag which = No}

   }
}
event = {
   id = 900013
   country = USA
   random = no
   date = { hour = 5 day = 15 month = 2 year = 1930 } 									
	deathdate = { hour = 23 day = 29 month = 12 year = 2000 }	
	trigger = { 
	exists = USA
	exists = ENG
	exists = FRA
	exists = ITA
	exists = SOV
	and = { flag = Allied_Forces
	flag = Final
	} 
	
	not = { 
war = { country =SOV  country = FRA }
war = { country =SOV  country = ENG }
war = { country =SOV  country = USA }
war = { country =SOV  country = ITA }	
}
	} 
   name = "Final perpetrations"
   desc = "With the nations ready to support each other, it is approaching the final stages. The Allied Forces is ready to take flight. However we now need to prepare a flag.We have 2 designs to go for. what will it be? the one on the left? or the one on the right?" 
   picture = "Allied_Flag"

   action_a = {
      name = "One of the left(RA2-3)"
	  command = {}
   }
   
   action_b = {
      name = "One of the right(RA1)"
	  command = {}
   }
   
}