######################################## # Events for Hungary # # written by Johan Andersson ######################################## namespace = flavor_hun normal_or_historical_nations = yes # Diet of 1445 country_event = { id = flavor_hun.1 title = flavor_hun.1.t desc = flavor_hun.1.d picture = DEBATE_REPUBLICAN_eventPicture fire_only_once = yes trigger = { tag = HUN has_regency = yes has_consort_regency = no has_leader = "János Hunyadi" is_year = 1445 NOT = { is_year = 1470 } } mean_time_to_happen = { months = 6 } option = { ai_chance = { factor = 50 } name = flavor_hun.1.a define_ruler = { name = "(Regent) János" dynasty = "Hunyadi" DIP = 5 ADM = 4 MIL = 5 regency = yes attach_leader = "János Hunyadi" } define_heir = { name = "Ladislaus Postumus" dynasty = "von Habsburg" adm = 1 dip = 2 mil = 1 birth_date = 1440.2.22 } every_country = { limit = { NOT = { tag = ROOT } dynasty = "von Habsburg" } add_opinion = { who = root modifier = hun_habsburgs_spurned } } add_estate_loyalty = { estate = estate_nobles loyalty = 10 } } option = { name = flavor_hun.1.b ai_chance = { factor = 50 } add_stability_or_adm_power = yes define_heir = { name = "Ladislaus Postumus" dynasty = "von Habsburg" adm = 3 dip = 3 mil = 2 birth_date = 1440.2.22 } add_estate_loyalty = { estate = estate_nobles loyalty = -15 } } } # Mattias Corvinus or an Habsburg king 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 } is_subject = no 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_or_adm_power = yes 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 } } } } } # Union with Hungary country_event = { id = flavor_hun.3 title = flavor_hun.3.t desc = flavor_hun.3.d picture = DIPLOMACY_eventPicture fire_only_once = yes is_triggered_only = yes option = { name = flavor_hun.3.a add_legitimacy = 5 add_prestige = 5 } } # The Hungarian Throne country_event = { id = flavor_hun.10 title = flavor_hun.10.t desc = flavor_hun.10.d picture = DIPLOMACY_eventPicture is_triggered_only = yes option = { name = flavor_hun.10.a add_casus_belli = { target = HUN type = cb_restore_personal_union months = 120 } } } # Administrative and Social Reforms of Mathias Corvinus country_event = { id = flavor_hun.4 title = flavor_hun.4.t desc = flavor_hun.4.d picture = REFORM_eventPicture fire_only_once = yes trigger = { tag = HUN is_year = 1466 NOT = { is_year = 1470 } has_regency = no dynasty = "Hunyadi" } mean_time_to_happen = { months = 18 } option = { ai_chance = { factor = 50 } name = flavor_hun.4.a add_adm_power = 100 random_owned_province = { add_base_tax = 1 } } option = { ai_chance = { factor = 50 } name = flavor_hun.4.b add_stability_or_adm_power = yes random_owned_province = { add_base_manpower = 1 } } } # Academia Istropolitana country_event = { id = flavor_hun.5 title = flavor_hun.5.t desc = flavor_hun.5.d picture = UNIVERSITY_eventPicture fire_only_once = yes trigger = { tag = HUN is_year = 1465 has_regency = no owns = 1772 #Pressburg dynasty = "Hunyadi" religion = catholic } mean_time_to_happen = { months = 12 } option = { name = flavor_hun.5.a add_prestige = 10 add_papal_influence = 10 } } # Printing Press in Buda country_event = { id = flavor_hun.6 title = flavor_hun.6.t desc = flavor_hun.6.d picture = INVENTION_eventPicture fire_only_once = yes trigger = { tag = HUN is_year = 1473 NOT = { is_year = 1500 } } mean_time_to_happen = { months = 12 } option = { name = flavor_hun.6.a add_adm_power = 50 } } # Decline of Royal Power country_event = { id = flavor_hun.7 title = flavor_hun.7.t desc = flavor_hun.7.d picture = COURT_eventPicture fire_only_once = yes trigger = { tag = HUN is_year = 1490 NOT = { is_year = 1530 } is_neighbor_of = TUR has_regency = no NOT = { ADM = 5 } } mean_time_to_happen = { months = 12 } option = { name = flavor_hun.7.a add_ruler_modifier = { name = hun_power_to_magnates } add_estate_loyalty = { estate = estate_nobles loyalty = 15 } } option = { name = flavor_hun.7.b add_stability = -3 random_owned_province = { noble_rebels = 2 } add_estate_loyalty = { estate = estate_nobles loyalty = -25 } } } # Elizabeth Bathory country_event = { id = flavor_hun.8 title = flavor_hun.8.t desc = flavor_hun.8.d picture = ANGRY_MOB_eventPicture fire_only_once = yes trigger = { tag = HUN is_year = 1614 NOT = { is_year = 1620 } government = monarchy } mean_time_to_happen = { months = 12 } option = { name = flavor_hun.8.a if = { limit = { is_lesser_in_union = yes } add_prestige = -10 } if = { limit = { is_lesser_in_union = no } add_legitimacy = -10 } } option = { name = flavor_hun.8.b add_stability = -1 } } #Advance of the Turks. country_event = { id = flavor_hun.9 title = flavor_hun.9.t desc = flavor_hun.9.d picture = BATTLE_eventPicture fire_only_once = yes trigger = { tag = HUN truce_with = TUR exists = HAB HAB = { dynasty = "von Habsburg" } TUR = { any_owned_province = { OR = { area = alfold_area area = transdanubia_area } previous_owner = HUN } } NOT = { is_year = 1600 } } mean_time_to_happen = { months = 12 } option = { name = flavor_hun.9.a every_owned_province = { limit = { NOT = { is_core = TRA } OR = { province_id = 156 province_id = 157 province_id = 158 province_id = 1951 province_id = 1952 } } add_core = TRA } every_owned_province = { limit = { NOT = { is_core = TRA } } add_claim = HAB } } } #Hungarian Peasant Revolt country_event = { id = flavor_hun.11 title = flavor_hun.11.t desc = flavor_hun.11.d picture = BATTLE_eventPicture fire_only_once = yes trigger = { tag = HUN NOT = { stability = 3 } has_ruler_modifier = hun_power_to_magnates } mean_time_to_happen = { months = 60 } immediate = { hidden_effect = { random_owned_province = { limit = { is_capital = no culture = hungarian } set_province_flag = hun_peasant_revolt random_neighbor_province = { limit = { is_capital = no } set_province_flag = hun_peasant_revolt2 } random_neighbor_province = { limit = { is_capital = no not = { has_province_flag = hun_peasant_revolt } } set_province_flag = hun_peasant_revolt2 } } } } option = { name = flavor_hun.11.a #Ok. random_owned_province = { limit = { has_province_flag = hun_peasant_revolt } spawn_rebels = { type = anti_tax_rebels size = 2 leader = "György Dózsa" } clr_province_flag = hun_peasant_revolt } every_owned_province = { limit = { has_province_flag = hun_peasant_revolt2 } spawn_rebels = { type = anti_tax_rebels size = 1 } clr_province_flag = hun_peasant_revolt2 } } } #Tamás Bakócz country_event = { id = flavor_hun.12 title = flavor_hun.12.t desc = flavor_hun.12.d picture = ADVISOR_eventPicture fire_only_once = yes trigger = { tag = HUN is_year = 1490 NOT = { is_year = 1520 } } mean_time_to_happen = { months = 90 } option = { name = flavor_hun.12.a add_adm_power = 100 add_prestige = 5 define_advisor = { type = statesman name = "Tamás Bakócz" discount = yes skill = 2 } if = { limit = { exists = HAB } HAB = { add_opinion = { who = HUN modifier = hun_bakocz_foreign_policy } } hidden_effect = { add_opinion = { who = HAB modifier = hun_bakocz_foreign_policy } } } } }
prostownik11