• 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.

lionhead

Colonel
1 Badges
Dec 1, 2006
1.127
0
  • Hearts of Iron IV Sign-up
Hi, i have a reuest from osmeone who know how to edit events properly.

See, i just had a game playing as USA, it 1944 and i have Africa retaken, taken most of Italy and i have taken the whole of France, Holland, Blgium, Luxembourg back nd als have about half of Germany taken.

But, difference is that German forces have pushed the Soviets back to the Oeral monutains, having taken Leningrad and Moscow fully and getting very clse to Stalingrad.

But, once i took berlin and was well underway of Poland nad hoping i could go well into Russia the "Germany surrenders" event fired.

I found it very annoying to find out the Soviet Union just gets all his land back again and being allowed the ability to fight against the remaining Axis countries(Finland, which is quickly puppetized, Romania, Hungary)

What i want, is change the Germany surrenders Event that says that it won't fire if Moscow or Leningrad is in German hands.... As i don't think its correct Hitler would surrender if his armies in the east are doing so well.

But i couldn't find that event and even if i did i wouldn't know how to edit it properly.
 

Captain Frakas

Field Marshal
13 Badges
Apr 10, 2002
7.140
3.813
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Semper Fi
  • Victoria 2
  • 500k Club
  • Hearts of Iron II: Beta
