Am I reading the event wrong? shouldnt every country with a Habsburg ruler get the CB ? I didnt get it.
Code:
country_event = {
id = flavor_hun.2
title = flavor_hun.2.t
desc = flavor_hun.2.d
picture = ELECTION_REPUBLICAN_eventPicture
fire_only_once = yes
trigger = {
tag = HUN
is_year = 1450
NOT = { is_year = 1457 }
has_heir = no
has_regency = no
dynasty = "von Habsburg"
NOT = { num_of_unions = 1 }
any_country = {
is_subject = no
government = monarchy
has_regency = no
dynasty = "von Habsburg"
}
}
mean_time_to_happen = {
months = 1
}
option = {
ai_chance = { factor = 75 }
name = flavor_hun.2.a
remove_historical_friend = HAB
HAB = { remove_historical_friend = HUN }
define_heir = {
name = "Mátyás"
dynasty = "Hunyadi"
adm = 4
dip = 5
mil = 5
claim = 25
birth_date = 1443.2.23
}
kill_ruler = yes
every_country = {
limit = {
NOT = { tag = ROOT }
government = monarchy
has_regency = no
dynasty = "von Habsburg"
}
tooltip = {
add_casus_belli = {
target = HUN
type = cb_restore_personal_union
months = 60
}
}
hidden_effect = {
country_event = { id = flavor_hun.10 days = 1 }
}
}
}
option = {
name = flavor_hun.2.b
ai_chance = { factor = 25 }
add_stability = 1
random_country = {
limit = {
is_subject = no
government = monarchy
dynasty = "von Habsburg"
has_regency = no
}
create_union = HUN
hidden_effect = {
country_event = { id = flavor_hun.3 days = 1 }
}
}
}
}
- 2