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

Limith

Modding for Myself
18 Badges
Apr 7, 2010
3.742
369
  • Darkest Hour
  • Deus Vult
  • East India Company
  • Europa Universalis III Complete
  • Divine Wind
  • Crusader Kings II
  • Heir to the Throne
  • Rome: Vae Victis
  • Rome Gold
  • Sword of the Stars
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Stellaris Sign-up
  • 500k Club
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis IV
It would be much appreciated if someone could tell me why the below event doesn't actually result in the game ending (it crashes the game afterwards upon reaching scenario end/the game continues if I put an earlier date). The event does fire, so I'm sure the triggers are fine, unless endgame can only be used with vp = XX triggers.

Code:
event = {
	id = 11013
	random = no
	country = JAP
	
	trigger = {
		or = {
		control = { province = 1551 data = JAP }
		control = { province = 1552 data = JAP }
		control = { province = 1558 data = JAP }
		control = { province = 1559 data = JAP }
		}
		or = {
		not = { control = { province = 1551 data = JAP } }
		not = { control = { province = 1552 data = JAP } }
		not = { control = { province = 1558 data = JAP } }
		not = { control = { province = 1559 data = JAP } }
		}
		
	}
	
	style = 0
	name = "Britannian Advance Halted"
	desc = "While we might not have managed to beat the Britannians back, our success in beating the Britannian knightmares with conventional weapons has encouraged other superpowers such as the Chinese Federation and Euro Universe to declare war on Britannia."
	
	date = { day = 3 month = january year = 1958 }
	offset = 1
	deathdate = { day = 3 month = january year = 1958 }
	
	action = {
		name = "It is only a matter of time before allied help arrives."
		command = { type = endgame value = 2 }
		}
	
}