In the original event (event 38 in hoi2.txt) :
(in bold, the lines to add
Code:
	trigger = {
		random = 25
		war = { country = GER country = USA }
		war = { country = GER country = FRA }
		war = { country = GER country = ENG }
		war = { country = GER country = SOV }
[b]		lost_national = { country = GER value = 100 }
		NOT = { lost_national = { country = SOV value = 10 } }	[/b]
		OR = {
			control = { province = 56 data = USA }
			control = { province = 56 data = FRA }
			control = { province = 56 data = ENG }
		}
		NOT = {
			control = { province = 300 data = GER } # Berlin
		}
[b]		OR = { 
			control = { province = 187 data = SOV } # Leningrad 
			control = { province = 163 data = SOV } # Stalingrad
			control = { province = 175 data = SOV } # Moscow		
			control = { province = 1907 data = SOV } # Baku
			control = { province = 1572 data = SOV } # Sverdlovsk
			control = { province = 238 data = SOV } # Kiev			
			control = { province = 212 data = SOV } # Minsk
		}[/b]

	}

That should limit the original event to the cases where USSR have at least liberated most of it's provinces.

Then you can create another event...

Code:
#German surrender if USSR is kaput.

event = {
	id = 99990
	random = no
	country = GER

	name = EVT_38_NAME
	desc = EVT_38_DESC
	style = 0
	picture = "ger_surrender"

	trigger = {
		random = 25
		war = { country = GER country = USA }
		war = { country = GER country = FRA }
		war = { country = GER country = ENG }
		OR = {
			war = { country = GER country = SOV }
			event = 2625 #bitter peace japan out axis
			event = 2646 #bitter peace japan in axis
		}
		lost_national = { country = GER value = 100 }
		lost_national = { country = SOV value = 10 }	
		OR = {
			control = { province = 56 data = USA }
			control = { province = 56 data = FRA }
			control = { province = 56 data = ENG }
		}
		NOT = {
			control = { province = 300 data = GER } # Berlin
			OR = { 
				control = { province = 187 data = SOV } # Leningrad 
				control = { province = 163 data = SOV } # Stalingrad
				control = { province = 175 data = SOV } # Moscow	
				control = { province = 1907 data = SOV } # Baku
				control = { province = 1572 data = SOV } # Sverdlovsk
				control = { province = 238 data = SOV } # Kiev
				control = { province = 212 data = SOV } # Minsk
			}
		}
	}

        date = { day = 0 month = january year = 1939 }
        offset = 5
	deathdate = { day = 29 month = december year = 1964 }

	action_a = {
		ai_chance = 90
		name = EVT_38_ACTA
		#liberate west conquest
		command = { type = independence which = LUX value = 1 when = 1	}
		command = { type = independence which = DEN value = 1 when = 1  }
		command = { type = independence which = NOR value = 1 when = 1  }
		command = { type = independence which = SWE value = 1 when = 1  }
		command = { type = independence which = FRA value = 1 when = 1  }
		command = { type = independence which = HOL value = 1 when = 1  }
		command = { type = independence which = BEL value = 1 when = 1  }
		command = { type = independence which = SPA value = 1 when = 1  }
		command = { type = independence which = AUS value = 1 when = 1  }
		command = { type = independence which = TUR value = 1 when = 1  }
		command = { type = independence which = GRE value = 1 when = 1  }
		command = { type = independence which = YUG value = 1 when = 1  }
		command = { type = independence which = ITA value = 1 when = 1  }
		command = { type = independence which = ALB value = 1 when = 1  }
		command = { type = independence which = POR value = 1 when = 1  }
		command = { type = independence which = SCH value = 1 when = 1  }

		#liberate east conquest
		command = { type = independence which = POL value = 1 when = 1	}
		command = { type = independence which = CZE value = 1 when = 1  }
		command = { type = independence which = LIT value = 1 when = 1  }
		command = { type = independence which = LAT value = 1 when = 1  }
		command = { type = independence which = EST value = 1 when = 1  }
		command = { type = independence which = GRE value = 1 when = 1  }
		command = { type = independence which = FIN value = 1 when = 1  }
		command = { type = independence which = UKR value = 1 when = 1	}
		command = { type = independence which = BLR value = 1 when = 1  }
		command = { type = independence which = ROM value = 1 when = 1  }
		command = { type = independence which = HUN value = 1 when = 1  }
		command = { type = independence which = BUL value = 1 when = 1  }
		command = { type = independence which = RUS value = 1 when = 1  }

		#liberate west conquest
		command = { type = end_mastery which = LUX }
		command = { type = end_mastery which = DEN }
		command = { type = end_mastery which = NOR }
		command = { type = end_mastery which = SWE }
		command = { type = end_mastery which = FRA }
		command = { type = end_mastery which = HOL }
		command = { type = end_mastery which = BEL }
		command = { type = end_mastery which = SPA }
		command = { type = end_mastery which = AUS }
		command = { type = end_mastery which = TUR }
		command = { type = end_mastery which = GRE }
		command = { type = end_mastery which = YUG }
		command = { type = end_mastery which = ITA }
		command = { type = end_mastery which = ALB }
		command = { type = end_mastery which = POR }
		command = { type = end_mastery which = SCH }

		#liberate east conquest
		command = { type = end_mastery which = UKR }
		command = { type = end_mastery which = BLR }
		command = { type = end_mastery which = ROM }
		command = { type = end_mastery which = HUN }
		command = { type = end_mastery which = BUL }
		command = { type = end_mastery which = GRE }
		command = { type = end_mastery which = CZE }
		command = { type = end_mastery which = POL }
		command = { type = end_mastery which = LIT }
		command = { type = end_mastery which = LAT }
		command = { type = end_mastery which = EST }
		command = { type = end_mastery which = FIN }
		command = { type = end_mastery which = RUS }
		command = { type = trigger which = 99991 } #Morgenthau plan



	}
	action_b = {
		ai_chance = 10
		name = EVT_38_ACTB
		command = { type = sleepevent which = 39 }
		command = { type = sleepevent which = 40 }
		command = { type = sleepevent which = 41 }
		command = { type = sleepevent which = 42 }
		command = { type = dissent value = 10 }
		command = { type = domestic which = political_left value = -1 }
		command = { type = domestic which = freedom value = -1 }
		command = { type = domestic which = democratic value = -1 }
		command = { type = domestic which = defense_lobby value = 1 }
	}
}

event = {
	id = 99991
	random = no
	country = GER
	style = 0

	name = EVT_38_NAME
	desc = EVT_38_DESC
	style = 0
	picture = "ger_surrender"

	# triggered by Ger 99990

	action_a = {
		name = "OK"
		# Saar to France.
		command = { type = secedeprovince which = FRA value = 74 } #Saarbruken
		# Alsace Moselle to France
		command = { type = secedeprovince which = FRA value = 72 } #Metz
		command = { type = secedeprovince which = FRA value = 73 } # Strasbourg
		command = { type = secedeprovince which = FRA value = 316 } #Mulhouse
		# Sudetten to Cze
		command = { type = secedeprovince which = CZE value = 471 } #Usti
		command = { type = secedeprovince which = CZE value = 472 } #Liberek
		command = { type = secedeprovince which = CZE value = 466 } #Strakonice
		command = { type = secedeprovince which = CZE value = 467 } #Tabor
		# East prussia to Poland
		command = { type = secedeprovince which = POL value = 303 } #Danzig
		command = { type = secedeprovince which = POL value = 304 } #Eblin
		command = { type = secedeprovince which = POL value = 510 } #Koeningsberg
		command = { type = secedeprovince which = POL value = 305 } #Torun
		command = { type = secedeprovince which = POL value = 306 } #Bigozs
		command = { type = secedeprovince which = POL value = 307 } #Poznan
		command = { type = secedeprovince which = POL value = 509 } #Sulwaki
		# Upper Silesia to Poland
		command = { type = secedeprovince which = POL value = 473 } #Bresl
		command = { type = secedeprovince which = POL value = 482 } #Oppen
		# Memel to Lithuania
		command = { type = secedeprovince which = LIT value = 206 } #Oppen

		command = { type = trigger which = 99992 } #Germany annexed.
		}
	}

event = {
	id = 99992
	random = no
	country = USA
	style = 0

	name = EVT_40_NAME
	desc = EVT_40_DESC
	style = 0
	picture = "ger_surrender"

	# triggered by German event 99992

	action_a = {
		name = "OK"
		command = { type = inherit which = GER } #Germany annexed.
		}
	}

There are more things to do (like the partition of germany http://en.wikipedia.org/wiki/Morgenthau_plan , or the immediate DOW of USSR vs new east european states : UKR, BEL), but I think it's a good start...
 
Last edited:

lionhead

Colonel
1 Badges
Dec 1, 2006
1.127
0
  • Hearts of Iron IV Sign-up
Wow, thats great. thanks a lot!

but, what does that new event mean?
 

pluto_cfc

Second Lieutenant
Nov 27, 2006
175
0
There're two version of Germany surrender (one is West has Paris, one is Soviet has Paris), but both events remapped Europe to cold war map in RL.

However, the partition of Europe directly relies on the power balance between US and USSR. If Soviet has good progress pushing French coast, the Western Europe should be under iron curtain. If the western army is pushing East, the Wehrmacht will collapse with home captured, and the Eastern Europe geopolitics should be favorable for the Western alliance.
 

Captain Frakas

Field Marshal
13 Badges
Apr 10, 2002
7.140
3.813
  • Cities in Motion
  • Crusader Kings II
  • Crusader Kings II: The Old Gods
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Semper Fi
  • Victoria 2
  • 500k Club
  • Hearts of Iron II: Beta
lionhead said:
but, what does that new event mean?

If germany is defeated in west by the allies but isn't in east versus USSR, then, when allies have the total control of germany, all german conquest in the east will be granted freedom under democratic governements (this include, if they are under german control, Ukraine, Bielorussia and even Russia). The provinces under the control of soviet union will stay into the USSR.
 

lionhead

Colonel
1 Badges
Dec 1, 2006
1.127
0
  • Hearts of Iron IV Sign-up
Aha, great. thanks a lot.
 

ozman2

General
4 Badges
Nov 30, 2005
1.843
1
  • Arsenal of Democracy
  • 500k Club
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Expansion Pass
I advocate an even bigger edit, requiring the USSR to have control of both Warsaw and Prague to deserve a part of Eastern Europe

Captain Frakas I like your idea of "German surrender if USSR is kaput"
I'll put it in my mod and give you credit.

event = {
id = 38
random = no
country = GER

name = EVT_38_NAME
desc = EVT_38_DESC
style = 0
picture = "ger_surrender"

trigger = {
random = 25
war = { country = GER country = USA }
war = { country = GER country = FRA }
war = { country = GER country = ENG }
war = { country = GER country = SOV }
lost_national = { country = GER value = 70 }
OR = {
control = { province = 56 data = USA }
control = { province = 56 data = FRA }
control = { province = 56 data = ENG }
}
NOT = { control = { province = 300 data = GER } }# Berlin
# SOV must deserve its share otherwise Western allies should annex when they can
OR = {
control = { province = 469 data = SOV }
AND = {
control = { province = 469 data = CZE }
puppet = { country = CZE country = SOV }
}
}
OR = {
control = { province = 485 data = SOV }
AND = {
control = { province = 485 data = POL }
puppet = { country = POL country = SOV }
}
}
}

date = { day = 0 month = january year = 1939 }
offset = 5
deathdate = { day = 29 month = december year = 1953 }

action_a = {
ai_chance = 90
name = EVT_38_ACTA
command = { type = independence which = LUX value = 1 when = 1 }
command = { type = independence which = DEN value = 1 when = 1 }
command = { type = independence which = NOR value = 1 when = 1 }
command = { type = independence which = SWE value = 1 when = 1 }
command = { type = independence which = FRA value = 1 when = 1 }
command = { type = independence which = HOL value = 1 when = 1 }
command = { type = independence which = BEL value = 1 when = 1 }
command = { type = independence which = SPA value = 1 when = 1 }
command = { type = independence which = AUS value = 1 when = 1 }
command = { type = independence which = TUR value = 1 when = 1 }
command = { type = independence which = GRE value = 1 when = 1 }
command = { type = independence which = YUG value = 1 when = 1 }
command = { type = independence which = ITA value = 1 when = 1 }
command = { type = independence which = ALB value = 1 when = 1 }
command = { type = end_mastery which = LUX }
command = { type = end_mastery which = DEN }
command = { type = end_mastery which = NOR }
command = { type = end_mastery which = SWE }
command = { type = end_mastery which = FRA }
command = { type = end_mastery which = HOL }
command = { type = end_mastery which = BEL }
command = { type = end_mastery which = SPA }
command = { type = end_mastery which = HUN }
command = { type = end_mastery which = AUS }
command = { type = end_mastery which = POL }
command = { type = end_mastery which = LIT }
command = { type = end_mastery which = LAT }
command = { type = end_mastery which = EST }
command = { type = end_mastery which = CZE }
command = { type = end_mastery which = BUL }
command = { type = end_mastery which = TUR }
command = { type = end_mastery which = ROM }
command = { type = end_mastery which = GRE }
command = { type = end_mastery which = ALB }
# Transfer Poland & Czechoslakia to Soviet control
command = { type = secedeprovince which = SOV value = 303 } # Poland
command = { type = secedeprovince which = SOV value = 306 }
command = { type = secedeprovince which = SOV value = 307 }
command = { type = secedeprovince which = SOV value = 479 }
command = { type = secedeprovince which = SOV value = 480 }
command = { type = secedeprovince which = SOV value = 481 }
command = { type = secedeprovince which = SOV value = 483 }
command = { type = secedeprovince which = SOV value = 484 }
command = { type = secedeprovince which = SOV value = 305 }
command = { type = secedeprovince which = SOV value = 485 }
command = { type = secedeprovince which = SOV value = 486 }
command = { type = secedeprovince which = SOV value = 487 }
command = { type = secedeprovince which = SOV value = 489 }
command = { type = secedeprovince which = SOV value = 488 }
command = { type = secedeprovince which = SOV value = 500 }
command = { type = secedeprovince which = SOV value = 501 }
command = { type = secedeprovince which = SOV value = 502 }
command = { type = secedeprovince which = SOV value = 503 }
command = { type = secedeprovince which = SOV value = 504 }
command = { type = secedeprovince which = SOV value = 505 }
command = { type = secedeprovince which = SOV value = 506 }
command = { type = secedeprovince which = SOV value = 507 }
command = { type = secedeprovince which = SOV value = 508 }
command = { type = secedeprovince which = SOV value = 509 }
command = { type = secedeprovince which = SOV value = 209 }
command = { type = secedeprovince which = SOV value = 208 }
command = { type = secedeprovince which = SOV value = 213 }
command = { type = secedeprovince which = SOV value = 211 }
command = { type = secedeprovince which = SOV value = 210 }
command = { type = secedeprovince which = SOV value = 222 }
command = { type = secedeprovince which = SOV value = 229 }
command = { type = secedeprovince which = SOV value = 562 }
command = { type = secedeprovince which = SOV value = 214 }
command = { type = secedeprovince which = SOV value = 471 } # Czechoslovakia
command = { type = secedeprovince which = SOV value = 472 }
command = { type = secedeprovince which = SOV value = 466 }
command = { type = secedeprovince which = SOV value = 470 }
command = { type = secedeprovince which = SOV value = 469 }
command = { type = secedeprovince which = SOV value = 468 }
command = { type = secedeprovince which = SOV value = 474 }
command = { type = secedeprovince which = SOV value = 475 }
command = { type = secedeprovince which = SOV value = 478 }
command = { type = secedeprovince which = SOV value = 477 }
command = { type = secedeprovince which = SOV value = 490 }
command = { type = secedeprovince which = SOV value = 499 }
command = { type = secedeprovince which = SOV value = 476 }
command = { type = secedeprovince which = SOV value = 467 }
# Transfer eastern Germany to Soviets
command = { type = secedeprovince which = SOV value = 298 }
command = { type = secedeprovince which = SOV value = 299 }
command = { type = secedeprovince which = SOV value = 300 }
command = { type = secedeprovince which = SOV value = 301 }
command = { type = secedeprovince which = SOV value = 206 }
command = { type = secedeprovince which = SOV value = 296 }
command = { type = secedeprovince which = SOV value = 297 }
command = { type = secedeprovince which = SOV value = 310 }
command = { type = secedeprovince which = SOV value = 309 }
command = { type = secedeprovince which = SOV value = 311 }
command = { type = secedeprovince which = SOV value = 473 }
command = { type = secedeprovince which = SOV value = 482 }
command = { type = secedeprovince which = SOV value = 308 }
command = { type = secedeprovince which = SOV value = 302 }
command = { type = secedeprovince which = SOV value = 304 }
command = { type = secedeprovince which = SOV value = 510 }
# Transfer western Germany to France, UK and USA
command = { type = secedeprovince which = USA value = 80 }
command = { type = secedeprovince which = USA value = 81 }
command = { type = secedeprovince which = USA value = 82 }
command = { type = secedeprovince which = USA value = 83 }
command = { type = secedeprovince which = USA value = 84 }
command = { type = secedeprovince which = USA value = 85 }
command = { type = secedeprovince which = USA value = 86 }
command = { type = secedeprovince which = USA value = 87 }
command = { type = secedeprovince which = USA value = 88 }
command = { type = secedeprovince which = USA value = 89 }
command = { type = secedeprovince which = USA value = 90 }
command = { type = secedeprovince which = USA value = 312 }
command = { type = secedeprovince which = USA value = 313 }
command = { type = secedeprovince which = USA value = 314 }
command = { type = secedeprovince which = USA value = 315 }
command = { type = secedeprovince which = USA value = 375 }
command = { type = secedeprovince which = USA value = 376 }
command = { type = secedeprovince which = USA value = 374 }
command = { type = secedeprovince which = USA value = 76 }
command = { type = secedeprovince which = USA value = 67 }
command = { type = secedeprovince which = USA value = 75 }
command = { type = secedeprovince which = USA value = 74 }
command = { type = secedeprovince which = USA value = 66 }

command = { type = secedeprovince which = FRA value = 72 }
command = { type = secedeprovince which = FRA value = 73 }
command = { type = secedeprovince which = FRA value = 316 }
# Trigger events for US, UK, France and USSR
command = { type = trigger which = 40 }
command = { type = domestic which = defense_lobby value = -2 }
}
action_b = {
ai_chance = 10
name = EVT_38_ACTB
command = { type = sleepevent which = 39 }
command = { type = sleepevent which = 40 }
command = { type = sleepevent which = 41 }
command = { type = sleepevent which = 42 }
command = { type = dissent value = 10 }
command = { type = domestic which = political_left value = -1 }
command = { type = domestic which = freedom value = -1 }
command = { type = domestic which = democratic value = -1 }
command = { type = domestic which = defense_lobby value = 1 }
}
}
 
Last edited: