Whats wrong with event?
If i remove the offset the game starts normally but crashes on January 2. If i add an offset the event never fires even if the conditions are met. Province 359 is Tirana.
I've tried with both owned nad controll trigers btw.
####################################
# Greece prepares for war 2
######################################
event = {
id = 2269012
random = no
country = GRE
style = 2
trigger = {
owned = { province = 359 = ITA }
NOT = {
policy = { type = professional_army value = 7 }
alliance = { country = GRE country = ITA }
alliance = { country = GRE country = GER }
}
}
name = "We will be next"
desc = "The annexation of neighboring Albania left no doubt for Italy's ambitions. Their continued provocations, military preparations and constant encroachment on the Balkans made it clear to the Greek high command that war was imminent. Mobilization plan 1939B was secretly put into effect."
picture = "Metaxas"
date = { day = 2 month = january year = 1936 }
offset = 20
deathdate = { day = 29 month = september year = 1944 }
action_a = {
ai_chance = 100
name = "The Italians are in for a surprise(partial mobilization)"
command = { type = set_domestic which = professional_army value = 7 }
command = { type = resource which = supplies value = -500 }
command = { type = relation which = ITA value = -10 }
command = { trigger = { NOT = { local_flag = MOB3 } } type = manpowerpool value = 2.5 when = 1 }
command = { trigger = { NOT = { local_flag = MOB4 } } type = manpowerpool value = 4 when = 1 }
command = { trigger = { NOT = { local_flag = MOB5 } } type = manpowerpool value = 4.5 when = 1 }
command = { trigger = { NOT = { local_flag = MOB6 } } type = manpowerpool value = 5 when = 1 }
command = { trigger = { NOT = { local_flag = MOB7 } } type = manpowerpool value = 15 when = 1 }
command = { type = local_setflag which = MOB7 }
command = { type = local_setflag which = MOB6 }
command = { type = local_setflag which = MOB5 }
command = { type = local_setflag which = MOB4 }
command = { type = local_setflag which = MOB3 }
}
action_b = {
ai_chance = 0
name = "The Duce is a man of peace"
command = { type = domestic which = interventionism value = -1 }
command = { type = relation which = ITA value = 10 }
}
}
If i remove the offset the game starts normally but crashes on January 2. If i add an offset the event never fires even if the conditions are met. Province 359 is Tirana.
I've tried with both owned nad controll trigers btw.
####################################
# Greece prepares for war 2
######################################
event = {
id = 2269012
random = no
country = GRE
style = 2
trigger = {
owned = { province = 359 = ITA }
NOT = {
policy = { type = professional_army value = 7 }
alliance = { country = GRE country = ITA }
alliance = { country = GRE country = GER }
}
}
name = "We will be next"
desc = "The annexation of neighboring Albania left no doubt for Italy's ambitions. Their continued provocations, military preparations and constant encroachment on the Balkans made it clear to the Greek high command that war was imminent. Mobilization plan 1939B was secretly put into effect."
picture = "Metaxas"
date = { day = 2 month = january year = 1936 }
offset = 20
deathdate = { day = 29 month = september year = 1944 }
action_a = {
ai_chance = 100
name = "The Italians are in for a surprise(partial mobilization)"
command = { type = set_domestic which = professional_army value = 7 }
command = { type = resource which = supplies value = -500 }
command = { type = relation which = ITA value = -10 }
command = { trigger = { NOT = { local_flag = MOB3 } } type = manpowerpool value = 2.5 when = 1 }
command = { trigger = { NOT = { local_flag = MOB4 } } type = manpowerpool value = 4 when = 1 }
command = { trigger = { NOT = { local_flag = MOB5 } } type = manpowerpool value = 4.5 when = 1 }
command = { trigger = { NOT = { local_flag = MOB6 } } type = manpowerpool value = 5 when = 1 }
command = { trigger = { NOT = { local_flag = MOB7 } } type = manpowerpool value = 15 when = 1 }
command = { type = local_setflag which = MOB7 }
command = { type = local_setflag which = MOB6 }
command = { type = local_setflag which = MOB5 }
command = { type = local_setflag which = MOB4 }
command = { type = local_setflag which = MOB3 }
}
action_b = {
ai_chance = 0
name = "The Duce is a man of peace"
command = { type = domestic which = interventionism value = -1 }
command = { type = relation which = ITA value = 10 }
}
}