I have an event chain that fires every january and july to represent Chinese-German training and raw materials deals prewar. The events works great until Germany is at war. Once one of the events tries to fire with Germany at war the game freezes on the morning of the event (although the event box never display). Oddly it still lets me give orders and interact with units but it stays stuck on the same hour and I can't save the game so I have to dump out to windows and start again.
Can anyone help with this problem? I know the brackets are all correct because the events fire perfectly until Germany goes to war. I am convinced the problem lies in the trigger.
I have tried
NOT = { war = { country = GER country = ENG } }
and
NOT = { OR = { war = { country = GER country = ENG } } }
but both have the same result.
Any help would be dearly appreciated. The full version of the first event is below;
event = {
id = 9001208
random = no
country = CHI
trigger = {
exists = GER
NOT = { atwar = GER }
}
name = "German / Chinese Trade"
desc = "Germany and China have a technology for raw materials deal. Do we continue it?"
picture = "Sian_Inicident"
date = { day = 2 month = january year = 1936 }
deathdate = { day = 12 month = march year = 1999 }
action_a = {
ai_chance = 99
name = "Good."
command = { type = trigger which = 9001209 }
command = { type = relation which = GER value = 10 }
}
action_b = {
ai_chance = 1
name = "Never mind!"
command = { type = sleepevent which = 9001211 }
command = { type = sleepevent which = 9001212 }
command = { type = sleepevent which = 9001213 }
command = { type = sleepevent which = 9001214 }
command = { type = sleepevent which = 9001215 }
command = { type = sleepevent which = 9001216 }
command = { type = sleepevent which = 9001217 }
command = { type = sleepevent which = 9001218 }
command = { type = sleepevent which = 9001219 }
command = { type = sleepevent which = 9001220 }
command = { type = sleepevent which = 9001221 }
command = { type = sleepevent which = 9001222 }
command = { type = sleepevent which = 9001223 }
command = { type = relation which = GER value = -10 }
command = { type = end_trades which = GER where = CHI }
}
}
Can anyone help with this problem? I know the brackets are all correct because the events fire perfectly until Germany goes to war. I am convinced the problem lies in the trigger.
I have tried
NOT = { war = { country = GER country = ENG } }
and
NOT = { OR = { war = { country = GER country = ENG } } }
but both have the same result.
Any help would be dearly appreciated. The full version of the first event is below;
event = {
id = 9001208
random = no
country = CHI
trigger = {
exists = GER
NOT = { atwar = GER }
}
name = "German / Chinese Trade"
desc = "Germany and China have a technology for raw materials deal. Do we continue it?"
picture = "Sian_Inicident"
date = { day = 2 month = january year = 1936 }
deathdate = { day = 12 month = march year = 1999 }
action_a = {
ai_chance = 99
name = "Good."
command = { type = trigger which = 9001209 }
command = { type = relation which = GER value = 10 }
}
action_b = {
ai_chance = 1
name = "Never mind!"
command = { type = sleepevent which = 9001211 }
command = { type = sleepevent which = 9001212 }
command = { type = sleepevent which = 9001213 }
command = { type = sleepevent which = 9001214 }
command = { type = sleepevent which = 9001215 }
command = { type = sleepevent which = 9001216 }
command = { type = sleepevent which = 9001217 }
command = { type = sleepevent which = 9001218 }
command = { type = sleepevent which = 9001219 }
command = { type = sleepevent which = 9001220 }
command = { type = sleepevent which = 9001221 }
command = { type = sleepevent which = 9001222 }
command = { type = sleepevent which = 9001223 }
command = { type = relation which = GER value = -10 }
command = { type = end_trades which = GER where = CHI }
}
}