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 }
}
}