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

unmerged(17893)

Internet Made Me Stupid
Jun 30, 2003
3.262
0
Visit site
Db\events\hoi2.txt:

Code:
#########################################################################
#  Surrender events - USA surrenders to Germany
#########################################################################

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

	name = EVT_14_NAME
	desc = EVT_14_DESC
        picture = "american_surrender"
	style = 0

	trigger = {
		control = { province = 606 data = GER } #DC
		control = { province = 608 data = GER } #Philly
		control = { province = 602 data = GER } #New York
		control = { province = 603 data = GER } #Newark
		control = { province = 600 data = GER } #Boston
		control = { province = 614 data = GER } #Pittsburgh
		lost_national = { country = USA value = 35 }
		lost_IC = { country = USA value = 40 }
		NOT = {
			war = { country = ENG country = GER }
		}
		NOT = {
			war = { country = SOV country = GER }
		}
		random = 50
	}

Code:
#########################################################################
#  Surrender events - USA surrenders to Japan
#########################################################################

event = {
	id = 15
	random = no
	country = JAP

	name = EVT_15_NAME
	desc = EVT_15_DESC
        picture = "american_surrender"
	style = 0

	trigger = {
		war = { country = JAP country = USA }
		
		control = { province = 761 data = JAP } #San Diego
		control = { province = 762 data = JAP } #Los Angeles
		control = { province = 765 data = JAP } #San Francisco
		control = { province = 764 data = JAP } #Sacramento
		control = { province = 783 data = JAP } #Portland
		control = { province = 780 data = JAP } #Seattle
		control = { province = 1624 data = JAP } # Guam
		control = { province = 662 data = JAP } # Midway
		control = { province = 1786 data = JAP } # Wake
		control = { province = 661 data = JAP } # Nihau
		control = { province = 660 data = JAP } # Kauai
		control = { province = 663 data = JAP } # Pearl Harbor
		control = { province = 659 data = JAP } # Maui
		control = { province = 658 data = JAP } # Hawaii
		control = { province = 1756 data = JAP } # Samoa
		control = { province = 1762 data = JAP } # Phoenix
		control = { province = 1766 data = JAP } # Johnson
		control = { province = 1408 data = JAP } # Attu
		control = { province = 543 data = JAP } # Amchitka
		control = { province = 542 data = JAP } # Kiska
		control = { province = 544 data = JAP } # Andreanof
		control = { province = 1764 data = JAP } # 
		control = { province = 1765 data = JAP } # 
		#lost_VP = { country = USA value = 75 }
		#lost_IC = { country = USA value = 75 }
		NOT = { 
			war = { country = JAP country = SOV }
			war = { country = JAP country = ENG }
			}
		random = 50
	}
 

Onlyhestands

First Lieutenant
37 Badges
Dec 30, 2007
224
0
  • Crusader Kings II
  • Lead and Gold
  • Darkest Hour
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Hearts of Iron Anthology
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Stellaris: Necroids
  • Stellaris: Federations
  • Stellaris: Lithoids
  • Stellaris: Ancient Relics
  • Prison Architect
  • Crusader Kings II: Holy Fury
  • Stellaris: Megacorp
  • Cities: Skylines Industries
  • Stellaris: Distant Stars
  • Stellaris: Apocalypse
  • Stellaris: Humanoids Species Pack
  • Cities: Skylines - Mass Transit
  • Stellaris - Path to Destruction bundle
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • 500k Club
  • Stellaris: Synthetic Dawn
  • Imperator: Rome
  • Cities: Skylines
  • Crusader Kings II: The Republic
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: Charlemagne
Posting lines of code without an explanation isn't very helpful.
To surrender to Germany:
Germany must own Dc, Philadelphia, New York, Newark, Boston, and Pittsburg.

Surrender to Japan:

Japan must own all the provinces in the second event posted.


Also note in the surrender to Germany, Germany can't be at war with Britain or the Soviets.
For the surrender to Japan it’s the same deal but with Japan not being at war witht the Soviets or Britain.

The events are kinda naf, your better off annexing the Usa. and releasing nations if you feel so inclined.