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

Raczynski

Beautiful and Unique Snowflake
76 Badges
Jan 2, 2002
2.437
337
Visit site
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Europa Universalis IV: El Dorado
  • Mount & Blade: With Fire and Sword
  • 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
  • Victoria 2: Heart of Darkness
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings Complete
  • Europa Universalis IV: Third Rome
  • Hearts of Iron IV: Death or Dishonor
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Art of War
  • 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: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Crusader Kings II
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Europa Universalis: Rome
  • Victoria 2
Could someone check this events... They won't fire for me :(
Code:
### Generalfeldmarshal Walther von Brauchitsch retire

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

	trigger = {
		random = 80
		}

	date = { year = 1941 month = december day = 1 }
	offset = 1
	deathdate = { year = 1941 month = december day = 30 }

	name = "EVT_108_NAME"
	desc = "EVT_108_DESC"
	picture = "minister_resign"

	action_a = {
		name = "OK"
                                     command = { type = sleepleader which = 282 }
                                     command = { type = sleepminister which = 174 }
}


		}
	}


### Generalfeldmarshal Gerd von Rundstedt retire

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

	trigger = {
		random = 80
		}

	date = { year = 1945 month = march day = 1 }
	offset = 1
	deathdate = { year = 1945 month = march day = 30 }

	name = "EVT_108_NAME"
	desc = "EVT_108_DESC"
	picture = "minister_resign"

	action_a = {
		name = "OK"
                                     command = { type = sleepleader which = 335 }
}


		}
	}


#Ludwik Beck is sacked by Hitler

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

	trigger = {
		random = 95
		}

	date = { year = 1938 month = may day = 6 }
	offset = 1
	deathdate = { year = 1938 month = may day = 30 }

	name = "EVT_362_NAME"
	desc = "EVT_362_DESC"
	picture = "minister_resign"

	action_a = {
		name = "YES"
		ai_chance = 90
		command = { type = sleepminister which = 7 }
		command = { type = sleepleader which = 798 }
		command = { type = chiefofstaff which = 155 }
		}
	action_b = {
		name = "NO"
		ai_chance = 10
		command = { }
		}
	}


#Generalfeldmarshal Fedor von Bock dies in allied air raid

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

	trigger = {
		random = 60
		war = { country = GER country = ENG }
		}

	date = { year = 1945 month = may day = 2 }
	offset = 1
	deathdate = { year = 1945 month = may day = 3 }

	name = "EVT_106_NAME"
	desc = "EVT_106_DESC"
	picture = "minister_died"

	action_a = {
		name = "OK"
		command = { type = sleepleader which = 279 }
		}
	}
}
 

Ghost_dk

Chief of all Ghost Divisions
5 Badges
Feb 6, 2003
2.353
0
Visit site
  • Europa Universalis III
  • 500k Club
  • Hearts of Iron II: Beta
  • Rise of Prussia
  • Mount & Blade: Warband
ZanzibarGuy said:
Maybe because you say random = no, then assign a random value to it?

No thats not it. The the two random commands work completely different,so he has that right.

there seems to be one too many close brackets at the end of each event and you should try setting the deathdate to day 29 as the days are counted 0-29 not 1-30