• 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
15 Badges
May 21, 2001
1.367
20
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
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: La Resistance
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
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 }
}
}
 
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
	}