Actually, the code is correct. The event should fire for you, if no country can be found that matches all these criteria
- exists
- is convener
- has not voted
- is not Emperor
Since you ARE Emperor, it should not prevent the event from firing.
Did you have the global flag "HRE_reformation_war"?
Try this code:
Code:
# feedback- approved - no strings attached
country_event = {
id = 287043
major = yes
trigger = {
is_emperor = yes
EMP = {
has_country_flag = IMA_pending
NOT = { has_country_flag = reichsregiment }
NOT = { check_variable = { which = demand_for_reichsregiment value = 6 } }
check_variable = { which = IMA_votes value = 0 }
}
NOT = { has_global_flag = HRE_reformation_war }
}
mean_time_to_happen = {
months = 6
modifier = {
factor = 100
hre_region = {
NOT = { owned_by = THIS }
owner = {
has_country_flag = convener
NOT = { has_country_flag = IMA_vote_cast }
}
}
}
}
title = "RTAPPROV"
desc = "EVTDESC287043"
immediate = { EMP = { clr_country_flag = IMA_pending } }
option = { #Execute
name = "GOOD2"
ai_chance = { factor = 100 }
set_global_flag = enabled_IMA
prestige = 0.05
change_variable = { which = hre_standing value = 10 }
EMP = {
relation = { who = THIS value = 10 }
prestige = 0.03
}
capital_scope = { remove_province_modifier = institution_pending }
}
}
# feedback - demand for reichsregiment
country_event = {
id = 287044
trigger = {
is_emperor = yes
EMP = {
has_country_flag = IMA_pending
NOT = { has_country_flag = reichsregiment }
check_variable = { which = demand_for_reichsregiment value = 6 }
check_variable = { which = IMA_votes value = 0 }
}
NOT = { has_global_flag = HRE_reformation_war }
}
mean_time_to_happen = {
months = 6
modifier = {
factor = 100
hre_region = {
NOT = { owned_by = THIS }
owner = {
has_country_flag = convener
NOT = { has_country_flag = IMA_vote_cast }
}
}
}
}
title = "EVTNAME287044"
desc = "EVTDESC287044"
immediate = { EMP = { clr_country_flag = IMA_pending } }
option = {
name = "EVTOPTA287044"
ai_chance = { factor = 100 }
set_global_flag = enabled_IMA
prestige = 0.05
change_variable = { which = hre_standing value = 10 }
EMP = {
relation = { who = THIS value = 10 }
set_country_flag = reichsregiment
prestige = 0.03
add_country_modifier = {
name = "reichsregiment"
duration = -1
}
}
1757 = {
add_province_modifier = {
name = "rrg_established"
duration = -1
}
}
capital_scope = { remove_province_modifier = institution_pending }
any_country = {
limit = { ai = no has_country_flag = notify_hre }
country_event = 285751
}
}
option = {
name = "EVTOPTB287044"
ai_chance = { factor = 0 }
prestige = -0.1
change_variable = { which = hre_standing value = -10 }
EMP = {
relation = { who = THIS value = -10 }
prestige = -0.3
set_country_flag = reichsregiment_refused
}
capital_scope = { remove_province_modifier = institution_pending }
set_country_flag = reichsregiment_refused
}
}