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

Chaim Kaufmann

Lt. General
8 Badges
May 21, 2001
1.305
1
Visit site
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Iron Cross
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
Playing as U.S., annexed Japan and liberated KOR. Event 48 immediately created PRK, undesirable since SOV had already signed a bitter peace with GER and was nowhere near.

Wrote this, modeled on event 12 (SOV inherit TAN), used it to replace the original 48 in hoi2.txt so that that could not fire again and undo the effect. Re-started and fired it through the console. Tried both as KOR "event 48 tag KOR" and as USA "event 48." No effect either way.

# Replacement event to get rid of PRK
event = {
id = 48
random = no
country = KOR

name = EVT_48_NAME
desc = EVT_48_DESC
picture = "korea"
style = 0

# Trigger manually

action_a = {
name = EVT_48_ACTA
command = { type = inherit which = PRK } # North Korea
command = { type = sleepevent which = 45 }
command = { type = sleepevent which = 46 }
command = { type = sleepevent which = 47 }
command = { type = sleepevent which = 49 }
}
}
 

Sid Meier

Time Lord
88 Badges
May 4, 2005
5.853
157
  • Europa Universalis IV: El Dorado
  • Europa Universalis III Complete
  • Naval War: Arctic Circle
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Europa Universalis: Rome
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Warlock: Master of the Arcane
  • 500k Club
  • Europa Universalis III: Collection
  • Magicka
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Stellaris
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Stellaris: Nemesis
  • Europa Universalis III: Chronicles
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Arsenal of Democracy
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • For the Motherland
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Europa Universalis III Complete
I'll pitch in also with my own event that doesn't seem to be working...

Code:
#########################################################################
#  Germany has overrun us!
#########################################################################
event = {
	id = 919199
	random = no
	country = CZE

	# Triggered by
	trigger = {
		war = { country = GER country = CZE }
		lost_national = { country = CZE value = 30 }
		OR = {
			control = { province = 207 data = GER }
			control = { province = 207 data = ITA }
			control = { province = 207 data = HUN }
			control = { province = 207 data = POL }
			control = { province = 207 data = ROM }
		}
		NOT = {
			control = { province = 207 data = CZE } # Prague
		}
	}
	
	name = "Germany has overrun us!"
	desc = "Surrender!"
	style = 0
	picture = "romanian_soldier"

	action_a = {
		# Seventy two units are deleted:
		command = { type = leave_alliance }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		command = { type = delete_unit which = -1 }
		#
		command = { type = independence which = SLO value = 1 }
		command = { type = end_mastery which = SLO }
		command = { type = secedeprovince which = HUN value = 210 }
		command = { type = secedeprovince which = HUN value = 209 }
		command = { type = secedeprovince which = HUN value = 215 }
		command = { type = secedeprovince which = HUN value = 213 }
		command = { type = secedeprovince which = POL value = 203 }
		command = { type = trigger which = 919200 } # FRA give them Czech-in-exile.
		command = { type = trigger which = 919201 } #Get Italy off its ass.
		command = { type = trigger which = 919202 } #Get Japan off its.
		command = { type = trigger which = 919204 } #Ally SLO and GER
	}