From 26c43d4c9551576847a23e8aa462c8973041184b Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Tue, 24 Mar 2020 20:09:28 +0100 Subject: [PATCH 01/23] Clean setup --- .../objectives/000_CK2Plus_ambitions.txt | 6881 +---------------- 1 file changed, 1 insertion(+), 6880 deletions(-) diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index a8f31c4e..6ae08e46 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -2,6887 +2,8 @@ # # Plus Ambitions: # -# Total = 58 +# Total = 00 # # Sorted alphabetically # ############################## - -obj_adopt_a_lifestyle = { - type = character - - potential = { - NOT = { lifestyle_traits = 1 } - NOT = { has_character_flag = obj_adopt_a_lifestyle } - #NOT = { has_character_flag = lifestyle_pick } - } - - allow = { - prisoner = no - age = 25 - NOT = { trait = incapable } - OR = { - diplomacy = 5 - martial = 5 - intrigue = 5 - stewardship = 5 - learning = 5 - } - } - - chance = { - factor = 50 - - modifier = { - factor = 1.5 - trait = diligent - } - modifier = { - factor = 0.5 - trait = slothful - } - modifier = { - factor = 0.5 - is_ruler = yes - } - } - - creation_effect = { - if = { - limit = { ai = yes } - #add_character_modifier = { - # name = "ai_objective_timer" - # duration = 1825 - # hidden = yes - #} - set_character_flag = ai_objective_timer_flag - } - } - - success = { - lifestyle_traits = 1 - } - - abort = { - OR = { - prisoner = yes - trait = incapable - AND = { - NOT = { diplomacy = 5 } - NOT = { martial = 5 } - NOT = { intrigue = 5 } - NOT = { stewardship = 5 } - NOT = { learning = 5 } - } - #AND = { - # ai = yes - # NOT = { - # #has_character_modifier = ai_objective_timer - # had_character_flag = { - # flag = ai_objective_timer_flag - # } - # } - #} - } - } - abort_effect = { - if = { - limit = { ai = yes } - #remove_character_modifier = ai_objective_timer - clr_character_flag = ai_objective_timer_flag - } - } - effect = { - hidden_tooltip = { - if = { - limit = { ai = yes } - #remove_character_modifier = ai_objective_timer - clr_character_flag = ai_objective_timer_flag - } - } - prestige = 50 - set_character_flag = obj_adopt_a_lifestyle - } -} - -#obj_amass_wealth_2 = { -# type = character -# -# potential = { -# is_ruler = yes -# lower_tier_than = KING -# NOT = { num_of_duke_titles = 4 } -# OR = { -# tier = DUKE -# num_of_count_titles = 4 -# } -# NOT = { has_character_flag = obj_amass_wealth } -# } -# -# allow = { -# is_adult = yes -# NOT = { wealth = 500 } -# NOT = { trait = incapable } -# NOT = { trait = charitable } -# NOT = { has_character_modifier = loan_timer } -# NOT = { has_character_flag = loan_taken } -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 1.25 -# trait = fortune_builder -# } -# modifier = { -# factor = 1.25 -# trait = midas_touched -# } -# modifier = { -# factor = 10.0 -# trait = greedy -# } -# modifier = { -# factor = 0 -# trait = charitable -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# wealth = 500 -# NOT = { has_character_modifier = loan_timer } -# NOT = { has_character_flag = loan_taken } -# } -# abort = { -# OR = { -# trait = incapable -# trait = charitable -# has_character_modifier = loan_timer -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# change_variable = { which = "lifestyle_stewardship" value = 1 } -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# change_stewardship = 1 -# set_character_flag = obj_amass_wealth -# if = { -# limit = { any_vassal = { leads_faction = faction_prosperity } } -# custom_tooltip = { text = PROSPERITYFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_prosperity } set_variable = { which = "faction_mood_increase" value = 2 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# } -#} -# -#obj_amass_wealth_3 = { -# type = character -# -# potential = { -# is_ruler = yes -# lower_tier_than = EMPEROR -# NOT = { num_of_king_titles = 4 } -# OR = { -# tier = KING -# num_of_duke_titles = 4 -# } -# NOT = { has_character_flag = obj_amass_wealth } -# } -# -# allow = { -# is_adult = yes -# NOT = { wealth = 750 } -# NOT = { trait = incapable } -# NOT = { trait = charitable } -# NOT = { has_character_modifier = loan_timer } -# NOT = { has_character_flag = loan_taken } -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 1.25 -# trait = fortune_builder -# } -# modifier = { -# factor = 1.25 -# trait = midas_touched -# } -# modifier = { -# factor = 10.0 -# trait = greedy -# } -# modifier = { -# factor = 0 -# trait = charitable -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# wealth = 750 -# NOT = { has_character_modifier = loan_timer } -# NOT = { has_character_flag = loan_taken } -# } -# abort = { -# OR = { -# trait = incapable -# trait = charitable -# has_character_modifier = loan_timer -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# change_variable = { which = "lifestyle_stewardship" value = 1 } -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# change_stewardship = 1 -# set_character_flag = obj_amass_wealth -# if = { -# limit = { any_vassal = { leads_faction = faction_prosperity } } -# custom_tooltip = { text = PROSPERITYFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_prosperity } set_variable = { which = "faction_mood_increase" value = 2 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# } -#} -# -#obj_amass_wealth_4 = { -# type = character -# -# potential = { -# is_ruler = yes -# OR = { -# tier = EMPEROR -# num_of_king_titles = 4 -# } -# NOT = { has_character_flag = obj_amass_wealth } -# } -# -# allow = { -# is_adult = yes -# NOT = { wealth = 1000 } -# NOT = { trait = incapable } -# NOT = { trait = charitable } -# NOT = { has_character_modifier = loan_timer } -# NOT = { has_character_flag = loan_taken } -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 1.25 -# trait = fortune_builder -# } -# modifier = { -# factor = 1.25 -# trait = midas_touched -# } -# modifier = { -# factor = 10.0 -# trait = greedy -# } -# modifier = { -# factor = 0 -# trait = charitable -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# wealth = 1000 -# NOT = { has_character_modifier = loan_timer } -# NOT = { has_character_flag = loan_taken } -# } -# abort = { -# OR = { -# trait = incapable -# trait = charitable -# has_character_modifier = loan_timer -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# change_variable = { which = "lifestyle_stewardship" value = 1 } -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# change_stewardship = 1 -# set_character_flag = obj_amass_wealth -# if = { -# limit = { any_vassal = { leads_faction = faction_prosperity } } -# custom_tooltip = { text = PROSPERITYFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_prosperity } set_variable = { which = "faction_mood_increase" value = 2 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# } -#} -# -#obj_be_legitimized = { -# type = character -# -# potential = { -# trait = bastard -# religion_group = christian -# OR = { -# is_ruler = no -# NOR = { -# is_theocracy = yes -# trait = nun -# trait = monk -# } -# } -# NOR = { -# any_liege = { holy_order = yes } -# has_character_flag = refused_legitimacy_attempt -# } -# } -# -# allow = { -# is_adult = yes -# prisoner = no -# real_father = { -# is_alive = yes -# is_vassal_or_below = ROOT -# NOT = { reverse_has_opinion_modifier = { who = ROOT modifier = denounced_child } } -# } -# NOR = { -# age = 30 -# trait = content -# trait = humble -# trait = craven -# is_dumb_trigger = yes -# trait = incapable -# } -# } -# chance = { -# factor = 50 -# modifier = { -# factor = 0 -# is_female = yes -# is_married = yes -# spouse = { is_ruler = yes } -# NOT = { is_ruler = yes } -# } -# modifier = { -# factor = 0 -# is_ruler = yes -# current_heir = { -# is_child_of = ROOT -# dynasty = ROOT -# } -# } -# modifier = { -# factor = 0.1 -# is_female = yes -# has_law = agnatic_succession -# } -# modifier = { -# factor = 0.5 -# trait = patient -# } -# modifier = { -# factor = 0.5 -# trait = trusting -# } -# modifier = { -# factor = 0.5 -# trait = shy -# } -# modifier = { -# factor = 0.1 -# real_father = { -# NOT = { religion = ROOT } -# } -# } -# modifier = { -# factor = 5 -# is_female = no -# real_father = { -# NOT = { -# any_child = { -# NOT = { trait = bastard } -# is_older_than = ROOT -# } -# } -# } -# } -# modifier = { -# factor = 5 -# trait = ambitious -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 1.5 -# trait = proud -# } -# modifier = { -# factor = 1.5 -# trait = brave -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# NOT = { trait = bastard } -# } -# abort = { -# OR = { -# NOT = { -# real_father = { -# is_alive = yes -# ROOT = { any_liege = { character = PREVPREV } } -# NOT = { reverse_has_opinion_modifier = { who = ROOT modifier = denounced_child } } -# } -# } -# age = 45 -# trait = content -# trait = humble -# trait = craven -# trait = incapable -# trait = nun -# trait = monk -# prisoner = yes -# any_liege = { holy_order = yes } -# NOT = { religion_group = christian } -# has_character_flag = refused_legitimacy_attempt -# AND = { -# is_ruler = yes -# capital_holding = { holding_type = temple } -# } -# AND = { -# ai = yes -# is_female = yes -# is_married = yes -# spouse = { is_ruler = yes } -# } -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# change_intrigue = 1 -# prestige = 50 -# } -#} -# -#obj_become_exalted_2 = { -# type = character -# -# potential = { -# is_ruler = yes -# NOR = { -# trait = exalted2 -# trait = exalted3 -# trait = exalted4 -# } -# lower_tier_than = KING -# NOT = { num_of_duke_titles = 4 } -# OR = { -# tier = DUKE -# num_of_count_titles = 4 -# } -# } -# -# allow = { -# is_adult = yes -# prestige = 0 -# NOT = { prestige = 2000 } -# NOT = { trait = content } -# NOT = { trait = humble } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 0 -# NOT = { prestige = 500 } -# } -# modifier = { -# factor = 5.0 -# trait = ambitious -# } -# modifier = { -# factor = 10.0 -# trait = proud -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# prestige = 2000 -# } -# abort = { -# OR = { -# is_ruler = no -# NOT = { prestige = 0 } -# trait = incapable -# trait = content -# trait = humble -# trait = exalted2 -# trait = exalted3 -# trait = exalted4 -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# change_diplomacy = 1 -# prestige = 100 -# if = { -# limit = { any_vassal = { leads_faction = faction_glory } } -# custom_tooltip = { text = GLORYFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_glory } set_variable = { which = "faction_mood_increase" value = 4 } } -# } -# } -# if = { -# limit = { any_vassal = { leads_faction = faction_court } } -# custom_tooltip = { text = COURTFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 2 } } -# } -# } -# hidden_tooltip = { character_event = { id = PlusFaction.200 days = 1 } } #recalculate faction moods -# if = { -# limit = { -# has_nickname = no -# } -# give_nickname = nick_the_great -# } -# add_trait = exalted2 -# } -#} -# -#obj_become_exalted_3 = { -# type = character -# -# potential = { -# is_ruler = yes -# NOR = { -# trait = exalted3 -# trait = exalted4 -# } -# lower_tier_than = EMPEROR -# NOT = { num_of_king_titles = 4 } -# OR = { -# tier = KING -# num_of_duke_titles = 4 -# } -# } -# -# allow = { -# is_adult = yes -# prestige = 0 -# NOT = { prestige = 3000 } -# NOT = { trait = content } -# NOT = { trait = humble } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 0 -# NOT = { prestige = 1000 } -# } -# modifier = { -# factor = 5.0 -# trait = ambitious -# } -# modifier = { -# factor = 10.0 -# trait = proud -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# prestige = 3000 -# } -# abort = { -# OR = { -# is_ruler = no -# NOT = { prestige = 0 } -# trait = incapable -# trait = content -# trait = humble -# trait = exalted3 -# trait = exalted4 -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# if = { -# limit = { any_vassal = { leads_faction = faction_glory } } -# custom_tooltip = { text = GLORYFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_glory } set_variable = { which = "faction_mood_increase" value = 4 } } -# } -# } -# if = { -# limit = { any_vassal = { leads_faction = faction_court } } -# custom_tooltip = { text = COURTFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 2 } } -# } -# } -# hidden_tooltip = { character_event = { id = PlusFaction.200 days = 1 } } #recalculate faction moods -# if = { -# limit = { -# has_nickname = no -# } -# give_nickname = nick_the_great -# } -# add_trait = exalted3 -# } -#} -# -#obj_become_exalted_4 = { -# type = character -# -# potential = { -# is_ruler = yes -# NOT = { trait = exalted4 } -# OR = { -# tier = EMPEROR -# num_of_king_titles = 4 -# } -# } -# -# allow = { -# is_adult = yes -# prestige = 0 -# NOT = { prestige = 4000 } -# NOT = { trait = content } -# NOT = { trait = humble } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 0 -# trait = humble -# } -# modifier = { -# factor = 0 -# trait = content -# } -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 0 -# NOT = { prestige = 2000 } -# } -# modifier = { -# factor = 5.0 -# trait = ambitious -# } -# modifier = { -# factor = 10.0 -# trait = proud -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# prestige = 4000 -# } -# abort = { -# OR = { -# is_ruler = no -# NOT = { prestige = 0 } -# trait = incapable -# trait = content -# trait = humble -# trait = exalted4 -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# if = { -# limit = { any_vassal = { leads_faction = faction_glory } } -# custom_tooltip = { text = GLORYFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_glory } set_variable = { which = "faction_mood_increase" value = 4 } } -# } -# } -# if = { -# limit = { any_vassal = { leads_faction = faction_court } } -# custom_tooltip = { text = COURTFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 2 } } -# } -# } -# hidden_tooltip = { character_event = { id = PlusFaction.200 days = 1 } } #recalculate faction moods -# if = { -# limit = { -# has_nickname = no -# } -# give_nickname = nick_the_great -# } -# add_trait = exalted4 -# } -#} -# -#obj_become_independent = { -# type = character -# -# potential = { -# ai = no -# is_ruler = yes -# independent = no -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# is_landed = yes -# liege = { -# independent = yes -# OR = { -# is_feudal = yes -# is_tribal = yes -# } -# } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 0 -# } -# success = { -# independent = yes -# war = no -# } -# abort = { -# OR = { -# prisoner = yes -# ai = yes -# trait = incapable -# is_ruler = no -# } -# } -# abort_effect = { -# } -# effect = { -# if = { -# limit = { NOT = { has_character_flag = obj_independence } } -# prestige = 200 -# } -# if = { -# limit = { has_character_flag = obj_independence } -# prestige = 50 -# } -# set_character_flag = obj_independence -# } -#} -# -#obj_become_rank_duke = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# tier = count -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# NOT = { trait = content } -# } -# chance = { -# factor = 20 -# modifier = { -# factor = 1.5 -# demesne_size = 2 -# } -# modifier = { -# factor = 1.5 -# demesne_size = 3 -# } -# modifier = { -# factor = 1.5 -# demesne_size = 4 -# } -# modifier = { -# factor = 10 -# any_claim = { tier = DUKE } -# } -# modifier = { -# factor = 2 -# trait = ambitious -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# higher_tier_than = count -# } -# abort = { -# OR = { -# is_ruler = no -# NOT = { higher_tier_than = baron } -# trait = incapable -# trait = content -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 50 -# } -#} -# -#obj_become_rank_duke_multi = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# tier = duke -# NOT = { num_of_duke_titles = 2 } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# NOT = { trait = content } -# } -# chance = { -# factor = 20 -# modifier = { -# factor = 1.5 -# demesne_size = 2 -# } -# modifier = { -# factor = 1.5 -# demesne_size = 3 -# } -# modifier = { -# factor = 1.5 -# demesne_size = 4 -# } -# modifier = { -# factor = 1.5 -# demesne_size = 5 -# } -# modifier = { -# factor = 2 -# trait = ambitious -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# num_of_duke_titles = 2 -# } -# abort = { -# OR = { -# is_ruler = no -# NOT = { higher_tier_than = count } -# trait = incapable -# trait = content -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# } -#} -# -#obj_become_rank_emperor = { -# type = character -# -# potential = { -# ai = no -# is_ruler = yes -# is_landed = yes -# lower_tier_than = EMPEROR -# NOT = { has_character_flag = obj_increase_title_3 } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# OR = { -# primary_title = { tier = KING } -# any_claim = { tier = EMPEROR } -# liege = { -# primary_title = { -# tier = EMPEROR -# OR = { -# has_law = succ_feudal_elective -# has_law = succ_hre_elective -# AND = { -# has_law = byzantine_elective -# ROOT = { -# OR = { -# has_job_title = job_marshal -# has_minor_title = title_commander -# } -# } -# } -# } -# } -# } -# } -# } -# chance = { -# factor = 0 -# } -# success = { -# higher_tier_than = king -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# } -# } -# abort_effect = { -# } -# effect = { -# prestige = 500 -# set_character_flag = obj_increase_title_3 -# } -#} -# -#obj_become_saint = { -# type = character -# potential = { -# NOT = { has_dlc = "Holy Fury" } -# #not sure this needs the DLC clause when all this is about is "putting yourself in the best position to become a saint?" -# is_adult = yes -# prisoner = no -# is_heretic = no -# religion_group = christian -# rightful_religious_head_scope = { is_alive = yes } -# NOR = { -# has_character_flag = failed_become_saint -# trait = paragon -# trait = incapable -# trait = inbred -# trait = imbecile -# } -# } -# -# allow = { -# OR = { -# piety = 100 -# AND = { -# piety = 0 -# is_theocracy = yes -# } -# } -# OR = { -# NOT = { trait = possessed } -# has_character_modifier = voice_of_jesus -# } -# NOR = { -# trait = cynical -# trait = lunatic -# trait = excommunicated -# trait = bad_priest_christian -# } -# } -# -# chance = { -# factor = 25 -# modifier = { -# factor = 0 -# NOR = { -# trait = zealous -# trait = humble -# trait = nun -# trait = monk -# trait = desert_father -# trait = desert_mother -# trait = scholarly_theologian -# trait = mastermind_theologian -# is_theocracy = yes -# } -# } -# modifier = { -# factor = 0.1 -# OR = { -# trait = proud -# trait = ambitious -# trait = cruel -# trait = content -# } -# } -# modifier = { -# factor = 0.1 -# NOT = { trait = humble } -# } -# modifier = { -# factor = 0.5 -# trait = greedy -# } -# modifier = { -# factor = 0.5 -# trait = gluttonous -# } -# modifier = { -# factor = 0.5 -# trait = envious -# } -# modifier = { -# factor = 0.75 -# trait = wroth -# } -# modifier = { -# factor = 5 -# trait = zealous -# } -# modifier = { -# factor = 2 -# OR = { -# trait = nun -# trait = monk -# trait = desert_father -# trait = desert_mother -# } -# } -# modifier = { -# factor = 2 -# is_theocracy = yes -# } -# modifier = { -# factor = 2 -# rightful_religious_head = ROOT -# } -# modifier = { -# factor = 1.5 -# trait = celibate -# } -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 1.25 -# trait = chaste -# } -# modifier = { -# factor = 1.25 -# trait = charitable -# } -# modifier = { -# factor = 1.25 -# trait = temperate -# } -# modifier = { -# factor = 1.25 -# trait = diligent -# } -# modifier = { -# factor = 1.25 -# trait = kind -# } -# } -# -# creation_effect = { -# hidden_tooltip = { -# character_event = { id = Plus.2610 } -# } -# } -# success = { -# trait = paragon -# } -# abort = { -# OR = { -# prisoner = yes -# is_heretic = yes -# trait = incapable -# trait = cynical -# trait = lunatic -# trait = excommunicated -# trait = bad_priest_christian -# AND = { -# trait = possessed -# NOT = { has_character_modifier = voice_of_jesus } -# } -# NOT = { religion_group = christian } -# NOT = { rightful_religious_head_scope = { is_alive = yes } } -# has_character_flag = failed_become_saint -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# piety = -100 -# hidden_tooltip = { -# set_variable = { which = "theosis_ambition" value = 0 } -# clr_character_flag = sainthood_built_church -# clr_character_flag = sainthood_treat_sick -# clr_character_flag = sainthood_heal_sick -# clr_character_flag = sainthood_visit_ascetic -# clr_character_flag = sainthood_take_vows -# clr_character_flag = sainthood_too_much_wealth -# clr_character_flag = sainthood_stigmata -# clr_character_flag = sainthood_priest_support -# clr_character_flag = sainthood_priest_doubt -# clr_character_flag = sainthood_piety1 -# clr_character_flag = sainthood_piety2 -# clr_character_flag = sainthood_piety3 -# clr_character_flag = sainthood_piety4 -# clr_character_flag = sainthood_high_learning -# clr_character_flag = sainthood_high_diplomacy -# clr_character_flag = sainthood_high_martial -# clr_character_flag = sainthood_mystic -# clr_character_flag = sainthood_impaler -# clr_character_flag = sainthood_chaste -# clr_character_flag = sainthood_celibate -# clr_character_flag = sainthood_charitable -# clr_character_flag = sainthood_kind -# clr_character_flag = sainthood_humble -# clr_character_flag = sainthood_honest -# clr_character_flag = sainthood_just -# clr_character_flag = sainthood_theologian -# clr_character_flag = sainthood_voice_of_jesus -# } -# } -# effect = { -# piety = 1000 -# hidden_tooltip = { -# set_variable = { which = "theosis_ambition" value = 0 } -# clr_character_flag = sainthood_built_church -# clr_character_flag = sainthood_treat_sick -# clr_character_flag = sainthood_heal_sick -# clr_character_flag = sainthood_visit_ascetic -# clr_character_flag = sainthood_take_vows -# clr_character_flag = sainthood_too_much_wealth -# clr_character_flag = sainthood_stigmata -# clr_character_flag = sainthood_priest_support -# clr_character_flag = sainthood_priest_doubt -# clr_character_flag = sainthood_piety1 -# clr_character_flag = sainthood_piety2 -# clr_character_flag = sainthood_piety3 -# clr_character_flag = sainthood_piety4 -# clr_character_flag = sainthood_high_learning -# clr_character_flag = sainthood_high_diplomacy -# clr_character_flag = sainthood_high_martial -# clr_character_flag = sainthood_mystic -# clr_character_flag = sainthood_impaler -# clr_character_flag = sainthood_chaste -# clr_character_flag = sainthood_celibate -# clr_character_flag = sainthood_charitable -# clr_character_flag = sainthood_kind -# clr_character_flag = sainthood_humble -# clr_character_flag = sainthood_honest -# clr_character_flag = sainthood_just -# clr_character_flag = sainthood_theologian -# clr_character_flag = sainthood_voice_of_jesus -# } -# } -#} -# -#obj_befriend_liege = { -# type = character -# -# potential = { -# ai = no -# independent = no -# liege = { -# NOR = { -# is_married = ROOT -# is_lover = ROOT -# is_friend = ROOT -# is_rival = ROOT -# war_with = ROOT -# } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# liege = { -# same_sex = ROOT -# is_adult = yes -# opinion = { who = ROOT value = -25 } -# NOR = { -# trait = incapable -# num_of_friends = 3 -# opinion = { who = ROOT value = 75 } -# } -# } -# } -# -# chance = { -# factor = 0 -# } -# -# success = { -# liege = { -# opinion = { -# who = ROOT -# value = 75 -# } -# } -# } -# abort = { -# OR = { -# trait = incapable -# independent = yes -# liege = { war_with = ROOT } -# liege = { is_friend = ROOT } -# liege = { is_rival = ROOT } -# liege = { trait = incapable } -# liege = { -# num_of_friends = 2 -# NOT = { is_friend = ROOT } -# } -# NOT = { -# liege = { -# opinion = { -# who = ROOT -# value = -50 -# } -# } -# } -# NOT = { -# liege = { -# reverse_opinion = { -# who = ROOT -# value = -50 -# } -# } -# } -# } -# } -# abort_effect = { -# } -# effect = { -# liege = { -# add_friend = ROOT -# } -# if = { -# limit = { -# NOT = { has_character_flag = obj_befriend_liege } -# } -# prestige = 100 -# } -# if = { -# limit = { -# has_character_flag = obj_befriend_liege -# } -# prestige = 25 -# } -# set_character_flag = obj_befriend_liege -# } -#} -# -#obj_befriend_top_liege = { -# type = character -# -# potential = { -# ai = no -# independent = no -# top_liege = { -# NOR = { -# is_liege_of = ROOT -# is_married = ROOT -# is_lover = ROOT -# is_friend = ROOT -# is_rival = ROOT -# war_with = ROOT -# } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# top_liege = { -# same_sex = ROOT -# is_adult = yes -# opinion = { who = ROOT value = -25 } -# NOR = { -# trait = incapable -# num_of_friends = 3 -# opinion = { who = ROOT value = 75 } -# } -# } -# } -# -# chance = { -# factor = 0 -# } -# -# success = { -# top_liege = { -# opinion = { -# who = ROOT -# value = 75 -# } -# } -# } -# abort = { -# OR = { -# trait = incapable -# independent = yes -# top_liege = { war_with = ROOT } -# top_liege = { is_friend = ROOT } -# NOT = { -# top_liege = { -# opinion = { -# who = ROOT -# value = -50 -# } -# } -# } -# NOT = { -# top_liege = { -# reverse_opinion = { -# who = ROOT -# value = -50 -# } -# } -# } -# } -# } -# abort_effect = { -# } -# effect = { -# top_liege = { -# add_friend = ROOT -# } -# if = { -# limit = { -# NOT = { has_character_flag = obj_befriend_liege } -# } -# prestige = 100 -# } -# if = { -# limit = { -# has_character_flag = obj_befriend_liege -# } -# prestige = 25 -# } -# set_character_flag = obj_befriend_liege -# } -#} -# -#obj_befriend_relhead = { -# type = character -# -# potential = { -# ai = no -# religion_head = { -# is_alive = yes -# NOR = { -# is_vassal_or_below = ROOT -# is_married = ROOT -# is_lover = ROOT -# is_friend = ROOT -# is_rival = ROOT -# war_with = ROOT -# } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# religion_head = { -# same_sex = ROOT -# is_adult = yes -# opinion = { who = ROOT value = -25 } -# NOR = { -# trait = incapable -# num_of_friends = 3 -# opinion = { who = ROOT value = 75 } -# } -# } -# } -# chance = { -# factor = 0 -# } -# -# success = { -# religion_head = { -# opinion = { -# who = ROOT -# value = 75 -# } -# } -# } -# abort = { -# OR = { -# trait = incapable -# NOT = { religion_head = { is_alive = yes } } -# religion_head = { war_with = ROOT } -# religion_head = { is_friend = ROOT } -# religion_head = { -# is_liege_of = ROOT -# } -# NOT = { -# religion_head = { -# opinion = { -# who = ROOT -# value = -50 -# } -# } -# } -# NOT = { -# religion_head = { -# reverse_opinion = { -# who = ROOT -# value = -50 -# } -# } -# } -# } -# } -# abort_effect = { -# } -# effect = { -# if = { -# limit = { any_vassal = { leads_faction = faction_tradition } } -# custom_tooltip = { text = TRADITIONFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_tradition } set_variable = { which = "faction_mood_increase" value = 2 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# religion_head = { -# add_friend = ROOT -# } -# if = { -# limit = { -# NOT = { has_character_flag = obj_befriend_relhead } -# } -# piety = 100 -# } -# if = { -# limit = { -# has_character_flag = obj_befriend_relhead -# } -# piety = 25 -# } -# set_character_flag = obj_befriend_relhead -# } -#} -# -#obj_break_out_of_prison = { -# type = character -# -# potential = { -# prisoner = yes -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# } -# chance = { -# factor = 10000 -# } -# success = { -# prisoner = no -# } -# abort = { -# trait = incapable -# } -# abort_effect = { -# } -# effect = { -# change_intrigue = 1 -# set_character_flag = obj_break_out_of_prison -# } -#} -# -#obj_change_province_culture = { -# type = character -# -# potential = { -# is_ruler = yes -# any_realm_province = { -# NOR = { -# culture = ROOT -# owner = { culture = PREV } -# } -# } -# NOT = { has_character_flag = civilized_province } -# NOT = { has_law = culture_conversion_0 } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# NOT = { trait = incapable } -# } -# chance = { -# factor = 5 -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# has_character_flag = civilized_province -# } -# abort = { -# OR = { -# AND = { -# NOT = { has_character_flag = civilized_province} -# NOT = { -# any_realm_province = { -# NOR = { -# culture = ROOT -# owner = { culture = PREV } -# } -# } -# } -# } -# trait = incapable -# prisoner = yes -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { -# NOT = { has_character_flag = already_civilized_province} -# } -# change_stewardship = 1 -# set_character_flag = already_civilized_province -# } -# prestige = 100 -# clr_character_flag = civilized_province -# } -#} -# -#obj_change_province_religion = { -# type = character -# -# potential = { -# is_ruler = yes -# OR = { -# ai = no -# NOT = { has_character_flag = obj_convert_a_province } -# } -# any_realm_province = { -# NOT = { religion = ROOT } -# } -# } -# -# allow = { -# is_adult = yes -# war = no -# NOT = { trait = incapable } -# NOT = { has_character_modifier = convert_province_timer } -# } -# -# chance = { -# factor = 100 -# -# modifier = { -# factor = 0 -# trait = cynical -# } -# modifier = { -# factor = 2.0 -# trait = crusader -# } -# modifier = { -# factor = 2.0 -# trait = zealous -# } -# modifier = { -# factor = 1.5 -# learning = 10 -# } -# modifier = { -# factor = 1.5 -# learning = 15 -# } -# modifier = { -# factor = 1.5 -# learning = 20 -# } -# modifier = { -# factor = 0.5 -# NOT = { learning = 5 } -# } -# modifier = { -# factor = 0.5 -# NOT = { learning = 3 } -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# has_character_modifier = convert_province_timer -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { any_vassal = { leads_faction = faction_tradition } } -# custom_tooltip = { text = TRADITIONFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_tradition } set_variable = { which = "faction_mood_increase" value = 2 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_convert_a_province } } -# change_learning = 1 -# piety = 50 -# } -# if = { -# limit = { has_character_flag = obj_convert_a_province } -# piety = 25 -# } -# set_character_flag = obj_convert_a_province -# } -#} -# -#obj_cta_0 = { -# type = character -# -# creation_effect = { -# } -# -# potential = { -# NOR = { -# trait = poor_warrior -# trait = trained_warrior -# trait = skilled_warrior -# trait = master_warrior -# } -# OR = { -# is_ruler = yes -# liege = { job_marshal = { character = ROOT } } -# } -# NOT = { has_character_flag = cta_done } # weird things happen (cta_done is not normally set for the 0->1 tier transition) -# } -# -# allow = { -# NOR = { -# is_adult = no -# age = 50 -# prisoner = yes -# trait = incapable -# trait = blinded -# } -# # if you can command armies for your liege/yourself (and meet the base criteria), -# # then this ambition is for you too. -# OR = { -# OR = { -# male_can_hold_minor_title_trigger = yes -# female_can_hold_minor_commander_title_trigger = yes -# } -# OR = { -# NOT = { religion = hindu } -# trait = kshatriya -# } -# AND = { -# is_ruler = yes -# independent = yes -# OR = { -# trait = martial_lady -# trait = martial_lady_tengri -# trait = martial_lady_pagan -# martial = 12 -# } -# } -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# AND = { -# independent = yes -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# } -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 0 -# NOT = { martial = 8 } -# } -# modifier = { -# factor = 10 -# liege = { job_marshal = { character = ROOT } } -# } -# modifier = { -# factor = 0.75 -# age = 40 -# } -# modifier = { -# factor = 0.333 -# age = 45 -# } -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 2 -# trait = diligent -# } -# modifier = { -# factor = 2 -# trait = diligent -# martial = 12 -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# martial = 12 -# } -# modifier = { -# factor = 2.5 -# trait = brave -# } -# modifier = { -# factor = 2.5 -# trait = crusader -# } -# modifier = { -# factor = 2.5 -# trait = mujahid -# } -# modifier = { -# factor = 1.75 -# # already has proven battle experience, likely candidate to be in future battles -# OR = { -# trait = scarred -# trait = scarred_female -# } -# } -# modifier = { -# factor = 1.75 -# trait = agile -# } -# modifier = { -# factor = 2 -# is_strong_trigger = yes -# } -# modifier = { -# factor = 6 -# trait = duelist -# } -# modifier = { -# factor = 2.5 -# trait = hunter -# } -# modifier = { -# factor = 0.25 -# trait = hedonist -# } -# modifier = { -# factor = 0.333 -# is_weak_trigger = yes -# } -# modifier = { -# factor = 0.333 -# trait = clubfooted -# } -# modifier = { -# factor = 0.75 -# trait = content -# } -# modifier = { -# factor = 0.25 -# trait = craven -# } -# modifier = { -# factor = 0.1 -# trait = slothful -# } -# modifier = { -# factor = 0.667 -# OR = { -# trait = elusive_shadow -# trait = intricate_webweaver -# } -# } -# modifier = { -# factor = 0.333 -# OR = { -# trait = flamboyant_schemer -# trait = amateurish_plotter -# } -# } -# modifier = { -# factor = 8 -# trait = brilliant_strategist -# } -# modifier = { -# factor = 5 -# trait = skilled_tactician -# } -# modifier = { -# factor = 3 -# trait = tough_soldier -# } -# modifier = { -# factor = 2 -# trait = misguided_warrior -# } -# modifier = { -# factor = 0.75 -# NOT = { martial = 10 } # implies martial = 8 or 9 (martial < 8 is disabled for AI) -# } -# # TODO: martial scaling should be less coarse-grained -# modifier = { -# factor = 1.5 -# martial = 12 -# } -# modifier = { -# factor = 1.5 -# martial = 15 -# } -# modifier = { -# factor = 1.5 -# martial = 18 -# } -# modifier = { -# factor = 1.5 -# martial = 21 -# } -# modifier = { -# factor = 1.5 -# martial = 24 -# } -# } -# success = { -# OR = { # CTA only advances 1 level, but external code or console might jump the trait higher -# trait = poor_warrior -# trait = trained_warrior -# trait = skilled_warrior -# trait = master_warrior -# } -# } -# abort = { -# OR = { -# NOR = { -# is_ruler = yes -# liege = { job_marshal = { character = ROOT } } -# } -# is_adult = no # weird stuff happens. -# age = 50 -# prisoner = yes -# trait = incapable -# trait = blinded -# -# # and also abort if conditions change such that they can no longer command armies -# NOR = { -# OR = { -# male_can_hold_minor_title_trigger = yes -# female_can_hold_minor_commander_title_trigger = yes -# } -# OR = { -# NOT = { religion = hindu } -# trait = kshatriya -# } -# AND = { -# is_ruler = yes -# independent = yes -# OR = { -# trait = martial_lady -# trait = martial_lady_tengri -# trait = martial_lady_pagan -# martial = 12 -# } -# } -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# AND = { -# independent = yes -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# } -# } -# } -# abort_effect = { -# # (optional) possibly notify the player of why the ambition aborted in certain cases (prison, reaching age 50-- the rest is obvious) -# } -# effect = { -# prestige = 25 -# } -#} -# -#obj_cta_1 = { -# type = character -# -# creation_effect = { -# } -# -# potential = { -# trait = poor_warrior -# NOR = { -# trait = trained_warrior -# trait = skilled_warrior -# trait = master_warrior -# } -# OR = { -# is_ruler = yes -# liege = { job_marshal = { character = ROOT } } -# } -# NOT = { has_character_flag = cta_done } -# } -# -# allow = { -# NOR = { -# is_adult = no -# age = 50 -# prisoner = yes -# trait = incapable -# trait = blinded -# } -# # if you can command armies for your liege/yourself (and meet the base criteria), -# # then this ambition is for you too. -# OR = { -# OR = { -# male_can_hold_minor_title_trigger = yes -# female_can_hold_minor_commander_title_trigger = yes -# } -# OR = { -# NOT = { religion = hindu } -# trait = kshatriya -# } -# AND = { -# is_ruler = yes -# independent = yes -# OR = { -# trait = martial_lady -# trait = martial_lady_tengri -# trait = martial_lady_pagan -# martial = 12 -# } -# } -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# AND = { -# independent = yes -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# } -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 0 -# NOT = { martial = 8 } -# } -# modifier = { -# factor = 10 -# liege = { job_marshal = { character = ROOT } } -# } -# modifier = { -# factor = 0.75 -# age = 40 -# } -# modifier = { -# factor = 0.333 -# age = 45 -# } -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 2 -# trait = diligent -# } -# modifier = { -# factor = 2 -# trait = diligent -# martial = 12 -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# martial = 12 -# } -# modifier = { -# factor = 2.5 -# trait = brave -# } -# modifier = { -# factor = 2.5 -# trait = crusader -# } -# modifier = { -# factor = 2.5 -# trait = mujahid -# } -# modifier = { -# factor = 1.75 -# # already has proven battle experience, likely candidate to be in future battles -# OR = { -# trait = scarred -# trait = scarred_female -# } -# } -# modifier = { -# factor = 1.75 -# trait = agile -# } -# modifier = { -# factor = 2 -# is_strong_trigger = yes -# } -# modifier = { -# factor = 6 -# trait = duelist -# } -# modifier = { -# factor = 2.5 -# trait = hunter -# } -# modifier = { -# factor = 0.25 -# trait = hedonist -# } -# modifier = { -# factor = 0.333 -# is_weak_trigger = yes -# } -# modifier = { -# factor = 0.333 -# trait = clubfooted -# } -# modifier = { -# factor = 0.75 -# trait = content -# } -# modifier = { -# factor = 0.25 -# trait = craven -# } -# modifier = { -# factor = 0.1 -# trait = slothful -# } -# modifier = { -# factor = 0.667 -# OR = { -# trait = elusive_shadow -# trait = intricate_webweaver -# } -# } -# modifier = { -# factor = 0.333 -# OR = { -# trait = flamboyant_schemer -# trait = amateurish_plotter -# } -# } -# modifier = { -# factor = 8 -# trait = brilliant_strategist -# } -# modifier = { -# factor = 5 -# trait = skilled_tactician -# } -# modifier = { -# factor = 3 -# trait = tough_soldier -# } -# modifier = { -# factor = 2 -# trait = misguided_warrior -# } -# modifier = { -# factor = 0.75 -# NOT = { martial = 10 } # implies martial = 8 or 9 (martial < 8 is disabled for AI) -# } -# # TODO: martial scaling should be less coarse-grained -# modifier = { -# factor = 1.5 -# martial = 12 -# } -# modifier = { -# factor = 1.5 -# martial = 15 -# } -# modifier = { -# factor = 1.5 -# martial = 18 -# } -# modifier = { -# factor = 1.5 -# martial = 21 -# } -# modifier = { -# factor = 1.5 -# martial = 24 -# } -# } -# success = { -# OR = { -# trait = trained_warrior -# trait = skilled_warrior -# trait = master_warrior -# } -# } -# abort = { -# OR = { -# NOR = { -# is_ruler = yes -# liege = { job_marshal = { character = ROOT } } -# } -# is_adult = no # weird stuff happens. -# age = 50 -# prisoner = yes -# trait = incapable -# trait = blinded -# -# # also abort if conditions change such that they can no longer command armies -# NOR = { -# OR = { -# male_can_hold_minor_title_trigger = yes -# female_can_hold_minor_commander_title_trigger = yes -# } -# OR = { -# NOT = { religion = hindu } -# trait = kshatriya -# } -# AND = { -# is_ruler = yes -# independent = yes -# OR = { -# trait = martial_lady -# trait = martial_lady_tengri -# trait = martial_lady_pagan -# martial = 12 -# } -# } -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# AND = { -# independent = yes -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# } -# -# NOR = { # external code might demote a character -# trait = poor_warrior -# trait = trained_warrior -# trait = skilled_warrior -# trait = master_warrior -# } -# } -# } -# abort_effect = { -# # (optional) possibly notify the player of why the ambition aborted in certain cases (prison, reaching age 50-- the rest is obvious) -# } -# effect = { -# prestige = 50 -# } -#} -# -#obj_cta_2 = { -# type = character -# -# creation_effect = { -# } -# -# potential = { -# OR = { -# is_ruler = yes -# liege = { job_marshal = { character = ROOT } } -# } -# trait = trained_warrior -# NOR = { -# trait = poor_warrior -# trait = skilled_warrior -# trait = master_warrior -# } -# NOT = { has_character_flag = cta_done } -# } -# -# allow = { -# NOR = { -# is_adult = no -# age = 50 -# prisoner = yes -# trait = incapable -# trait = blinded -# } -# # if you can command armies for your liege/yourself (and meet the base criteria), -# # then this ambition is for you too. -# OR = { -# OR = { -# male_can_hold_minor_title_trigger = yes -# female_can_hold_minor_commander_title_trigger = yes -# } -# OR = { -# NOT = { religion = hindu } -# trait = kshatriya -# } -# AND = { -# is_ruler = yes -# independent = yes -# OR = { -# trait = martial_lady -# trait = martial_lady_tengri -# trait = martial_lady_pagan -# martial = 12 -# } -# } -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# AND = { -# independent = yes -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# } -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 0 -# NOT = { martial = 8 } -# } -# modifier = { -# factor = 10 -# liege = { job_marshal = { character = ROOT } } -# } -# modifier = { -# factor = 0.75 -# age = 40 -# } -# modifier = { -# factor = 0.333 -# age = 45 -# } -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 2 -# trait = diligent -# } -# modifier = { -# factor = 2 -# trait = diligent -# martial = 12 -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# martial = 12 -# } -# modifier = { -# factor = 2.5 -# trait = brave -# } -# modifier = { -# factor = 2.5 -# trait = crusader -# } -# modifier = { -# factor = 2.5 -# trait = mujahid -# } -# modifier = { -# factor = 1.75 -# # already has proven battle experience, likely candidate to be in future battles -# OR = { -# trait = scarred -# trait = scarred_female -# } -# } -# modifier = { -# factor = 1.75 -# trait = agile -# } -# modifier = { -# factor = 2 -# is_strong_trigger = yes -# } -# modifier = { -# factor = 6 -# trait = duelist -# } -# modifier = { -# factor = 2.5 -# trait = hunter -# } -# modifier = { -# factor = 0.25 -# trait = hedonist -# } -# modifier = { -# factor = 0.333 -# is_weak_trigger = yes -# } -# modifier = { -# factor = 0.333 -# trait = clubfooted -# } -# modifier = { -# factor = 0.75 -# trait = content -# } -# modifier = { -# factor = 0.25 -# trait = craven -# } -# modifier = { -# factor = 0.1 -# trait = slothful -# } -# modifier = { -# factor = 0.667 -# OR = { -# trait = elusive_shadow -# trait = intricate_webweaver -# } -# } -# modifier = { -# factor = 0.333 -# OR = { -# trait = flamboyant_schemer -# trait = amateurish_plotter -# } -# } -# modifier = { -# factor = 8 -# trait = brilliant_strategist -# } -# modifier = { -# factor = 5 -# trait = skilled_tactician -# } -# modifier = { -# factor = 3 -# trait = tough_soldier -# } -# modifier = { -# factor = 2 -# trait = misguided_warrior -# } -# modifier = { -# factor = 0.75 -# NOT = { martial = 10 } # implies martial = 8 or 9 (martial < 8 is disabled for AI) -# } -# # TODO: martial scaling should be less coarse-grained -# modifier = { -# factor = 1.5 -# martial = 12 -# } -# modifier = { -# factor = 1.5 -# martial = 15 -# } -# modifier = { -# factor = 1.5 -# martial = 18 -# } -# modifier = { -# factor = 1.5 -# martial = 21 -# } -# modifier = { -# factor = 1.5 -# martial = 24 -# } -# } -# success = { -# OR = { -# trait = skilled_warrior -# trait = master_warrior -# } -# } -# abort = { -# OR = { -# NOR = { -# is_ruler = yes -# liege = { job_marshal = { character = ROOT } } -# } -# is_adult = no # weird stuff happens. -# age = 50 -# prisoner = yes -# trait = incapable -# trait = blinded -# -# # and ladies should abort if conditions change such that they can no longer command armies -# NOR = { -# OR = { -# male_can_hold_minor_title_trigger = yes -# female_can_hold_minor_commander_title_trigger = yes -# } -# OR = { -# NOT = { religion = hindu } -# trait = kshatriya -# } -# AND = { -# is_ruler = yes -# independent = yes -# OR = { -# trait = martial_lady -# trait = martial_lady_tengri -# trait = martial_lady_pagan -# martial = 12 -# } -# } -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# AND = { -# independent = yes -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# } -# -# # external code might demote a character -# trait = poor_warrior -# NOR = { -# trait = poor_warrior -# trait = trained_warrior -# trait = skilled_warrior -# trait = master_warrior -# } -# } -# } -# abort_effect = { -# # (optional) possibly notify the player of why the ambition aborted in certain cases (prison, reaching age 50-- the rest is obvious) -# } -# effect = { -# prestige = 75 -# } -#} -# -#obj_cta_3 = { -# type = character -# -# creation_effect = { -# } -# -# potential = { -# trait = skilled_warrior -# NOR = { -# trait = poor_warrior -# trait = trained_warrior -# trait = master_warrior -# } -# NOT = { has_character_flag = cta_done } -# OR = { -# is_ruler = yes -# liege = { job_marshal = { character = ROOT } } -# } -# } -# -# allow = { -# NOR = { -# is_adult = no -# age = 50 -# prisoner = yes -# trait = incapable -# trait = blinded -# } -# # if you can command armies for your liege/yourself (and meet the base criteria), -# # then this ambition is for you too. -# OR = { -# OR = { -# male_can_hold_minor_title_trigger = yes -# female_can_hold_minor_commander_title_trigger = yes -# } -# OR = { -# NOT = { religion = hindu } -# trait = kshatriya -# } -# AND = { -# is_ruler = yes -# independent = yes -# OR = { -# trait = martial_lady -# trait = martial_lady_tengri -# trait = martial_lady_pagan -# martial = 12 -# } -# } -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# AND = { -# independent = yes -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# } -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 0 -# NOT = { martial = 8 } -# } -# modifier = { -# factor = 10 -# liege = { job_marshal = { character = ROOT } } -# } -# modifier = { -# factor = 0.75 -# age = 40 -# } -# modifier = { -# factor = 0.333 -# age = 45 -# } -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 2 -# trait = diligent -# } -# modifier = { -# factor = 2 -# trait = diligent -# martial = 12 -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# martial = 12 -# } -# modifier = { -# factor = 2.5 -# trait = brave -# } -# modifier = { -# factor = 2.5 -# trait = crusader -# } -# modifier = { -# factor = 2.5 -# trait = mujahid -# } -# modifier = { -# factor = 1.75 -# # already has proven battle experience, likely candidate to be in future battles -# OR = { -# trait = scarred -# trait = scarred_female -# } -# } -# modifier = { -# factor = 1.75 -# trait = agile -# } -# modifier = { -# factor = 2 -# is_strong_trigger = yes -# } -# modifier = { -# factor = 6 -# trait = duelist -# } -# modifier = { -# factor = 2.5 -# trait = hunter -# } -# modifier = { -# factor = 0.25 -# trait = hedonist -# } -# modifier = { -# factor = 0.333 -# is_weak_trigger = yes -# } -# modifier = { -# factor = 0.333 -# trait = clubfooted -# } -# modifier = { -# factor = 0.75 -# trait = content -# } -# modifier = { -# factor = 0.25 -# trait = craven -# } -# modifier = { -# factor = 0.1 -# trait = slothful -# } -# modifier = { -# factor = 0.667 -# OR = { -# trait = elusive_shadow -# trait = intricate_webweaver -# } -# } -# modifier = { -# factor = 0.333 -# OR = { -# trait = flamboyant_schemer -# trait = amateurish_plotter -# } -# } -# modifier = { -# factor = 8 -# trait = brilliant_strategist -# } -# modifier = { -# factor = 5 -# trait = skilled_tactician -# } -# modifier = { -# factor = 3 -# trait = tough_soldier -# } -# modifier = { -# factor = 2 -# trait = misguided_warrior -# } -# modifier = { -# factor = 0.75 -# NOT = { martial = 10 } # implies martial = 8 or 9 (martial < 8 is disabled for AI) -# } -# # TODO: martial scaling should be less coarse-grained -# modifier = { -# factor = 1.5 -# martial = 12 -# } -# modifier = { -# factor = 1.5 -# martial = 15 -# } -# modifier = { -# factor = 1.5 -# martial = 18 -# } -# modifier = { -# factor = 1.5 -# martial = 21 -# } -# modifier = { -# factor = 1.5 -# martial = 24 -# } -# } -# success = { -# trait = master_warrior -# } -# abort = { -# OR = { -# NOR = { -# is_ruler = yes -# liege = { job_marshal = { character = ROOT } } -# } -# is_adult = no # weird stuff happens. -# age = 50 -# prisoner = yes -# trait = incapable -# trait = blinded -# -# # abort if conditions change such that they can no longer command armies -# NOR = { -# OR = { -# male_can_hold_minor_title_trigger = yes -# female_can_hold_minor_commander_title_trigger = yes -# } -# OR = { -# NOT = { religion = hindu } -# trait = kshatriya -# } -# AND = { -# is_ruler = yes -# independent = yes -# OR = { -# trait = martial_lady -# trait = martial_lady_tengri -# trait = martial_lady_pagan -# martial = 12 -# } -# } -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# AND = { -# independent = yes -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# } -# -# # external code might demote a character -# trait = poor_warrior -# trait = trained_warrior -# NOR = { -# trait = poor_warrior -# trait = trained_warrior -# trait = skilled_warrior -# trait = master_warrior -# } -# } -# } -# abort_effect = { -# # (optional) possibly notify the player of why the ambition aborted in certain cases (prison, reaching age 50-- the rest is obvious) -# } -# effect = { -# prestige = 100 -# } -#} -# -#obj_druze_esoteric_learning = { -# type = character -# potential = { -# religion = druze -# trait = druze_juhhal -# } -# allow = { -# prisoner = no -# NOT = { trait = incapable } -# NOT = { trait = cynical } -# learning = 8 -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# chance = { -# factor = 5 -# modifier = { -# factor = 0 -# NOR = { -# trait = detached_priest -# trait = martial_cleric -# trait = scholarly_theologian -# trait = mastermind_theologian -# trait = zealous -# } -# } -# modifier = { -# factor = 0 -# NOT = { age = 25 } -# } -# modifier = { -# factor = 0.5 -# NOT = { age = 35 } -# } -# modifier = { -# factor = 0.5 -# is_female = yes -# } -# modifier = { -# factor = 2 -# trait = zealous -# } -# modifier = { -# factor = 0.5 -# trait = detached_priest -# } -# modifier = { -# factor = 1.5 -# trait = martial_cleric -# } -# modifier = { -# factor = 2.5 -# trait = scholarly_theologian -# } -# modifier = { -# factor = 5 -# trait = mastermind_theologian -# } -# } -# success = { -# trait = druze_uqqal -# } -# abort = { -# OR = { -# trait = incapable -# trait = cynical -# prisoner = yes -# NOT = { religion = druze } -# NOT = { learning = 8 } -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# piety = 100 -# } -#} -# -#obj_find_lover = { -# type = character -# -# potential = { -# has_lover = no -# OR = { -# is_ruler = no -# demesne_size = 1 -# } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_find_lover } -# } -# NOT = { has_landed_title = k_papal_state } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# is_priest = no -# NOT = { trait = celibate } -# NOT = { trait = eunuch } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 100 -# modifier = { -# factor = 0.5 -# is_ruler = no -# } -# modifier = { -# factor = 2.0 -# spouse = { age = 40 } -# } -# modifier = { -# factor = 0.5 -# spouse = { -# NOT = { age = 30 } -# } -# } -# modifier = { -# factor = 0.5 -# spouse = { -# reverse_opinion = { -# who = ROOT -# value = 25 -# } -# } -# } -# modifier = { -# factor = 0.5 -# spouse = { -# reverse_opinion = { -# who = ROOT -# value = 50 -# } -# } -# } -# modifier = { -# factor = 0.5 -# spouse = { -# reverse_opinion = { -# who = ROOT -# value = 75 -# } -# } -# } -# modifier = { -# factor = 0.1 -# trait = chaste -# } -# modifier = { -# factor = 0.5 -# trait = shy -# } -# modifier = { -# factor = 2.0 -# trait = lustful -# } -# modifier = { -# factor = 2.0 -# trait = hedonist -# } -# modifier = { -# factor = 2.0 -# trait = decadent -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# has_lover = yes -# } -# abort = { -# OR = { -# prisoner = yes -# is_priest = yes -# trait = celibate -# trait = eunuch -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# change_variable = { which = "lifestyle_diplomacy" value = 1 } -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_find_lover } } -# change_diplomacy = 1 -# } -# if = { -# limit = { has_character_flag = obj_find_lover } -# prestige = 25 -# } -# set_character_flag = obj_find_lover -# } -#} -# -#obj_gain_estates_1 = { -# type = character -# -# potential = { -# is_ruler = no -# liege = { is_nomadic = no } -# liege = { is_tribal = no } -# NOR = { -# trait = monk -# trait = nun -# trait = eunuch -# trait = incapable -# has_character_modifier = estates_1 -# has_character_flag = flag_denied_estates -# has_character_flag = obj_gain_estates -# } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# OR = { -# is_female = no -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# liege = { -# is_close_relative = ROOT -# has_law = cognatic_succession -# } -# } -# NOT = { spouse = { is_ruler = yes } } -# NOT = { has_minor_title = title_guru } -# } -# -# chance = { -# factor = 100 -# -# modifier = { -# factor = 0.1 -# NOT = { -# num_of_children = 1 -# liege = { -# is_close_relative = ROOT -# } -# } -# } -# modifier = { -# factor = 0.25 -# is_female = yes -# } -# modifier = { -# factor = 0 -# is_primary_heir = yes -# } -# modifier = { -# factor = 2.0 -# liege = { -# dynasty = ROOT -# } -# } -# modifier = { -# factor = 2.0 -# liege = { -# is_close_relative = ROOT -# } -# } -# modifier = { -# factor = 5.0 -# trait = decadent -# } -# modifier = { -# factor = 2.0 -# trait = ambitious -# } -# modifier = { -# factor = 2.0 -# trait = proud -# } -# modifier = { -# factor = 2.0 -# trait = greedy -# } -# modifier = { -# factor = 0.5 -# trait = content -# } -# modifier = { -# factor = 0.5 -# trait = humble -# } -# modifier = { -# factor = 0.5 -# trait = charitable -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# OR = { -# has_character_modifier = estates_1 -# } -# } -# abort = { -# OR = { -# has_character_flag = flag_denied_estates -# prisoner = yes -# trait = incapable -# trait = eunuch -# has_minor_title = title_guru -# trait = monk -# trait = nun -# is_ruler = yes -# spouse = { is_ruler = yes } -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 50 -# liege = { -# reverse_opinion = { -# modifier = opinion_estates_obj -# who = ROOT -# years = 10 -# } -# } -# set_character_flag = obj_gain_estates -# } -#} -# -#obj_gain_honorary_title = { -# type = character -# -# potential = { -# independent = no -# liege = { -# OR = { -# is_feudal = yes -# is_tribal = yes -# } -# } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_gain_honorary_title } -# } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# NOT = { trait = incapable } -# NOT = { has_character_modifier = planning_claimant_adventure } -# NOR = { -# has_minor_title = title_keeper_of_swans -# has_minor_title = title_master_of_the_horse -# has_minor_title = title_master_of_the_hunt -# has_minor_title = title_high_almoner -# has_minor_title = title_cupbearer -# has_minor_title = title_seneschal -# has_minor_title = title_despot -# has_minor_title = title_sebastokrator -# has_minor_title = title_kouropalates -# has_minor_title = title_caesar -# has_minor_title = title_anthypatos -# has_minor_title = title_court_dwarf -# has_minor_title = title_court_jester -# has_minor_title = title_food_taster -# has_minor_title = title_court_calligrapher -# has_minor_title = title_court_musician -# has_minor_title = title_court_poet -# has_minor_title = title_chief_architect -# has_minor_title = title_imperial_eunuch -# has_minor_title = title_high_judge -# has_minor_title = title_high_admiral -# has_minor_title = title_state_inquisitor -# has_minor_title = title_volva -# has_minor_title = title_lawspeaker -# has_minor_title = title_drottseti -# has_minor_title = title_court_skald -# has_minor_title = title_marksman -# has_minor_title = title_hirdman -# has_minor_title = title_baghatur -# has_minor_title = title_cherbi -# has_minor_title = title_darkhan -# has_minor_title = title_noyan -# has_minor_title = title_shahrwaraz -# has_minor_title = title_kardarigan -# has_minor_title = title_shahin -# has_minor_title = title_pushtigban_salar -# has_minor_title = title_spahbod -# has_minor_title = title_eran_ambaragbed -# has_minor_title = title_champion -# has_minor_title = title_master_of_the_blade -# has_minor_title = title_master_of_the_bow -# has_minor_title = title_venerable_elder -# has_minor_title = title_yabgu -# has_minor_title = title_ishad -# has_minor_title = title_kundur -# has_minor_title = title_vestalis -# has_minor_title = title_vestalis_maxima -# has_minor_title = title_pagan_wizard -# has_minor_title = title_censor -# has_minor_title = title_aedile -# has_minor_title = title_magister_equitum -# has_minor_title = title_flamen_dialis -# has_minor_title = title_flaminica_dialis -# has_minor_title = title_flamen_martialis -# has_minor_title = title_flaminica_martialis -# has_minor_title = title_flamen_quirinalis -# has_minor_title = title_flaminica_quirinalis -# has_minor_title = title_uchelwr -# has_minor_title = title_laoch -# has_minor_title = title_royal_champion -# has_minor_title = title_vates -# has_minor_title = title_court_bard -# } -# } -# -# chance = { -# factor = 50 -# -# modifier = { -# factor = 0.1 -# is_female = yes -# } -# modifier = { -# factor = 2.0 -# trait = ambitious -# } -# modifier = { -# factor = 2.0 -# trait = proud -# } -# modifier = { -# factor = 0.5 -# trait = content -# } -# modifier = { -# factor = 0.5 -# trait = humble -# } -# modifier = { -# factor = 0.5 -# is_ruler = yes -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# custom_tooltip = { -# text = custom_minor_title -# } -# hidden_tooltip = { -# OR = { -# has_minor_title = title_keeper_of_swans -# has_minor_title = title_master_of_the_horse -# has_minor_title = title_master_of_the_hunt -# has_minor_title = title_high_almoner -# has_minor_title = title_cupbearer -# has_minor_title = title_seneschal -# has_minor_title = title_despot -# has_minor_title = title_sebastokrator -# has_minor_title = title_kouropalates -# has_minor_title = title_caesar -# has_minor_title = title_anthypatos -# has_minor_title = title_court_dwarf -# has_minor_title = title_court_calligrapher -# has_minor_title = title_court_musician -# has_minor_title = title_court_poet -# has_minor_title = title_chief_architect -# has_minor_title = title_imperial_eunuch -# has_minor_title = title_high_judge -# has_minor_title = title_high_admiral -# has_minor_title = title_state_inquisitor -# has_minor_title = title_volva -# has_minor_title = title_lawspeaker -# has_minor_title = title_drottseti -# has_minor_title = title_court_skald -# has_minor_title = title_marksman -# has_minor_title = title_hirdman -# has_minor_title = title_baghatur -# has_minor_title = title_cherbi -# has_minor_title = title_darkhan -# has_minor_title = title_noyan -# has_minor_title = title_shahrwaraz -# has_minor_title = title_kardarigan -# has_minor_title = title_shahin -# has_minor_title = title_pushtigban_salar -# has_minor_title = title_spahbod -# has_minor_title = title_eran_ambaragbed -# has_minor_title = title_champion -# has_minor_title = title_master_of_the_blade -# has_minor_title = title_master_of_the_bow -# has_minor_title = title_venerable_elder -# has_minor_title = title_yabgu -# has_minor_title = title_ishad -# has_minor_title = title_kundur -# has_minor_title = title_vestalis -# has_minor_title = title_vestalis_maxima -# has_minor_title = title_pagan_wizard -# has_minor_title = title_censor -# has_minor_title = title_aedile -# has_minor_title = title_magister_equitum -# has_minor_title = title_flamen_dialis -# has_minor_title = title_flaminica_dialis -# has_minor_title = title_flamen_martialis -# has_minor_title = title_flaminica_martialis -# has_minor_title = title_flamen_quirinalis -# has_minor_title = title_flaminica_quirinalis -# has_minor_title = title_uchelwr -# has_minor_title = title_laoch -# has_minor_title = title_royal_champion -# has_minor_title = title_vates -# has_minor_title = title_court_bard -# } -# } -# } -# abort = { -# OR = { -# has_character_modifier = planning_claimant_adventure -# prisoner = yes -# trait = incapable -# independent = yes -# liege = { -# is_feudal = no -# is_tribal = no -# } -# has_minor_title = title_court_jester -# has_minor_title = title_food_taster -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_gain_honorary_title } } -# prestige = 50 -# } -# if = { -# limit = { has_character_flag = obj_gain_honorary_title } -# prestige = 25 -# } -# liege = { -# reverse_opinion = { -# modifier = opinion_honorary_title -# who = ROOT -# years = 10 -# } -# } -# set_character_flag = obj_gain_honorary_title -# } -#} -# -#obj_go_crusade = { -# type = character -# -# potential = { -# ai = no -# is_ruler = yes -# religion = catholic -# NOT = { has_character_flag = obj_go_crusade } -# NOT = { trait = crusader } -# OR = { -# OR = { -# male_can_hold_minor_title_trigger = yes -# female_can_hold_minor_commander_title_trigger = yes -# } -# OR = { -# NOT = { religion = hindu } -# trait = kshatriya -# } -# AND = { -# is_ruler = yes -# independent = yes -# OR = { -# trait = martial_lady -# trait = martial_lady_tengri -# trait = martial_lady_pagan -# martial = 12 -# } -# } -# liege = { -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# AND = { -# independent = yes -# OR = { -# has_law = true_cognatic_succession -# has_law = enatic_cognatic_succession -# has_law = enatic_succession -# } -# } -# } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# religion_head = { has_called_crusade = yes } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 0 -# } -# success = { -# trait = crusader -# } -# abort = { -# OR = { -# prisoner = yes -# is_ruler = no -# trait = incapable -# NOT = { -# religion_head = { has_called_crusade = yes } -# } -# NOT = { religion = catholic } -# } -# } -# abort_effect = { -# } -# effect = { -# if = { -# limit = { any_vassal = { leads_faction = faction_tradition } } -# custom_tooltip = { text = TRADITIONFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_tradition } set_variable = { which = "faction_mood_increase" value = 2 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# hidden_tooltip = { change_variable = { which = "lifestyle_martial" value = 1 } } -# piety = 100 -# set_character_flag = obj_go_crusade -# } -#} -# -#obj_go_jihad = { -# type = character -# -# potential = { -# ai = no -# is_ruler = yes -# is_female = no -# religion_group = muslim -# NOT = { has_character_flag = obj_go_crusade } -# NOT = { trait = mujahid } -# NOT = { trait = decadent } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# NOT = { trait = incapable } -# religion_head = { has_called_crusade = yes } -# } -# chance = { -# factor = 0 -# } -# success = { -# trait = mujahid -# } -# abort = { -# OR = { -# prisoner = yes -# is_ruler = no -# trait = incapable -# trait = decadent -# NOT = { -# religion_head = { has_called_crusade = yes } -# } -# NOT = { religion_group = muslim } -# } -# } -# abort_effect = { -# set_character_flag = obj_aborted -# clr_character_flag = obj_check -# } -# effect = { -# if = { -# limit = { any_vassal = { leads_faction = faction_tradition } } -# custom_tooltip = { text = TRADITIONFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_tradition } set_variable = { which = "faction_mood_increase" value = 2 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# hidden_tooltip = { change_variable = { which = "lifestyle_martial" value = 1 } } -# piety = 100 -# set_character_flag = obj_go_crusade -# } -#} -# -#obj_great_council = { -# type = character -# -# potential = { -# independent = yes -# OR = { -# job_chancellor = { -# diplomacy = 20 -# } -# job_marshal = { -# martial = 20 -# } -# job_treasurer = { -# stewardship = 20 -# } -# job_spymaster = { -# intrigue = 20 -# } -# job_spiritual = { -# learning = 20 -# } -# } -# NOT = { has_character_flag = great_council_formed } -# } -# -# allow = { -# is_adult = yes -# prisoner = no -# NOT = { trait = incapable } -# NAND = { -# job_chancellor = { -# diplomacy = 20 -# } -# job_marshal = { -# martial = 20 -# } -# job_treasurer = { -# stewardship = 20 -# } -# job_spymaster = { -# intrigue = 20 -# } -# job_spiritual = { -# learning = 20 -# } -# } -# } -# chance = { -# factor = 1 -# modifier = { -# factor = 2.0 -# ruled_years = 20 -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# job_chancellor = { -# diplomacy = 20 -# } -# job_marshal = { -# martial = 20 -# } -# job_treasurer = { -# stewardship = 20 -# } -# job_spymaster = { -# intrigue = 20 -# } -# job_spiritual = { -# learning = 20 -# } -# } -# abort = { -# OR = { -# trait = incapable -# independent = no -# is_ruler = no -# prisoner = yes -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 200 -# hidden_tooltip = { -# set_character_flag = great_council_formed -# } -# } -#} -# -#obj_have_5_children = { -# type = character -# -# fertility = 0.1 -# -# potential = { -# is_adult = yes -# OR = { -# is_married = yes -# is_consort = yes -# } -# OR = { -# is_ruler = yes -# spouse = { is_ruler = yes } -# } -# num_of_children = 1 -# NOT = { num_of_children = 5 } -# NOT = { has_character_flag = obj_have_child_3 } -# } -# -# allow = { -# prisoner = no -# OR = { -# NOT = { age = 45 } -# is_female = no -# } -# NOT = { age = 75 } -# NOT = { trait = celibate } -# NOT = { trait = eunuch } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 0.5 -# is_female = no -# } -# modifier = { -# factor = 2.0 -# trait = lustful -# } -# modifier = { -# factor = 1.5 -# num_of_children = 2 -# } -# modifier = { -# factor = 1.5 -# num_of_children = 3 -# } -# modifier = { -# factor = 1.5 -# num_of_children = 4 -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# num_of_children = 5 -# } -# abort = { -# OR = { -# prisoner = yes -# AND = { -# age = 45 -# is_female = yes -# } -# AND = { -# age = 75 -# is_female = no -# } -# is_married = no -# trait = celibate -# trait = eunuch -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { any_vassal = { leads_faction = faction_court } } -# custom_tooltip = { text = COURTFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 1 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# if = { -# limit = { -# religion_group = muslim -# } -# prestige = 50 -# } -# if = { -# limit = { -# NOT = { religion_group = muslim } -# } -# prestige = 100 -# } -# set_character_flag = obj_have_child_3 -# } -#} -# -#obj_have_10_children = { -# type = character -# -# fertility = 0.1 -# -# potential = { -# is_adult = yes -# is_married = yes -# num_of_children = 5 -# NOT = { num_of_children = 10 } -# OR = { -# is_ruler = yes -# spouse = { is_ruler = yes } -# } -# NOT = { has_character_flag = obj_have_child_4 } -# } -# -# allow = { -# prisoner = no -# OR = { -# NOT = { age = 45 } -# is_female = no -# } -# NOT = { age = 75 } -# NOT = { trait = celibate } -# NOT = { trait = eunuch } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 0.5 -# is_female = no -# } -# modifier = { -# factor = 2.0 -# trait = lustful -# } -# modifier = { -# factor = 1.5 -# num_of_children = 6 -# } -# modifier = { -# factor = 1.5 -# num_of_children = 7 -# } -# modifier = { -# factor = 1.5 -# num_of_children = 8 -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# num_of_children = 10 -# } -# abort = { -# OR = { -# prisoner = yes -# AND = { -# age = 45 -# is_female = yes -# } -# AND = { -# age = 75 -# is_female = no -# } -# is_married = no -# trait = celibate -# trait = eunuch -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { any_vassal = { leads_faction = faction_court } } -# custom_tooltip = { text = COURTFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 1 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# if = { -# limit = { -# religion_group = muslim -# } -# prestige = 50 -# } -# if = { -# limit = { -# NOT = { religion_group = muslim } -# } -# prestige = 100 -# } -# set_character_flag = obj_have_child_4 -# } -#} -# -#obj_have_15_children = { -# type = character -# -# fertility = 0.1 -# -# potential = { -# is_adult = yes -# is_married = yes -# num_of_children = 10 -# NOT = { num_of_children = 15 } -# OR = { -# is_ruler = yes -# spouse = { is_ruler = yes } -# } -# NOT = { has_character_flag = obj_have_child_5 } -# } -# -# allow = { -# prisoner = no -# OR = { -# NOT = { age = 45 } -# is_female = no -# } -# NOT = { age = 75 } -# NOT = { trait = celibate } -# NOT = { trait = eunuch } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 0.5 -# is_female = no -# } -# modifier = { -# factor = 2.0 -# trait = lustful -# } -# modifier = { -# factor = 1.5 -# num_of_children = 6 -# } -# modifier = { -# factor = 1.5 -# num_of_children = 7 -# } -# modifier = { -# factor = 1.5 -# num_of_children = 8 -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# num_of_children = 15 -# } -# abort = { -# OR = { -# prisoner = yes -# AND = { -# age = 45 -# is_female = yes -# } -# AND = { -# age = 75 -# is_female = no -# } -# is_married = no -# trait = celibate -# trait = eunuch -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { any_vassal = { leads_faction = faction_court } } -# custom_tooltip = { text = COURTFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 1 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# if = { -# limit = { -# religion_group = muslim -# } -# prestige = 50 -# } -# if = { -# limit = { -# NOT = { religion_group = muslim } -# } -# prestige = 100 -# } -# set_character_flag = obj_have_child_5 -# } -#} -# -#obj_have_20_children = { -# type = character -# -# fertility = 0.1 -# -# potential = { -# is_adult = yes -# is_married = yes -# num_of_children = 15 -# NOT = { num_of_children = 20 } -# OR = { -# is_ruler = yes -# spouse = { is_ruler = yes } -# } -# NOT = { has_character_flag = obj_have_child_6 } -# } -# -# allow = { -# prisoner = no -# OR = { -# NOT = { age = 45 } -# is_female = no -# } -# NOT = { age = 75 } -# NOT = { trait = celibate } -# NOT = { trait = eunuch } -# NOT = { trait = incapable } -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 0.5 -# is_female = no -# } -# modifier = { -# factor = 2.0 -# trait = lustful -# } -# modifier = { -# factor = 1.5 -# num_of_children = 6 -# } -# modifier = { -# factor = 1.5 -# num_of_children = 7 -# } -# modifier = { -# factor = 1.5 -# num_of_children = 8 -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# num_of_children = 20 -# } -# abort = { -# OR = { -# prisoner = yes -# AND = { -# age = 45 -# is_female = yes -# } -# AND = { -# age = 75 -# is_female = no -# } -# is_married = no -# trait = celibate -# trait = eunuch -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { any_vassal = { leads_faction = faction_court } } -# custom_tooltip = { text = COURTFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 2 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# if = { -# limit = { -# has_nickname = no -# religion_group = christian -# } -# give_nickname = nick_the_quiverfull -# } -# if = { -# limit = { -# religion_group = muslim -# } -# prestige = 50 -# } -# if = { -# limit = { -# NOT = { religion_group = muslim } -# } -# prestige = 100 -# } -# set_character_flag = obj_have_child_6 -# } -#} -# -#obj_increase_demesne_1 = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# num_of_count_titles = 1 -# NOT = { demesne_size = 2 } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_demesne } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# demesne_efficiency = 1.01 -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.5 -# prestige = 100 -# } -# modifier = { -# factor = 1.5 -# prestige = 250 -# } -# modifier = { -# factor = 1.5 -# prestige = 400 -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 0.1 -# trait = humble -# } -# modifier = { -# factor = 10.0 -# trait = ambitious -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# demesne_size = 2 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_demesne } } -# change_stewardship = 1 -# if = { -# limit = { independent = no } -# liege = { -# reverse_opinion = { -# who = ROOT -# modifier = opinion_happy -# months = 120 -# } -# } -# } -# } -# if = { -# limit = { has_character_flag = obj_demesne } -# prestige = 25 -# } -# set_character_flag = obj_demesne -# } -#} -# -#obj_increase_demesne_2 = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# num_of_count_titles = 1 -# demesne_size = 2 -# NOT = { demesne_size = 3 } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_demesne } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# demesne_efficiency = 1.01 -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.5 -# prestige = 100 -# } -# modifier = { -# factor = 1.5 -# prestige = 250 -# } -# modifier = { -# factor = 1.5 -# prestige = 400 -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 0.1 -# trait = humble -# } -# modifier = { -# factor = 10.0 -# trait = ambitious -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# demesne_size = 3 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_demesne } } -# change_stewardship = 1 -# if = { -# limit = { independent = no } -# liege = { -# reverse_opinion = { -# who = ROOT -# modifier = opinion_happy -# months = 120 -# } -# } -# } -# } -# if = { -# limit = { has_character_flag = obj_demesne } -# prestige = 25 -# } -# set_character_flag = obj_demesne -# } -#} -# -#obj_increase_demesne_3 = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# num_of_count_titles = 1 -# demesne_size = 3 -# NOT = { demesne_size = 4 } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_demesne } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# demesne_efficiency = 1.01 -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.5 -# prestige = 100 -# } -# modifier = { -# factor = 1.5 -# prestige = 250 -# } -# modifier = { -# factor = 1.5 -# prestige = 400 -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 0.1 -# trait = humble -# } -# modifier = { -# factor = 10.0 -# trait = ambitious -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# demesne_size = 4 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_demesne } } -# change_stewardship = 1 -# if = { -# limit = { independent = no } -# liege = { -# reverse_opinion = { -# who = ROOT -# modifier = opinion_happy -# months = 120 -# } -# } -# } -# } -# if = { -# limit = { has_character_flag = obj_demesne } -# prestige = 25 -# } -# set_character_flag = obj_demesne -# } -#} -# -#obj_increase_demesne_4 = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# num_of_count_titles = 1 -# demesne_size = 4 -# NOT = { demesne_size = 5 } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_demesne } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# demesne_efficiency = 1.01 -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.5 -# prestige = 100 -# } -# modifier = { -# factor = 1.5 -# prestige = 250 -# } -# modifier = { -# factor = 1.5 -# prestige = 400 -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 0.1 -# trait = humble -# } -# modifier = { -# factor = 10.0 -# trait = ambitious -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# demesne_size = 5 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_demesne } } -# change_stewardship = 1 -# if = { -# limit = { independent = no } -# liege = { -# reverse_opinion = { -# who = ROOT -# modifier = opinion_happy -# months = 120 -# } -# } -# } -# } -# if = { -# limit = { has_character_flag = obj_demesne } -# prestige = 25 -# } -# set_character_flag = obj_demesne -# } -#} -# -#obj_increase_demesne_5 = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# num_of_count_titles = 1 -# demesne_size = 5 -# NOT = { demesne_size = 6 } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_demesne } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# demesne_efficiency = 1.01 -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.5 -# prestige = 100 -# } -# modifier = { -# factor = 1.5 -# prestige = 250 -# } -# modifier = { -# factor = 1.5 -# prestige = 400 -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 0.1 -# trait = humble -# } -# modifier = { -# factor = 10.0 -# trait = ambitious -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# demesne_size = 6 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_demesne } } -# change_stewardship = 1 -# if = { -# limit = { independent = no } -# liege = { -# reverse_opinion = { -# who = ROOT -# modifier = opinion_happy -# months = 120 -# } -# } -# } -# } -# if = { -# limit = { has_character_flag = obj_demesne } -# prestige = 25 -# } -# set_character_flag = obj_demesne -# } -#} -# -#obj_increase_demesne_6 = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# num_of_count_titles = 1 -# demesne_size = 6 -# NOT = { demesne_size = 7 } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_demesne } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# demesne_efficiency = 1.01 -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.5 -# prestige = 100 -# } -# modifier = { -# factor = 1.5 -# prestige = 250 -# } -# modifier = { -# factor = 1.5 -# prestige = 400 -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 0.1 -# trait = humble -# } -# modifier = { -# factor = 10.0 -# trait = ambitious -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# demesne_size = 7 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_demesne } } -# change_stewardship = 1 -# if = { -# limit = { independent = no } -# liege = { -# reverse_opinion = { -# who = ROOT -# modifier = opinion_happy -# months = 120 -# } -# } -# } -# } -# if = { -# limit = { has_character_flag = obj_demesne } -# prestige = 25 -# } -# set_character_flag = obj_demesne -# } -#} -# -#obj_increase_demesne_7 = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# num_of_count_titles = 1 -# demesne_size = 7 -# NOT = { demesne_size = 8 } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_demesne } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# demesne_efficiency = 1.01 -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.5 -# prestige = 100 -# } -# modifier = { -# factor = 1.5 -# prestige = 250 -# } -# modifier = { -# factor = 1.5 -# prestige = 400 -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 0.1 -# trait = humble -# } -# modifier = { -# factor = 10.0 -# trait = ambitious -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# demesne_size = 8 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_demesne } } -# change_stewardship = 1 -# if = { -# limit = { independent = no } -# liege = { -# reverse_opinion = { -# who = ROOT -# modifier = opinion_happy -# months = 120 -# } -# } -# } -# } -# if = { -# limit = { has_character_flag = obj_demesne } -# prestige = 25 -# } -# set_character_flag = obj_demesne -# } -#} -# -#obj_increase_demesne_8 = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# num_of_count_titles = 1 -# demesne_size = 8 -# NOT = { demesne_size = 9 } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_demesne } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# demesne_efficiency = 1.01 -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.5 -# prestige = 100 -# } -# modifier = { -# factor = 1.5 -# prestige = 250 -# } -# modifier = { -# factor = 1.5 -# prestige = 400 -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 0.1 -# trait = humble -# } -# modifier = { -# factor = 10.0 -# trait = ambitious -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# demesne_size = 9 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_demesne } } -# change_stewardship = 1 -# if = { -# limit = { independent = no } -# liege = { -# reverse_opinion = { -# who = ROOT -# modifier = opinion_happy -# months = 120 -# } -# } -# } -# } -# if = { -# limit = { has_character_flag = obj_demesne } -# prestige = 25 -# } -# set_character_flag = obj_demesne -# } -#} -# -#obj_increase_demesne_9 = { -# type = character -# -# potential = { -# is_ruler = yes -# is_landed = yes -# num_of_count_titles = 1 -# demesne_size = 9 -# NOT = { demesne_size = 10 } -# OR = { -# ai = no -# NOT = { has_character_flag = obj_demesne } -# } -# } -# -# allow = { -# is_adult = yes -# NOT = { trait = incapable } -# demesne_efficiency = 1.01 -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.5 -# prestige = 100 -# } -# modifier = { -# factor = 1.5 -# prestige = 250 -# } -# modifier = { -# factor = 1.5 -# prestige = 400 -# } -# modifier = { -# factor = 1.5 -# trait = envious -# } -# modifier = { -# factor = 0.1 -# trait = humble -# } -# modifier = { -# factor = 10.0 -# trait = ambitious -# } -# modifier = { -# factor = 0 -# trait = content -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# demesne_size = 10 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_demesne } } -# change_stewardship = 1 -# if = { -# limit = { independent = no } -# liege = { -# reverse_opinion = { -# who = ROOT -# modifier = opinion_happy -# months = 120 -# } -# } -# } -# } -# if = { -# limit = { has_character_flag = obj_demesne } -# prestige = 25 -# } -# set_character_flag = obj_demesne -# } -#} -# -#obj_known_for_virtue = { -# type = character -# -# potential = { -# is_ruler = yes -# NOT = { religion_group = indian_group } -# NOT = { has_character_flag = obj_become_paragon_of_virtue } -# NOT = { has_character_flag = known_for_virtue } -# } -# -# allow = { -# is_adult = yes -# piety = 0 -# NOT = { piety = 500 } -# NOT = { trait = cruel } -# NOT = { trait = impaler } -# NOT = { trait = incapable } -# NOT = { trait = decadent } -# } -# chance = { -# factor = 50 -# -# modifier = { -# factor = 1.25 -# trait = patient -# } -# modifier = { -# factor = 0.01 -# NOT = { tier = king } -# NOT = { tier = emperor } -# } -# modifier = { -# factor = 0 -# NOT = { piety = 100 } -# } -# modifier = { -# factor = 10.0 -# OR = { -# trait = detached_priest -# trait = martial_cleric -# trait = scholarly_theologian -# trait = mastermind_theologian -# } -# } -# modifier = { -# factor = 10.0 -# trait = zealous -# } -# modifier = { -# factor = 0.01 -# trait = cynical -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# piety = 500 -# } -# abort = { -# OR = { -# is_ruler = no -# NOT = { piety = 0 } -# trait = cruel -# trait = impaler -# trait = incapable -# trait = decadent -# religion_group = indian_group -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# change_learning = 1 -# piety = 50 -# set_character_flag = known_for_virtue -# } -#} -# -#obj_lower_decadence50 = { -# type = character -# -# potential = { -# is_adult = yes -# is_ruler = yes -# uses_decadence = yes -# } -# allow = { -# NOT = {decadence = 55} -# decadence = 50 -# NOT = { trait = incapable } -# NOT = {has_character_modifier = lower_decadence_obj_timer} -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = diligent -# } -# modifier = { -# factor = 1.25 -# trait = naive_appeaser -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 0.01 -# trait = content -# } -# modifier = { -# factor = 0.01 -# trait = slothful -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# NOT = {decadence = 40} -# } -# abort = { -# OR = { -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# hidden_tooltip = { -# add_character_modifier = { -# name = lower_decadence_obj_timer -# duration = 1825 #5 years -# } -# } -# clr_character_flag = lower_decadence_success -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -#} -# -#obj_lower_decadence55 = { -# type = character -# -# potential = { -# is_adult = yes -# is_ruler = yes -# uses_decadence = yes -# } -# allow = { -# NOT = {decadence = 60} -# decadence = 55 -# NOT = { trait = incapable } -# NOT = {has_character_modifier = lower_decadence_obj_timer} -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = diligent -# } -# modifier = { -# factor = 1.25 -# trait = naive_appeaser -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 0.01 -# trait = content -# } -# modifier = { -# factor = 0.01 -# trait = slothful -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# NOT = {decadence = 45} -# } -# abort = { -# OR = { -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# hidden_tooltip = { -# add_character_modifier = { -# name = lower_decadence_obj_timer -# duration = 1825 #5 years -# } -# } -# clr_character_flag = lower_decadence_success -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -#} -# -#obj_lower_decadence60 = { -# type = character -# -# potential = { -# is_adult = yes -# is_ruler = yes -# uses_decadence = yes -# } -# allow = { -# religion_group = muslim -# NOT = {decadence = 65} -# decadence = 60 -# NOT = { trait = incapable } -# NOT = { has_character_modifier = lower_decadence_obj_timer } -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = diligent -# } -# modifier = { -# factor = 1.25 -# trait = naive_appeaser -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 0.01 -# trait = content -# } -# modifier = { -# factor = 0.01 -# trait = slothful -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# NOT = {decadence = 50} -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# NOT = { religion_group = muslim } -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# hidden_tooltip = { -# add_character_modifier = { -# name = lower_decadence_obj_timer -# duration = 1825 #5 years -# } -# } -# clr_character_flag = lower_decadence_success -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -#} -# -#obj_lower_decadence65 = { -# type = character -# -# potential = { -# is_adult = yes -# is_ruler = yes -# uses_decadence = yes -# } -# allow = { -# NOT = {decadence = 70} -# decadence = 65 -# NOT = { trait = incapable } -# NOT = {has_character_modifier = lower_decadence_obj_timer} -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = diligent -# } -# modifier = { -# factor = 1.25 -# trait = naive_appeaser -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 0.01 -# trait = content -# } -# modifier = { -# factor = 0.01 -# trait = slothful -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# NOT = {decadence = 55} -# } -# abort = { -# OR = { -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# hidden_tooltip = { -# add_character_modifier = { -# name = lower_decadence_obj_timer -# duration = 1825 #5 years -# } -# } -# clr_character_flag = lower_decadence_success -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -#} -# -#obj_lower_decadence70 = { -# type = character -# -# potential = { -# is_adult = yes -# is_ruler = yes -# uses_decadence = yes -# } -# allow = { -# NOT = {decadence = 75} -# decadence = 70 -# NOT = { trait = incapable } -# NOT = {has_character_modifier = lower_decadence_obj_timer} -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = diligent -# } -# modifier = { -# factor = 1.25 -# trait = naive_appeaser -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 0.01 -# trait = content -# } -# modifier = { -# factor = 0.01 -# trait = slothful -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# NOT = {decadence = 60} -# } -# abort = { -# OR = { -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# hidden_tooltip = { -# add_character_modifier = { -# name = lower_decadence_obj_timer -# duration = 1825 #5 years -# } -# } -# clr_character_flag = lower_decadence_success -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -#} -# -#obj_lower_decadence75 = { -# type = character -# -# potential = { -# is_adult = yes -# is_ruler = yes -# uses_decadence = yes -# } -# allow = { -# NOT = {decadence = 80} -# decadence = 75 -# NOT = { trait = incapable } -# NOT = {has_character_modifier = lower_decadence_obj_timer} -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = diligent -# } -# modifier = { -# factor = 1.25 -# trait = naive_appeaser -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 0.01 -# trait = content -# } -# modifier = { -# factor = 0.01 -# trait = slothful -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# NOT = {decadence = 65} -# } -# abort = { -# OR = { -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# hidden_tooltip = { -# add_character_modifier = { -# name = lower_decadence_obj_timer -# duration = 1825 #5 years -# } -# } -# clr_character_flag = lower_decadence_success -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -#} -# -#obj_lower_decadence80 = { -# type = character -# -# potential = { -# is_adult = yes -# is_ruler = yes -# uses_decadence = yes -# } -# allow = { -# decadence = 80 -# NOT = { trait = incapable } -# NOT = {has_character_modifier = lower_decadence_obj_timer} -# } -# chance = { -# factor = 100 -# -# modifier = { -# factor = 1.25 -# trait = diligent -# } -# modifier = { -# factor = 1.25 -# trait = naive_appeaser -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 0.01 -# trait = content -# } -# modifier = { -# factor = 0.01 -# trait = slothful -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# NOT = {decadence = 70} -# } -# abort = { -# OR = { -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 100 -# hidden_tooltip = { -# add_character_modifier = { -# name = lower_decadence_obj_timer -# duration = 1825 #5 years -# } -# } -# clr_character_flag = lower_decadence_success -# clr_character_flag = berber_life -# clr_character_flag = bandit_camp -# clr_character_flag = dromedary_hunt -# } -#} -# -#obj_make_a_friend = { -# type = character -# -# potential = { -# NOT = { has_character_flag = friend_ambition } -# NOT = { num_of_friends = 1 } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# diplomacy = 8 -# NOR = { -# age = 70 -# trait = incapable -# trait = shy -# } -# } -# -# chance = { -# factor = 10 -# -# modifier = { -# factor = 2.0 -# trait = gregarious -# } -# -# modifier = { -# factor = 2.0 -# trait = kind -# } -# -# modifier = { -# factor = 1.5 -# trait = just -# } -# -# modifier = { -# factor = 0.1 -# is_married = no -# } -# -# modifier = { -# factor = 0.75 -# trait = envious -# } -# -# modifier = { -# factor = 0.5 -# trait = cruel -# } -# -# modifier = { -# factor = 0.5 -# trait = ambitious -# } -# -# modifier = { -# factor = 0.5 -# trait = deceitful -# } -# -# modifier = { -# factor = 0.75 -# age = 50 -# } -# -# modifier = { -# factor = 0.75 -# age = 55 -# } -# -# modifier = { -# factor = 0.5 -# age = 60 -# } -# -# modifier = { -# factor = 0.5 -# is_female = yes -# } -# -# modifier = { -# factor = 0.5 -# is_ruler = no -# } -# -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# num_of_friends = 1 -# } -# -# abort = { -# OR = { -# trait = incapable -# trait = shy -# age = 70 -# NOT = { diplomacy = 8 } -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# -# effect = { -# hidden_tooltip = { -# change_variable = { which = "lifestyle_diplomacy" value = 1 } -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# change_diplomacy = 1 -# set_character_flag = friend_ambition -# } -#} -# -#obj_nickname_change = { -# type = character -# -# potential = { -# ai = no -# is_ruler = yes -# has_nickname = yes -# NOT = { has_character_flag = gave_up_change_nick } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# NOT = { trait = incapable } -# NOT = { trait = humble } -# prestige = 500 -# } -# creation_effect = { -# prestige = -200 -# } -# chance = { -# factor = 0 -# } -# success = { -# NOT = { has_nickname = yes } -# } -# abort = { -# OR = { -# prisoner = yes -# trait = incapable -# trait = humble -# is_ruler = no -# has_character_flag = gave_up_change_nick -# } -# } -# abort_effect = { -# } -# effect = { -# } -#} -# -#obj_nickname_get = { -# type = character -# -# potential = { -# is_ruler = yes -# has_nickname = no -# NOT = { has_character_flag = got_ambition_nickname } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# NOT = { trait = incapable } -# NOT = { trait = humble } -# prestige = 500 -# } -# chance = { -# factor = 25 -# -# modifier = { -# factor = 2.0 -# prestige = 1000 -# } -# -# modifier = { -# factor = 2.0 -# prestige = 2000 -# } -# -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# has_nickname = yes -# } -# abort = { -# OR = { -# trait = humble -# trait = incapable -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# set_character_flag = got_ambition_nickname -# } -# change_diplomacy = 1 -# prestige = 100 -# } -#} -# -#obj_peace_10_years = { -# type = character -# -# creation_effect = { -# add_character_modifier = { -# name = "peace_declared_10_timer" -# duration = 3650 -# } -# } -# -# potential = { -# ai = no -# mercenary = no -# is_ruler = yes -# NOT = { has_character_modifier = peace_declared_10_timer } -# } -# -# allow = { -# is_adult = yes -# prisoner = no -# NOT = { trait = incapable } -# NOT = { trait = ambitious } -# war = no -# } -# chance = { -# factor = 0 -# } -# success = { -# NOT = { has_character_modifier = peace_declared_10_timer } -# } -# abort = { -# OR = { -# trait = incapable -# trait = ambitious -# war = yes -# prisoner = yes -# } -# } -# abort_effect = { -# remove_character_modifier = peace_declared_10_timer -# } -# effect = { -# change_stewardship = 1 -# piety = 50 -# if = { -# limit = { -# infamy = 50 -# has_game_rule = { -# name = defensive_pacts -# value = on -# } -# } -# random_list = { -# 1 = { change_infamy = { value = -20 localisation = PEACEFULL_RULERSHIP } } -# 5 = { change_infamy = { value = -15 localisation = PEACEFULL_RULERSHIP } } -# 9 = { change_infamy = { value = -10 localisation = PEACEFULL_RULERSHIP } } -# } -# -# } -# if = { -# limit = { -# infamy = 10 -# NOT = { infamy = 50 } -# has_game_rule = { -# name = defensive_pacts -# value = on -# } -# } -# random_list = { -# 1 = { change_infamy = { value = -10 localisation = PEACEFULL_RULERSHIP } } -# 5 = { change_infamy = { value = -5 localisation = PEACEFULL_RULERSHIP } } -# } -# } -# if = { -# limit = { -# infamy = 2 -# NOT = { infamy = 10 } -# has_game_rule = { -# name = defensive_pacts -# value = on -# } -# } -# change_infamy = { value = -2 localisation = PEACEFULL_RULERSHIP } -# } -# if = { -# limit = { -# NOT = { infamy = 2 } -# has_game_rule = { -# name = defensive_pacts -# value = on -# } -# } -# prestige = 250 -# } -# } -#} -# -#obj_reign_20_years = { -# type = character -# -# potential = { -# NOT = { ruled_years = 20 } -# is_ruler = yes -# } -# -# allow = { -# is_adult = yes -# prisoner = no -# NOT = { trait = incapable } -# } -# chance = { -# factor = 5 -# modifier = { -# factor = 0 -# NOT = { ruled_years = 5 } -# } -# modifier = { -# factor = 0.5 -# independent = no -# } -# modifier = { -# factor = 2.0 -# ruled_years = 10 -# } -# modifier = { -# factor = 2.0 -# ruled_years = 15 -# } -# modifier = { -# factor = 5.0 -# ruled_years = 18 -# } -# } -# success = { -# ruled_years = 20 -# } -# abort = { -# OR = { -# trait = incapable -# is_ruler = no -# prisoner = yes -# } -# } -# abort_effect = { -# } -# effect = { -# change_stewardship = 1 -# prestige = 50 -# } -#} -# -#obj_spouse_councillor = { -# type = character -# -# potential = { -# is_female = yes -# is_married = yes -# independent = no -# spouse = { -# independent = no -# is_councillor = no -# } -# } -# -# allow = { -# prisoner = no -# NOT = { trait = incapable } -# spouse = { -# prisoner = no -# is_female = no -# NOT = { trait = incapable } -# NOT = { is_liege_of = ROOT } -# OR = { -# martial = 8 -# diplomacy = 8 -# stewardship = 8 -# intrigue = 8 -# learning = 8 -# } -# } -# } -# chance = { -# factor = 25 -# -# modifier = { -# factor = 2.0 -# trait = ambitious -# } -# -# modifier = { -# factor = 1.5 -# trait = envious -# } -# -# modifier = { -# factor = 0.5 -# trait = content -# } -# -# modifier = { -# factor = 1.25 -# spouse = { -# OR = { -# trait = intricate_webweaver -# trait = charismatic_negotiator -# trait = fortune_builder -# trait = skilled_tactician -# trait = scholarly_theologian -# } -# } -# } -# -# modifier = { -# factor = 0.01 -# spouse = { -# is_dumb_trigger = yes -# } -# } -# -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# spouse = { -# is_councillor = yes -# } -# } -# -# abort = { -# OR = { -# prisoner = yes -# is_married = no -# independent = yes -# trait = incapable -# spouse = { -# OR = { -# prisoner = yes -# independent = yes -# trait = incapable -# liege = { character = ROOT } -# } -# } -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# -# effect = { -# hidden_tooltip = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# prestige = 20 -# } -#} -# -#obj_win_a_war = { -# type = character -# -# potential = { -# war = no -# OR = { -# ai = no -# NOT = { has_character_flag = obj_win_a_war } -# } -# is_ruler = yes -# NOT = { has_character_modifier = victory_timer } -# } -# -# allow = { -# prisoner = no -# is_adult = yes -# NOT = { trait = incapable } -# } -# -# chance = { -# factor = 100 -# modifier = { -# factor = 0 -# independent = no -# } -# modifier = { -# factor = 0.25 -# is_female = yes -# } -# modifier = { -# factor = 0 -# trait = craven -# } -# modifier = { -# factor = 2.0 -# trait = brave -# } -# modifier = { -# factor = 1.5 -# trait = ambitious -# } -# modifier = { -# factor = 0.5 -# trait = content -# } -# modifier = { -# factor = 1.5 -# is_strong_trigger = yes -# } -# modifier = { -# factor = 1.5 -# martial = 10 -# } -# modifier = { -# factor = 1.5 -# martial = 15 -# } -# modifier = { -# factor = 1.5 -# martial = 20 -# } -# modifier = { -# factor = 0.5 -# NOT = { martial = 5 } -# } -# modifier = { -# factor = 0.5 -# NOT = { martial = 3 } -# } -# } -# creation_effect = { -# if = { -# limit = { ai = yes } -# add_character_modifier = { -# name = "ai_objective_timer" -# duration = 1825 -# hidden = yes -# } -# } -# } -# success = { -# has_character_modifier = victory_timer -# } -# abort = { -# OR = { -# prisoner = yes -# trait = incapable -# is_ruler = no -# AND = { -# ai = yes -# NOT = { has_character_modifier = ai_objective_timer } -# } -# } -# } -# abort_effect = { -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# effect = { -# hidden_tooltip = { -# change_variable = { which = "lifestyle_martial" value = 1 } -# if = { -# limit = { ai = yes } -# remove_character_modifier = ai_objective_timer -# } -# } -# if = { -# limit = { any_vassal = { leads_faction = faction_glory } } -# custom_tooltip = { text = GLORYFACTIONMOODPLUS } -# hidden_tooltip = { -# random_vassal = { limit = { leads_faction = faction_glory } set_variable = { which = "faction_mood_increase" value = 2 } } -# character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods -# } -# } -# if = { -# limit = { NOT = { has_character_flag = obj_win_a_war } } -# change_martial = 1 -# prestige = 50 -# } -# if = { -# limit = { has_character_flag = obj_win_a_war } -# prestige = 25 -# } -# set_character_flag = obj_win_a_war -# } -#} \ No newline at end of file From 84ca4deb0b6516e333291f478676ffcbbf82376a Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Tue, 24 Mar 2020 20:27:56 +0100 Subject: [PATCH 02/23] Added 'adopt_a_lifestyle' w/o events --- .../event_modifiers/000_CK2Plus_timers.txt | 9 + .../objectives/000_CK2Plus_ambitions.txt | 88 +++- CK2Plus/interface/000_CK2Plus_ambitions.gfx | 399 ------------------ .../localisation/000_CK2Plus_ambitions.csv | 4 +- 4 files changed, 98 insertions(+), 402 deletions(-) create mode 100644 CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt diff --git a/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt b/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt new file mode 100644 index 00000000..f90ba7bb --- /dev/null +++ b/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt @@ -0,0 +1,9 @@ +####### +#Plus Timers: +# +#Total = 01 +####### + +ai_objective_timer = { + icon = 1 +} \ No newline at end of file diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 6ae08e46..e545553a 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -2,8 +2,94 @@ # # Plus Ambitions: # -# Total = 00 +# Total = 01 # # Sorted alphabetically # ############################## + +obj_adopt_a_lifestyle = { + type = character + + potential = { + lifestyle_traits < 1 + NOT = { has_character_flag = obj_adopt_a_lifestyle } + NOT = { has_character_flag = lifestyle_pick } + } + + allow = { + prisoner = no + age >= 25 + NOT = { trait = incapable } + OR = { + diplomacy >= 5 + martial >= 5 + intrigue >= 5 + stewardship >= 5 + learning >= 5 + } + } + + chance = { + factor = 50 + + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 0.5 + trait = slothful + } + modifier = { + factor = 0.5 + is_ruler = yes + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + lifestyle_traits = 1 + } + abort = { + OR = { + prisoner = yes + trait = incapable + AND = { + diplomacy < 5 + martial < 5 + intrigue < 5 + stewardship < 5 + learning < 5 + } + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + prestige = 50 + set_character_flag = obj_adopt_a_lifestyle + } +} \ No newline at end of file diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index 6d61dde6..96682136 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -6,403 +6,4 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } -# spriteType = { -# name = "GFX_obj_amass_wealth_2" -# textureFile = "gfx/objectives/obj_amass_wealth.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_amass_wealth_3" -# textureFile = "gfx/objectives/obj_amass_wealth.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_amass_wealth_4" -# textureFile = "gfx/objectives/obj_amass_wealth.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_be_legitimized" -# textureFile = "gfx/objectives/obj_be_legitimized.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_become_exalted_2" -# textureFile = "gfx/objectives/obj_become_exalted.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_become_exalted_3" -# textureFile = "gfx/objectives/obj_become_exalted.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_become_exalted_4" -# textureFile = "gfx/objectives/obj_become_exalted.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_become_independent" -# textureFile = "gfx/objectives/obj_become_independent.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_become_rank_duke" -# textureFile = "gfx/objectives/obj_become_rank_duke.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_become_rank_duke_multi" -# textureFile = "gfx/objectives/obj_become_rank_duke_multi.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_become_rank_emperor" -# textureFile = "gfx/objectives/obj_become_rank_emperor.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_become_saint" -# textureFile = "gfx/objectives/obj_become_saint.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_befriend_liege" -# textureFile = "gfx/objectives/obj_befriend_liege.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_befriend_top_liege" -# textureFile = "gfx/objectives/obj_befriend_liege.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_befriend_relhead" -# textureFile = "gfx/objectives/obj_befriend_relhead.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_break_out_of_prison" -# textureFile = "gfx/objectives/obj_break_out_of_prison.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_change_province_culture" -# textureFile = "gfx/objectives/obj_change_province_culture.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_change_province_religion" -# textureFile = "gfx/objectives/obj_change_province_religion.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_cta_0" -# textureFile = "gfx/objectives/obj_cta_0.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_cta_1" -# textureFile = "gfx/objectives/obj_cta_1.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_cta_2" -# textureFile = "gfx/objectives/obj_cta_2.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_cta_3" -# textureFile = "gfx/objectives/obj_cta_3.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_druze_esoteric_learning" -# textureFile = "gfx/objectives/obj_druze_esoteric_learning.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_find_lover" -# textureFile = "gfx/objectives/obj_find_lover.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_gain_estates_1" -# textureFile = "gfx/objectives/obj_gain_estates_1.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_gain_honorary_title" -# textureFile = "gfx/objectives/obj_gain_honorary_title.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_go_crusade" -# textureFile = "gfx/objectives/obj_go_crusade.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_go_jihad" -# textureFile = "gfx/objectives/obj_go_jihad.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_great_council" -# textureFile = "gfx/objectives/obj_great_council.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_have_5_children" -# textureFile = "gfx/objectives/obj_have_5_children.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_have_10_children" -# textureFile = "gfx/objectives/obj_have_10_children.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_have_15_children" -# textureFile = "gfx/objectives/obj_have_15_children.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_have_20_children" -# textureFile = "gfx/objectives/obj_have_20_children.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_increase_demesne_1" -# textureFile = "gfx/objectives/obj_increase_demesne.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_increase_demesne_2" -# textureFile = "gfx/objectives/obj_increase_demesne.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_increase_demesne_3" -# textureFile = "gfx/objectives/obj_increase_demesne.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_increase_demesne_4" -# textureFile = "gfx/objectives/obj_increase_demesne.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_increase_demesne_5" -# textureFile = "gfx/objectives/obj_increase_demesne.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_increase_demesne_6" -# textureFile = "gfx/objectives/obj_increase_demesne.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_increase_demesne_7" -# textureFile = "gfx/objectives/obj_increase_demesne.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_increase_demesne_8" -# textureFile = "gfx/objectives/obj_increase_demesne.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_increase_demesne_9" -# textureFile = "gfx/objectives/obj_increase_demesne.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_known_for_virtue" -# textureFile = "gfx/objectives/obj_become_paragon_of_virtue.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_lower_decadence50" -# textureFile = "gfx/objectives/obj_lower_decadence.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_lower_decadence55" -# textureFile = "gfx/objectives/obj_lower_decadence.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_lower_decadence60" -# textureFile = "gfx/objectives/obj_lower_decadence.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_lower_decadence65" -# textureFile = "gfx/objectives/obj_lower_decadence.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_lower_decadence70" -# textureFile = "gfx/objectives/obj_lower_decadence.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_lower_decadence75" -# textureFile = "gfx/objectives/obj_lower_decadence.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_lower_decadence80" -# textureFile = "gfx/objectives/obj_lower_decadence.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_make_a_friend" -# textureFile = "gfx/objectives/obj_make_a_friend.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_nickname_change" -# textureFile = "gfx/objectives/obj_nickname_get.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_nickname_get" -# textureFile = "gfx/objectives/obj_nickname_get.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_peace_10_years" -# textureFile = "gfx/objectives/obj_peace_10_years.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_reign_20_years" -# textureFile = "gfx/objectives/obj_reign_20_years.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_spouse_councillor" -# textureFile = "gfx/objectives/obj_spouse_councillor.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } -# spriteType = { -# name = "GFX_obj_win_a_war" -# textureFile = "gfx/objectives/obj_win_war.dds" -# noOfFrames = 1 -# noRefCount = yes -# effectFile = "gfx/FX/buttonstate_linear.lua" -# } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index 78e52e10..a04fbe68 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -5,5 +5,5 @@ # Plus custom ambitions # ################################ -obj_adopt_a_lifestyle_desc;I have too much free time: I need a lifestyle;J'ai trop de temps libre: j'ai besoin d'un style de vie;Ich habe zu viel Freizeit: Ich brauche einen Lebensstil;;Tengo demasiado tiempo libre: necesito un estilo de vida;;;;;;;;;x -obj_adopt_a_lifestyle_title;Adopt a Lifestyle;Adoptez un style de vie;Einen Lebensstil annehmen;;Adopta un estilo de vida;;;;;;;;;x +obj_adopt_a_lifestyle_desc;[This.GetTitledFirstName] wants an exciting hobby to pursue.;;;;;;;;;;;;;x +obj_adopt_a_lifestyle_title;Adopt a Lifestyle;;;;;;;;;;;;;x From 9479ae4f4daaa4975ca906a23ce367da02d00fbc Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Wed, 25 Mar 2020 18:22:33 +0100 Subject: [PATCH 03/23] Added 'adopt_a_lifestyle' ambition --- .../000_CK2Plus_event_modifiers.txt | 8 +- .../on_actions/000_CK2Plus_on_actions.txt | 27 + .../000_CK2Plus_opinion_modifiers.txt | 7 +- .../000_CK2Plus_ambitions_lifestyle.txt | 4061 +++++++++++++++++ ...000_CK2Plus_ambitions_lifestyle_events.csv | 93 + .../000_CK2Plus_event_modifiers.csv | 19 +- .../000_CK2Plus_opinion_modifiers.csv | 3 + 7 files changed, 4208 insertions(+), 10 deletions(-) create mode 100644 CK2Plus/events/000_CK2Plus_ambitions_lifestyle.txt create mode 100644 CK2Plus/localisation/000_CK2Plus_ambitions_lifestyle_events.csv create mode 100644 CK2Plus/localisation/000_CK2Plus_opinion_modifiers.csv diff --git a/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt b/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt index cd7ff3c8..c7ad40a3 100644 --- a/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt +++ b/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt @@ -6,12 +6,13 @@ # # INDEX # -# Total = 4 +# Total = 5 # # plus_faction_abandoned # plus_construction_focus # plus_increased_spy_reports # plus_new_roads +# plus_attentive_liege # ######################################### @@ -118,3 +119,8 @@ plus_new_roads = { levy_reinforce_rate = 0.2 } +#Attentive Liege +plus_attentive_liege = { + global_revolt_risk = -0.03 + icon = 1 +} diff --git a/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt b/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt index 1c99b677..39a7384d 100644 --- a/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt +++ b/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt @@ -13,6 +13,33 @@ on_yearly_pulse = { } random_events = { + # Lifestyle Events + 500 = PlusAmbitions.lifestyle.0000 # Hunter + 500 = PlusAmbitions.lifestyle.0001 # Falconer + 500 = PlusAmbitions.lifestyle.0002 # Scholar + 500 = PlusAmbitions.lifestyle.0003 # Mystic + 500 = PlusAmbitions.lifestyle.0004 # Impaler + 500 = PlusAmbitions.lifestyle.0005 # Gardener + 500 = PlusAmbitions.lifestyle.0006 # Poet + 500 = PlusAmbitions.lifestyle.0007 # Administrator + 500 = PlusAmbitions.lifestyle.0008 # Hedonist + 500 = PlusAmbitions.lifestyle.0009 # Duelist + 500 = PlusAmbitions.lifestyle.0010 # Faqih + 500 = PlusAmbitions.lifestyle.0011 # Architect + 500 = PlusAmbitions.lifestyle.0012 # Strategist + 500 = PlusAmbitions.lifestyle.0013 # Socializer + 500 = PlusAmbitions.lifestyle.0014 # Schemer + 500 = PlusAmbitions.lifestyle.0015 # Gamer + 750 = PlusAmbitions.lifestyle.0016 # A traveling merchant visits during a storm + 750 = PlusAmbitions.lifestyle.0017 # A function is happening in the capital + 750 = PlusAmbitions.lifestyle.0018 # See your knights sparring together + 750 = PlusAmbitions.lifestyle.0019 # Courtiers arguing about the war + 750 = PlusAmbitions.lifestyle.0020 # A day of peace for a ruler + 750 = PlusAmbitions.lifestyle.0021 # A disturbance in the market + 750 = PlusAmbitions.lifestyle.0022 # Wondering about rival + 750 = PlusAmbitions.lifestyle.0023 # Thinking about the plot + 500 = PlusAmbitions.lifestyle.0024 # Debate with a zealous courtier + 750 = PlusAmbitions.lifestyle.0025 # Bookseller comes to court } } diff --git a/CK2Plus/common/opinion_modifiers/000_CK2Plus_opinion_modifiers.txt b/CK2Plus/common/opinion_modifiers/000_CK2Plus_opinion_modifiers.txt index 76721c93..ded9c419 100644 --- a/CK2Plus/common/opinion_modifiers/000_CK2Plus_opinion_modifiers.txt +++ b/CK2Plus/common/opinion_modifiers/000_CK2Plus_opinion_modifiers.txt @@ -2,7 +2,7 @@ # # Plus opinion modifiers # -# Total = 2 +# Total = 3 # ############################## @@ -16,4 +16,9 @@ plus_faction_friendly = { #Factions may not attack each other plus_faction_hostile = { #Factions may loot each other opinion = 0 enemy = yes +} + +#Good speech +plus_good_speech = { + opinion = 10 } \ No newline at end of file diff --git a/CK2Plus/events/000_CK2Plus_ambitions_lifestyle.txt b/CK2Plus/events/000_CK2Plus_ambitions_lifestyle.txt new file mode 100644 index 00000000..f3d1a3c7 --- /dev/null +++ b/CK2Plus/events/000_CK2Plus_ambitions_lifestyle.txt @@ -0,0 +1,4061 @@ +namespace = PlusAmbitions.lifestyle + +######################################## +# LIFESTYLE EVENTS +######################################## + +# completely re-written from the vanilla events +# written by Rylock + +#Hunter +character_event = { + id = PlusAmbitions.lifestyle.0000 + desc = EVTDESC_PlusAmbitions_lifestyle_0000 + picture = GFX_evt_hunt + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = craven + is_weak_trigger = yes + religion = jain + religion = cathar + is_inaccessible_trigger = yes + } + martial = 5 + OR = { + is_female = no + #trait = martial_lady + #trait = martial_lady_tengri + #trait = martial_lady_pagan + trait = shieldmaiden + #liege = { has_law = female_council_law_4 } + has_game_rule = { + name = gender + value = all + } + #has_game_rule = { + # name = gender + # value = plus + #} + } + OR = { + trait = brave + is_strong_trigger = yes + martial = 12 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_hunter_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + trait = brave + } + modifier = { + factor = 1.5 + is_strong_trigger = yes + } + modifier = { + factor = 1.5 + martial = 10 + } + modifier = { + factor = 1.5 + martial = 15 + } + modifier = { + factor = 1.5 + martial = 20 + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_martial" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0000 #I'm a hunter + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = brave + is_strong_trigger = yes + } + } + modifier = { + factor = 2 + religion_group = pagan_group + #^ used instead of (because pagans aren't split up yet): + #is_pagan_religion = no + } + } + add_trait = hunter + } + option = { + name = "EVTOPTB_PlusAmbitions_lifestyle_0000" #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_martial_no + } +} + +#Falconer +character_event = { + id = PlusAmbitions.lifestyle.0001 + desc = EVTDESC_PlusAmbitions_lifestyle_0001 + picture = GFX_evt_falconing + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = shy + trait = slothful + religion = jain + is_inaccessible_trigger = yes + } + diplomacy = 5 + intrigue = 5 + OR = { + trait = diligent + trait = deceitful + diplomacy = 12 + intrigue = 12 + check_variable = { which = "lifestyle_diplomacy" value = 0.9 } + check_variable = { which = "lifestyle_intrigue" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_falconer_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + trait = gregarious + } + modifier = { + factor = 1.5 + diplomacy = 10 + } + modifier = { + factor = 1.5 + diplomacy = 15 + } + modifier = { + factor = 1.5 + diplomacy = 20 + } + modifier = { + factor = 1.5 + intrigue = 10 + } + modifier = { + factor = 1.5 + intrigue = 15 + } + modifier = { + factor = 1.5 + intrigue = 20 + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0001 #I'm a falconer + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = diligent + trait = gregarious + } + } + } + add_trait = falconer + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_diplomacy" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_diplomacy_no + } +} + +#Scholar +character_event = { + id = PlusAmbitions.lifestyle.0002 + desc = EVTDESC_PlusAmbitions_lifestyle_0002 + picture = GFX_evt_library + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = gregarious + is_dumb_trigger = yes + is_inaccessible_trigger = yes + } + learning = 5 + OR = { + trait = shy + is_smart_trigger = yes + is_priest = yes + learning = 12 + check_variable = { which = "lifestyle_learning" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_scholar_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + is_smart_trigger = yes + } + modifier = { + factor = 1.5 + trait = shy + } + modifier = { + factor = 1.5 + learning = 10 + } + modifier = { + factor = 1.5 + learning = 15 + } + modifier = { + factor = 1.5 + learning = 20 + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_learning" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0002 #I'm a scholar + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = shy + is_smart_trigger = yes + } + } + } + add_trait = scholar + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_learning" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_learning_no + } +} + +#Mystic +character_event = { + id = PlusAmbitions.lifestyle.0003 + desc = EVTDESC_PlusAmbitions_lifestyle_0003 + picture = "GFX_evt_library" + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = zealous + is_inaccessible_trigger = yes + } + learning = 5 + OR = { + trait = cynical + religion_group = pagan_group + #^ used instead of (because pagans aren't split up yet): + #is_pagan_religion = no + learning = 12 + check_variable = { which = "lifestyle_learning" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_mystic_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + trait = deceitful + } + modifier = { + factor = 1.5 + trait = paranoid + } + modifier = { + factor = 1.5 + intrigue = 10 + } + modifier = { + factor = 1.5 + intrigue = 15 + } + modifier = { + factor = 1.5 + intrigue = 20 + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_learning" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0003 #I'm a mystic + ai_chance = { + factor = 20 + modifier = { + factor = 2 + OR = { + trait = cynical + religion_group = pagan_group + #^ used instead of (because pagans aren't split up yet): + #is_pagan_religion = no + } + } + } + add_trait = mystic + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 80 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_learning" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_learning_no + } +} + +#Impaler +character_event = { + id = PlusAmbitions.lifestyle.0004 + desc = EVTDESC_PlusAmbitions_lifestyle_0004 + picture = GFX_evt_pale_rider + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = kind + trait = charitable + religion = jain + religion = cathar + is_inaccessible_trigger = yes + } + martial = 5 + OR = { + trait = cruel + trait = wroth + martial = 12 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_impaler_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + trait = cruel + } + modifier = { + factor = 1.5 + trait = wroth + } + modifier = { + factor = 1.5 + intrigue = 10 + } + modifier = { + factor = 1.5 + intrigue = 15 + } + modifier = { + factor = 1.5 + intrigue = 20 + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_martial" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0004 #I'm an impaler + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = cruel + trait = wroth + } + } + } + add_trait = impaler + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_martial_no + } +} + +#Gardener +character_event = { + id = PlusAmbitions.lifestyle.0005 + desc = EVTDESC_PlusAmbitions_lifestyle_0005 + picture = GFX_evt_garden + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = slothful + trait = wroth + is_inaccessible_trigger = yes + } + stewardship = 5 + OR = { + trait = temperate + trait = patient + trait = diligent + stewardship = 12 + check_variable = { which = "lifestyle_stewardship" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_gardener_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + trait = patient + } + modifier = { + factor = 1.5 + trait = temperate + } + modifier = { + factor = 1.5 + stewardship = 10 + } + modifier = { + factor = 1.5 + stewardship = 15 + } + modifier = { + factor = 1.5 + stewardship = 20 + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_stewardship" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0005 #I'm a gardener + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = temperate + trait = patient + trait = diligent + } + } + } + add_trait = gardener + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_stewardship" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_stewardship_no + } +} + +#Poet +character_event = { + id = PlusAmbitions.lifestyle.0006 + desc = EVTDESC_PlusAmbitions_lifestyle_0006 + picture = "GFX_evt_courtly_love" + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + prisoner = no + NOT = { + lifestyle_traits = 1 + trait = cruel + trait = envious + trait = gregarious + is_inaccessible_trigger = yes + } + diplomacy = 5 + OR = { + trait = shy + trait = kind + diplomacy = 12 + check_variable = { which = "lifestyle_diplomacy" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_poet_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = shy + } + modifier = { + factor = 1.5 + trait = kind + } + modifier = { + factor = 1.5 + trait = lustful + } + modifier = { + factor = 1.5 + diplomacy = 10 + } + modifier = { + factor = 1.5 + diplomacy = 15 + } + modifier = { + factor = 1.5 + diplomacy = 20 + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_diplomacy" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0006 #I'm a poet + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = shy + trait = kind + } + } + } + add_trait = poet + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_diplomacy" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_diplomacy_no + } +} + +#Administrator +character_event = { + id = PlusAmbitions.lifestyle.0007 + desc = EVTDESC_PlusAmbitions_lifestyle_0007 + picture = GFX_evt_royal_court + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = slothful + trait = gregarious + is_inaccessible_trigger = yes + } + stewardship = 5 + OR = { + trait = diligent + trait = shy + trait = content + stewardship = 12 + check_variable = { which = "lifestyle_stewardship" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_administrator_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = temperate + } + modifier = { + factor = 1.5 + trait = shy + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_stewardship" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0007 #I'm an administrator + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = diligent + trait = shy + trait = content + } + } + } + add_trait = administrator + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_stewardship" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_administrator_no + } +} + +#Hedonist +character_event = { + id = PlusAmbitions.lifestyle.0008 + desc = EVTDESC_PlusAmbitions_lifestyle_0008 + picture = GFX_evt_brothel + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = temperate + trait = shy + is_inaccessible_trigger = yes + } + trait = lustful + OR = { + trait = drunkard + trait = gluttonous + trait = greedy + check_variable = { which = "lifestyle_hedonist" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_hedonist_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = drunkard + } + modifier = { + factor = 1.5 + trait = gluttonous + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_hedonist" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_hedonist" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0008 #I'm a hedonist + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = drunkard + trait = gluttonous + trait = greedy + } + } + } + add_trait = hedonist + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_hedonist" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_hedonist_no + } +} + +#Duelist +character_event = { + id = PlusAmbitions.lifestyle.0009 + desc = EVTDESC_PlusAmbitions_lifestyle_0009 + picture = GFX_evt_joust + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = content + trait = kind + trait = craven + is_weak_trigger = yes + is_inaccessible_trigger = yes + } + martial = 5 + OR = { + is_female = no + #trait = martial_lady + #trait = martial_lady_tengri + #trait = martial_lady_pagan + trait = shieldmaiden + has_game_rule = { + name = gender + value = all + } + #has_game_rule = { + # name = gender + # value = plus + #} + } + OR = { + trait = wroth + trait = brave + trait = ambitious + martial = 12 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + + NOT = { has_character_flag = lifestyle_duelist_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + trait = wroth + } + modifier = { + factor = 1.5 + trait = brave + } + modifier = { + factor = 1.5 + is_strong_trigger = yes + } + modifier = { + factor = 1.5 + martial = 10 + } + modifier = { + factor = 1.5 + martial = 15 + } + modifier = { + factor = 1.5 + martial = 20 + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_martial" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0009 #I'm a duelist + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = wroth + trait = brave + trait = ambitious + } + } + modifier = { + factor = 0.5 + religion = jain + } + modifier = { + factor = 0.5 + religion = cathar + } + } + add_trait = duelist + pacifists_lose_piety_effect = yes + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_martial_no + } +} + +#Faqih +character_event = { + id = PlusAmbitions.lifestyle.0010 + desc = EVTDESC_PlusAmbitions_lifestyle_0010 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + religion_group = muslim + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = cynical + trait = slothful + trait = hafiz + is_inaccessible_trigger = yes + has_alternate_start_parameter = { + key = religion_names + value = random + } + } + learning = 5 + OR = { + trait = just + trait = zealous + learning = 12 + check_variable = { which = "lifestyle_learning" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_faqih_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = diligent + } + modifier = { + factor = 1.5 + trait = just + } + modifier = { + factor = 1.5 + trait = zealous + } + modifier = { + factor = 1.5 + learning = 10 + } + modifier = { + factor = 1.5 + learning = 15 + } + modifier = { + factor = 1.5 + learning = 20 + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_learning" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_learning" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0010 #I have become faqih + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = just + trait = zealous + } + } + } + add_trait = faqih + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_learning" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_learning_no + } +} + +#Architect +character_event = { + id = PlusAmbitions.lifestyle.0011 + desc = EVTDESC_PlusAmbitions_lifestyle_0011 + picture = GFX_evt_castle_construction + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = wroth + trait = content + trait = humble + is_inaccessible_trigger = yes + } + stewardship = 5 + OR = { + trait = patient + trait = ambitious + trait = proud + stewardship = 12 + check_variable = { which = "lifestyle_stewardship" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_architect_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = patient + } + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 1.5 + trait = proud + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_stewardship" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_stewardship" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0011 #I'm an architect + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = patient + trait = ambitious + trait = proud + } + } + } + add_trait = architect + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_stewardship" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_architect_no + } +} + +#Strategist +character_event = { + id = PlusAmbitions.lifestyle.0012 + desc = EVTDESC_PlusAmbitions_lifestyle_0012 + picture = GFX_evt_large_army + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = wroth + trait = content + trait = trusting + is_inaccessible_trigger = yes + } + martial = 5 + OR = { + trait = patient + trait = ambitious + trait = paranoid + martial = 12 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_strategist_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = patient + } + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 1.5 + trait = paranoid + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_martial" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_martial" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0012 #I'm a strategist + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = patient + trait = ambitious + trait = paranoid + } + } + } + add_trait = strategist + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_martial" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_strategist_no + } +} + +#Socializer +character_event = { + id = PlusAmbitions.lifestyle.0013 + desc = EVTDESC_PlusAmbitions_lifestyle_0013 + picture = "GFX_evt_feast" + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = shy + trait = ugly + trait = paranoid + is_inaccessible_trigger = yes + } + diplomacy = 5 + OR = { + trait = gregarious + trait = fair + diplomacy = 12 + check_variable = { which = "lifestyle_diplomacy" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_socializer_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = gregarious + } + modifier = { + factor = 1.5 + trait = proud + } + modifier = { + factor = 1.5 + trait = fair + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_diplomacy" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_diplomacy" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0013 #I'm a socializer + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = gregarious + trait = fair + } + } + } + add_trait = socializer + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_diplomacy" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_socializer_no + } +} + +#Schemer +character_event = { + id = PlusAmbitions.lifestyle.0014 + desc = EVTDESC_PlusAmbitions_lifestyle_0014 + picture = GFX_evt_whispers + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = trusting + trait = honest + is_inaccessible_trigger = yes + } + intrigue = 5 + OR = { + trait = paranoid + trait = deceitful + intrigue = 12 + check_variable = { which = "lifestyle_intrigue" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_schemer_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = paranoid + } + modifier = { + factor = 1.5 + trait = deceitful + } + modifier = { + factor = 1.5 + trait = patient + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_intrigue" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0014 #I'm a schemer + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = paranoid + trait = deceitful + } + } + } + add_trait = schemer + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_intrigue" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_strategist_no + } +} + +#Gamer +character_event = { + id = PlusAmbitions.lifestyle.0015 + desc = EVTDESC_PlusAmbitions_lifestyle_0015 + picture = GFX_evt_market + + is_triggered_only = yes + + min_age = 25 + prisoner = no + capable_only = yes + + trigger = { + NOT = { + lifestyle_traits = 1 + trait = wroth + trait = arbitrary + is_inaccessible_trigger = yes + } + intrigue = 5 + OR = { + trait = patient + trait = just + intrigue = 12 + check_variable = { which = "lifestyle_intrigue" value = 0.9 } + } + NOT = { has_character_flag = lifestyle_schemer_no } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + trait = patient + } + modifier = { + factor = 1.5 + trait = just + } + modifier = { + factor = 1.5 + trait = gluttonous + } + modifier = { + factor = 0.5 + NOT = { check_variable = { which = "lifestyle_intrigue" value = 0.9 } } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 0.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 1.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 2.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 3.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 4.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 5.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 6.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 7.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 8.9 } + } + modifier = { + factor = 2.0 + check_variable = { which = "lifestyle_intrigue" value = 9.9 } + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0015 #I'm a gamer + ai_chance = { + factor = 60 + modifier = { + factor = 2 + OR = { + trait = patient + trait = just + } + } + } + add_trait = gamer + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0000 #That lifestyle is not for me + ai_chance = { + factor = 40 + modifier = { + factor = 0 + check_variable = { which = "lifestyle_intrigue" value = 0.9 } + } + modifier = { + factor = 0 + has_ambition = obj_adopt_a_lifestyle + } + } + set_character_flag = lifestyle_strategist_no + } +} + +### GAIN LIFESTYLE AMBITION EVENTS + +#A traveling merchant visits during a storm +character_event = { + id = PlusAmbitions.lifestyle.0016 + desc = EVTDESC_PlusAmbitions_lifestyle_0016 + picture = GFX_evt_emissary + + is_triggered_only = yes + + only_rulers = yes + war = no + min_age = 25 + prisoner = no + + trigger = { + is_ill = no + is_ruler = yes + diplomacy = 5 + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + has_character_flag = lifestyle_diplomacy1_check + check_variable = { which = "lifestyle_diplomacy" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + diplomacy = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_diplomacy1_check + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0016 #Diplomacy + ai_chance = { + factor = 10 + modifier = { + factor = 2 + diplomacy = 12 + } + modifier = { + factor = 1.5 + trait = naive_appeaser + } + modifier = { + factor = 2.0 + trait = underhanded_rogue + } + modifier = { + factor = 3.0 + trait = charismatic_negotiator + } + modifier = { + factor = 4.0 + trait = grey_eminence + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_diplomacy" value = 1.0 } + } + random = { + chance = 20 + change_diplomacy = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0016 #Martial + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { martial = 5 } + } + modifier = { + factor = 2 + martial = 12 + } + modifier = { + factor = 1.5 + trait = misguided_warrior + } + modifier = { + factor = 2.0 + trait = tough_soldier + } + modifier = { + factor = 3.0 + trait = skilled_tactician + } + modifier = { + factor = 4.0 + trait = brilliant_strategist + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_martial" value = 1.0 } + } + random = { + chance = 20 + change_martial = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0016 #Learning + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { learning = 5 } + } + modifier = { + factor = 2 + learning = 12 + } + modifier = { + factor = 1.5 + trait = detached_priest + } + modifier = { + factor = 2.0 + trait = martial_cleric + } + modifier = { + factor = 3.0 + trait = scholarly_theologian + } + modifier = { + factor = 4.0 + trait = mastermind_theologian + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_learning" value = 1.0 } + } + random = { + chance = 20 + change_learning = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0016 #None of the above + ai_chance = { + factor = 10 + } + if = { + limit = { trait = stressed } + random = { + chance = 20 + remove_trait = stressed + } + } + if = { + limit = { trait = depressed } + random = { + chance = 20 + remove_trait = depressed + } + } + } +} + +#A function is happening in the capital +character_event = { + id = PlusAmbitions.lifestyle.0017 + desc = EVTDESC_PlusAmbitions_lifestyle_0017 + picture = GFX_evt_jugglers + + is_triggered_only = yes + + war = no + min_age = 25 + prisoner = no + + trigger = { + diplomacy = 5 + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + has_character_flag = lifestyle_diplomacy2_check + check_variable = { which = "lifestyle_diplomacy" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + diplomacy = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_diplomacy2_check + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0017 #Diplomacy + ai_chance = { + factor = 10 + modifier = { + factor = 2 + diplomacy = 12 + } + modifier = { + factor = 1.5 + trait = naive_appeaser + } + modifier = { + factor = 2.0 + trait = underhanded_rogue + } + modifier = { + factor = 3.0 + trait = charismatic_negotiator + } + modifier = { + factor = 4.0 + trait = grey_eminence + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_diplomacy" value = 1.0 } + } + random = { + chance = 20 + change_diplomacy = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0017 #Intrigue + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { intrigue = 5 } + } + modifier = { + factor = 2 + intrigue = 12 + } + modifier = { + factor = 1.5 + trait = amateurish_plotter + } + modifier = { + factor = 2.0 + trait = flamboyant_schemer + } + modifier = { + factor = 3.0 + trait = intricate_webweaver + } + modifier = { + factor = 4.0 + trait = elusive_shadow + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_intrigue" value = 1.0 } + } + random = { + chance = 20 + change_intrigue = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0017 #Stewardship + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { stewardship = 5 } + } + modifier = { + factor = 2 + stewardship = 12 + } + modifier = { + factor = 1.5 + trait = indulgent_wastrel + } + modifier = { + factor = 2.0 + trait = thrifty_clerk + } + modifier = { + factor = 3.0 + trait = fortune_builder + } + modifier = { + factor = 4.0 + trait = midas_touched + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_stewardship" value = 1.0 } + } + random = { + chance = 20 + change_stewardship = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0017 #None of the above + if = { + limit = { trait = stressed } + random = { + chance = 20 + remove_trait = stressed + } + } + if = { + limit = { trait = depressed } + random = { + chance = 20 + remove_trait = depressed + } + } + } +} + +#See your knights sparring together +character_event = { + id = PlusAmbitions.lifestyle.0018 + desc = EVTDESC_PlusAmbitions_lifestyle_0018 + picture = GFX_evt_melee + + is_triggered_only = yes + + only_rulers = yes + war = no + min_age = 25 + prisoner = no + + trigger = { + is_ruler = yes + martial = 5 + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + has_character_flag = lifestyle_martial1_check + check_variable = { which = "lifestyle_martial" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + martial = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_martial1_check + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0018 #Martial + ai_chance = { + factor = 10 + modifier = { + factor = 2 + martial = 12 + } + modifier = { + factor = 1.5 + trait = misguided_warrior + } + modifier = { + factor = 2.0 + trait = tough_soldier + } + modifier = { + factor = 3.0 + trait = skilled_tactician + } + modifier = { + factor = 4.0 + trait = brilliant_strategist + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_martial" value = 1.0 } + } + random = { + chance = 20 + change_martial = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0018 #Diplomacy + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { diplomacy = 5 } + } + modifier = { + factor = 2 + diplomacy = 12 + } + modifier = { + factor = 1.5 + trait = naive_appeaser + } + modifier = { + factor = 2.0 + trait = underhanded_rogue + } + modifier = { + factor = 3.0 + trait = charismatic_negotiator + } + modifier = { + factor = 4.0 + trait = grey_eminence + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_diplomacy" value = 1.0 } + } + random = { + chance = 20 + change_diplomacy = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0018 #Learning + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { learning = 5 } + } + modifier = { + factor = 2 + learning = 12 + } + modifier = { + factor = 1.5 + trait = detached_priest + } + modifier = { + factor = 2.0 + trait = martial_cleric + } + modifier = { + factor = 3.0 + trait = scholarly_theologian + } + modifier = { + factor = 4.0 + trait = mastermind_theologian + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_learning" value = 1.0 } + } + random = { + chance = 20 + change_learning = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0018 #None of the above + random = { + chance = 20 + health = 0.25 + } + } +} + +#Courtiers arguing about the war +character_event = { + id = PlusAmbitions.lifestyle.0019 + desc = EVTDESC_PlusAmbitions_lifestyle_0019 + picture = GFX_evt_warrior_banners + + is_triggered_only = yes + + war = yes + min_age = 25 + prisoner = no + + trigger = { + martial = 5 + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + has_character_flag = lifestyle_martial2_check + check_variable = { which = "lifestyle_martial" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + martial = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_martial2_check + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0019 #Martial + ai_chance = { + factor = 10 + modifier = { + factor = 2 + martial = 12 + } + modifier = { + factor = 1.5 + trait = misguided_warrior + } + modifier = { + factor = 2.0 + trait = tough_soldier + } + modifier = { + factor = 3.0 + trait = skilled_tactician + } + modifier = { + factor = 4.0 + trait = brilliant_strategist + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_martial" value = 1.0 } + } + random = { + chance = 20 + change_martial = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0019 #Intrigue + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { intrigue = 5 } + } + modifier = { + factor = 2 + intrigue = 12 + } + modifier = { + factor = 1.5 + trait = amateurish_plotter + } + modifier = { + factor = 2.0 + trait = flamboyant_schemer + } + modifier = { + factor = 3.0 + trait = intricate_webweaver + } + modifier = { + factor = 4.0 + trait = elusive_shadow + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_intrigue" value = 1.0 } + } + random = { + chance = 20 + change_intrigue = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0019 #Stewardship + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { stewardship = 5 } + } + modifier = { + factor = 2 + stewardship = 12 + } + modifier = { + factor = 1.5 + trait = indulgent_wastrel + } + modifier = { + factor = 2.0 + trait = thrifty_clerk + } + modifier = { + factor = 3.0 + trait = fortune_builder + } + modifier = { + factor = 4.0 + trait = midas_touched + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_stewardship" value = 1.0 } + } + random = { + chance = 20 + change_stewardship = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0019 #None of the above + random = { + chance = 20 + health = 0.25 + } + } +} + +#A day of peace for a ruler +character_event = { + id = PlusAmbitions.lifestyle.0020 + desc = EVTDESC_PlusAmbitions_lifestyle_0020 + picture = GFX_evt_battle + + is_triggered_only = yes + + war = no + min_age = 25 + prisoner = no + + trigger = { + stewardship = 5 + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + any_liege = { war = yes } + has_character_flag = lifestyle_stewardship1_check + check_variable = { which = "lifestyle_stewardship" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + stewardship = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_stewardship1_check + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0020 #Stewardship + ai_chance = { + factor = 10 + modifier = { + factor = 2 + stewardship = 12 + } + modifier = { + factor = 1.5 + trait = indulgent_wastrel + } + modifier = { + factor = 2.0 + trait = thrifty_clerk + } + modifier = { + factor = 3.0 + trait = fortune_builder + } + modifier = { + factor = 4.0 + trait = midas_touched + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_stewardship" value = 1.0 } + } + random = { + chance = 20 + change_stewardship = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0020 #Martial + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { martial = 5 } + } + modifier = { + factor = 2 + martial = 12 + } + modifier = { + factor = 1.5 + trait = misguided_warrior + } + modifier = { + factor = 2.0 + trait = tough_soldier + } + modifier = { + factor = 3.0 + trait = skilled_tactician + } + modifier = { + factor = 4.0 + trait = brilliant_strategist + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_martial" value = 1.0 } + } + random = { + chance = 20 + change_martial = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0020 #Learning + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { learning = 5 } + } + modifier = { + factor = 2 + learning = 12 + } + modifier = { + factor = 1.5 + trait = detached_priest + } + modifier = { + factor = 2.0 + trait = martial_cleric + } + modifier = { + factor = 3.0 + trait = scholarly_theologian + } + modifier = { + factor = 4.0 + trait = mastermind_theologian + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_learning" value = 1.0 } + } + random = { + chance = 20 + change_learning = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0020 #None of the above + random_courtier = { + limit = { + OR = { + is_married = ROOT + is_consort = ROOT + is_lover = ROOT + is_close_relative = ROOT + } + } + opinion = { who = ROOT modifier = opinion_family_love months = 24 } + } + } +} + +#A disturbance in the market +character_event = { + id = PlusAmbitions.lifestyle.0021 + desc = EVTDESC_PlusAmbitions_lifestyle_0021 + picture = GFX_evt_riots_byzantine + + is_triggered_only = yes + + war = no + min_age = 25 + prisoner = no + + trigger = { + is_ruler = yes + stewardship = 5 + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + has_character_flag = lifestyle_stewardship2_check + check_variable = { which = "lifestyle_stewardship" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + stewardship = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_stewardship2_check + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0021 #Stewardship + ai_chance = { + factor = 10 + modifier = { + factor = 2 + stewardship = 12 + } + modifier = { + factor = 1.5 + trait = indulgent_wastrel + } + modifier = { + factor = 2.0 + trait = thrifty_clerk + } + modifier = { + factor = 3.0 + trait = fortune_builder + } + modifier = { + factor = 4.0 + trait = midas_touched + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_stewardship" value = 1.0 } + } + random = { + chance = 20 + change_stewardship = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0021 #Diplomacy + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { diplomacy = 5 } + } + modifier = { + factor = 2 + diplomacy = 12 + } + modifier = { + factor = 1.5 + trait = naive_appeaser + } + modifier = { + factor = 2.0 + trait = underhanded_rogue + } + modifier = { + factor = 3.0 + trait = charismatic_negotiator + } + modifier = { + factor = 4.0 + trait = grey_eminence + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_diplomacy" value = 1.0 } + } + random = { + chance = 20 + change_diplomacy = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0021 #Intrigue + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { intrigue = 5 } + } + modifier = { + factor = 2 + intrigue = 12 + } + modifier = { + factor = 1.5 + trait = amateurish_plotter + } + modifier = { + factor = 2.0 + trait = flamboyant_schemer + } + modifier = { + factor = 3.0 + trait = intricate_webweaver + } + modifier = { + factor = 4.0 + trait = elusive_shadow + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_intrigue" value = 1.0 } + } + random = { + chance = 20 + change_intrigue = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0021 #None of the above + add_character_modifier = { + name = plus_attentive_liege + duration = 365 + } + } +} + +#Wondering about rival +character_event = { + id = PlusAmbitions.lifestyle.0022 + desc = EVTDESC_PlusAmbitions_lifestyle_0022 + picture = GFX_evt_shadow + + is_triggered_only = yes + + rivals = yes + min_age = 25 + prisoner = no + + trigger = { + intrigue = 5 + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + has_character_flag = lifestyle_intrigue1_check + check_variable = { which = "lifestyle_intrigue" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + intrigue = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_intrigue1_check + random_rival = { + limit = { is_alive = yes } + save_event_target_as = target_rival + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0022 #Intrigue + ai_chance = { + factor = 10 + modifier = { + factor = 2 + intrigue = 12 + } + modifier = { + factor = 1.5 + trait = amateurish_plotter + } + modifier = { + factor = 2.0 + trait = flamboyant_schemer + } + modifier = { + factor = 3.0 + trait = intricate_webweaver + } + modifier = { + factor = 4.0 + trait = elusive_shadow + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_intrigue" value = 1.0 } + } + random = { + chance = 20 + change_intrigue = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0022 #Martial + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { martial = 5 } + } + modifier = { + factor = 2 + martial = 12 + } + modifier = { + factor = 1.5 + trait = misguided_warrior + } + modifier = { + factor = 2.0 + trait = tough_soldier + } + modifier = { + factor = 3.0 + trait = skilled_tactician + } + modifier = { + factor = 4.0 + trait = brilliant_strategist + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_martial" value = 1.0 } + } + random = { + chance = 20 + change_martial = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0022 #Diplomacy + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { diplomacy = 5 } + } + modifier = { + factor = 2 + diplomacy = 12 + } + modifier = { + factor = 1.5 + trait = naive_appeaser + } + modifier = { + factor = 2.0 + trait = underhanded_rogue + } + modifier = { + factor = 3.0 + trait = charismatic_negotiator + } + modifier = { + factor = 4.0 + trait = grey_eminence + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_diplomacy" value = 1.0 } + } + random = { + chance = 20 + change_diplomacy = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0022 #None of the above + piety = 25 + if = { + limit = { + NOT = { + trait = wroth + trait = patient + } + } + random = { + chance = 20 + add_trait = patient + } + } + if = { + limit = { trait = wroth } + random = { + chance = 20 + remove_trait = wroth + } + } + } +} + +#Thinking about the plot +character_event = { + id = PlusAmbitions.lifestyle.0023 + desc = EVTDESC_PlusAmbitions_lifestyle_0023 + picture = GFX_evt_shadowy_cabal + + is_triggered_only = yes + + is_part_of_plot = yes + min_age = 25 + prisoner = no + + trigger = { + intrigue = 5 + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + has_character_flag = lifestyle_intrigue2_check + check_variable = { which = "lifestyle_intrigue" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + intrigue = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_intrigue2_check + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0023 #Intrigue + ai_chance = { + factor = 10 + modifier = { + factor = 2 + intrigue = 12 + } + modifier = { + factor = 1.5 + trait = amateurish_plotter + } + modifier = { + factor = 2.0 + trait = flamboyant_schemer + } + modifier = { + factor = 3.0 + trait = intricate_webweaver + } + modifier = { + factor = 4.0 + trait = elusive_shadow + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_intrigue" value = 1.0 } + } + random = { + chance = 20 + change_intrigue = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0023 #Learning + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { learning = 5 } + } + modifier = { + factor = 2 + learning = 12 + } + modifier = { + factor = 1.5 + trait = detached_priest + } + modifier = { + factor = 2.0 + trait = martial_cleric + } + modifier = { + factor = 3.0 + trait = scholarly_theologian + } + modifier = { + factor = 4.0 + trait = mastermind_theologian + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_learning" value = 1.0 } + } + random = { + chance = 20 + change_learning = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0023 #Stewardship + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { stewardship = 5 } + } + modifier = { + factor = 2 + stewardship = 12 + } + modifier = { + factor = 1.5 + trait = indulgent_wastrel + } + modifier = { + factor = 2.0 + trait = thrifty_clerk + } + modifier = { + factor = 3.0 + trait = fortune_builder + } + modifier = { + factor = 4.0 + trait = midas_touched + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_stewardship" value = 1.0 } + } + random = { + chance = 20 + change_stewardship = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0023 #None of the above + #if = { + # limit = { + # NOR = { + # has_character_modifier = plot_assisted_spying + # has_character_modifier = plot_assisted_spying2 + # has_character_modifier = plot_assisted_spying3 + # has_character_modifier = plot_assisted_spying4 + # has_character_modifier = plot_assisted_spying5 + # } + #} + #add_character_modifier = { + # name = plot_assisted_spying + # duration = 90 + #} + #} + if = { + limit = { NOT = { trait = wroth } } + random = { + chance = 20 + add_trait = wroth + } + } + } +} + +#Debate with a zealous courtier +character_event = { + id = PlusAmbitions.lifestyle.0024 + desc = EVTDESC_PlusAmbitions_lifestyle_0024 + picture = GFX_evt_bishop + + is_triggered_only = yes + + only_rulers = yes + war = no + min_age = 25 + prisoner = no + + trigger = { + is_ruler = yes + learning = 5 + any_courtier = { + is_liege_or_above = ROOT + is_ruler = yes + is_adult = yes + OR = { + trait = zealous + learning = 12 + } + } + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + has_character_flag = lifestyle_learning1_check + check_variable = { which = "lifestyle_learning" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + learning = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_learning1_check + random_courtier = { + limit = { + is_liege_or_above = ROOT + is_ruler = yes + is_adult = yes + OR = { + trait = zealous + learning = 12 + } + } + save_event_target_as = debater + } + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0024 #Learning + ai_chance = { + factor = 10 + modifier = { + factor = 2 + learning = 12 + } + modifier = { + factor = 1.5 + trait = detached_priest + } + modifier = { + factor = 2.0 + trait = martial_cleric + } + modifier = { + factor = 3.0 + trait = scholarly_theologian + } + modifier = { + factor = 4.0 + trait = mastermind_theologian + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_learning" value = 1.0 } + } + random = { + chance = 20 + change_learning = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0024 #Diplomacy + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { diplomacy = 5 } + } + modifier = { + factor = 2 + diplomacy = 12 + } + modifier = { + factor = 1.5 + trait = naive_appeaser + } + modifier = { + factor = 2.0 + trait = underhanded_rogue + } + modifier = { + factor = 3.0 + trait = charismatic_negotiator + } + modifier = { + factor = 4.0 + trait = grey_eminence + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_diplomacy" value = 1.0 } + } + random = { + chance = 20 + change_diplomacy = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0024 #Intrigue + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { intrigue = 5 } + } + modifier = { + factor = 2 + intrigue = 12 + } + modifier = { + factor = 1.5 + trait = amateurish_plotter + } + modifier = { + factor = 2.0 + trait = flamboyant_schemer + } + modifier = { + factor = 3.0 + trait = intricate_webweaver + } + modifier = { + factor = 4.0 + trait = elusive_shadow + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_intrigue" value = 1.0 } + } + random = { + chance = 20 + change_intrigue = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0024 #None of the above + event_target:debater = { + if = { + limit = { NOT = { is_rival = ROOT } } + opinion = { who = ROOT modifier = plus_good_speech years = 3 } + } + if = { + limit = { is_rival = ROOT } + remove_rival = ROOT + } + } + } +} + +#Bookseller comes to court +character_event = { + id = PlusAmbitions.lifestyle.0025 + desc = EVTDESC_PlusAmbitions_lifestyle_0025 + picture = GFX_evt_library + + is_triggered_only = yes + + war = no + min_age = 25 + prisoner = no + + trigger = { + learning = 5 + NOT = { + lifestyle_traits = 1 + trait = incapable + is_inaccessible_trigger = yes + has_character_flag = lifestyle_learning2_check + check_variable = { which = "lifestyle_learning" value = 1.9 } + } + } + + weight_multiplier = { + days = 1 + modifier = { + factor = 0.75 + has_dlc = "Way of Life" + } + modifier = { + factor = 5.0 + has_ambition = obj_adopt_a_lifestyle + } + modifier = { + factor = 1.5 + learning = 12 + } + modifier = { + factor = 1.25 + age = 30 + } + modifier = { + factor = 1.25 + age = 35 + } + modifier = { + factor = 1.25 + age = 40 + } + modifier = { + factor = 1.25 + age = 45 + } + } + + immediate = { + set_character_flag = lifestyle_learning2_check + } + + option = { + name = EVTOPTA_PlusAmbitions_lifestyle_0025 #Learning + ai_chance = { + factor = 10 + modifier = { + factor = 2 + learning = 12 + } + modifier = { + factor = 1.5 + trait = detached_priest + } + modifier = { + factor = 2.0 + trait = martial_cleric + } + modifier = { + factor = 3.0 + trait = scholarly_theologian + } + modifier = { + factor = 4.0 + trait = mastermind_theologian + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_learning" value = 1.0 } + } + random = { + chance = 20 + change_learning = 1 + } + } + option = { + name = EVTOPTB_PlusAmbitions_lifestyle_0025 #Martial + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { martial = 5 } + } + modifier = { + factor = 2 + martial = 12 + } + modifier = { + factor = 1.5 + trait = misguided_warrior + } + modifier = { + factor = 2.0 + trait = tough_soldier + } + modifier = { + factor = 3.0 + trait = skilled_tactician + } + modifier = { + factor = 4.0 + trait = brilliant_strategist + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_martial" value = 1.0 } + } + random = { + chance = 20 + change_martial = 1 + } + } + option = { + name = EVTOPTC_PlusAmbitions_lifestyle_0025 #Stewardship + ai_chance = { + factor = 10 + modifier = { + factor = 0 + NOT = { stewardship = 5 } + } + modifier = { + factor = 2 + stewardship = 12 + } + modifier = { + factor = 1.5 + trait = indulgent_wastrel + } + modifier = { + factor = 2.0 + trait = thrifty_clerk + } + modifier = { + factor = 3.0 + trait = fortune_builder + } + modifier = { + factor = 4.0 + trait = midas_touched + } + } + hidden_tooltip = { + change_variable = { which = "lifestyle_stewardship" value = 1.0 } + } + random = { + chance = 20 + change_stewardship = 1 + } + } + option = { + name = EVTOPTD_PlusAmbitions_lifestyle_0025 #None of the above + scaled_wealth = 0.1 + } +} + diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions_lifestyle_events.csv b/CK2Plus/localisation/000_CK2Plus_ambitions_lifestyle_events.csv new file mode 100644 index 00000000..ce527ce5 --- /dev/null +++ b/CK2Plus/localisation/000_CK2Plus_ambitions_lifestyle_events.csv @@ -0,0 +1,93 @@ +#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0000;We started early, the sun had barely risen above the horizon. There was plenty of prey, the dogs caught many rabbits and I slayed one great boar before he killed my horse and myself.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0000;I'm a hunter;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0000;That lifestyle is not for me;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0001;The new bird is almost too perfect. I enjoy every hunt with her, and the cook has trouble finding new recipes for rabbit.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0001;I'm a falconer;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0002;I'm never happier than when I'm in my study, poring over some newly imported volume. Books are truly God's greatest gift to man.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0002;I'm a scholar;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0003;I found the strange book collecting dust in a forgotten corner of the castle library. It took me several weeks of intense study before its mystery revealed itself to me. The gibberish parts was encoded and after many hours trying to decipher I managed to break it and construct a key to make it easier for me to read. Its mystery is still not solved...;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0003;I'm a mystic;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0004;My regular excursions into the dungeon have only served to whet my appetite. I have sent for a skilled torturer who will teach me more about the arts of pain.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0004;I'm an impaler;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0005;My garden is the apple of my eye, my pride and joy. I distrust my gardener and would spend every hour of the day in my garden if I could.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0005;I'm a gardener;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0006;My modest attempts to write poetry were never meant to be published in any way, but wherever I go, bards and minstrels are reciting or singing my poems.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0006;I'm a poet;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0007;There is nothing that brings me more joy than the day-to-day task of ruling [Root.PrimaryTitle.GetName]. Some may think it lacks glory, but I do it well enough that I've become known for my prowess.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0007;I'm an administrator!;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0008;This lifestyle of utmost pleasure and joyous life suits me perfectly. This can be nothing but heaven.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0008;I'm a hedonist;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0009;The duel was close fought, but in the end I was victorious over my opponent. As I basked in the admiration of my peers, I knew that I had to do this again.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0009;I'm a duelist;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0010;I have finally become an expert in Islamic jurisprudence! My knowledge of the Qur'an, the Sunnah, Ijma' (Consensus) and Qiyas (Analogy) is what makes me a faqih and I will use that knowledge to be a better [Root.GetTitle] and ruler of my people.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0010;I am proud to have become a faqih!;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0011;Whenever the engineers are working in [Root.Capital.GetName], I always make an effort to visit them and talk. They have such interesting ideas! Building things has always been a pleasure for me, whether they be physical or far more abstract.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0011;I'm an architect!;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0012;What goes on behind a battle is far more interesting to me than the actual fighting. Strategies, manoeuvres, even the issues of attrition and supply...these are the things that matter most when it comes to victory, and it applies to far more things than simply the battlefield.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0012;I'm a strategist!;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0013;Spending time with other people--that's what gives me energy. Talking with them, knowing the things they want or don't want. I've always had a knack for it, and wherever I go you're bound to find me in the centre of the largest and loudest group.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0013;I'm a socializer!;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0014;I watch everything, and I listen. Other people don't see what I see--the cause and effect of every action, the moves and counter-moves that are required to make something happen. When I take action, it's very likely nobody will even know I did it. That is how plans succeed.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0014;I'm a schemer!;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0015;Playing a game well means understanding its inner workings. You must know the rules, you must know your opponent's strengths and weaknesses. It is life and politics played out on the chessboard. I play because I win, and I like winning...and, yes, sometimes just for fun. What could be better?;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0015;I'm a gamer!;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_lifestyle_0016;On a stormy but otherwise peaceful night in [Root.Capital.GetName], a traveling [Root.Religion.GetName] merchant takes refuge in your holding. He seems like an interesting man, and you've nothing else to distract you. How do you spend the evening?;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0016;Entertaining him, of course;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0016;Discussing fighting techniques with his guards;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0016;Debating him on matters of history;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0016;Relaxing by myself;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_lifestyle_0017;There is a social event happening this evening in [Root.Capital.GetName], one of the most important [Root.Capital.Religion.GetName] holidays. Everyone of importance will be partaking in the revelry.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0017;Of course I will attend!;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0017;I will watch everyone closely;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0017;This is a good opportunity to meet the merchants;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0017;They can do without me for one evening;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_lifestyle_0018;On a quiet day in [Location.GetName], you can't help but notice some of your knights sparring. One of them is doing a poor job of it, and the other men are making sport of his failures rather than helping him.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0018;Time to show them all a few tricks;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0018;I'll intervene, and perhaps raise morale;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0018;They need a lecture on good [Root.Religion.GetName] virtues;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0018;I will relax and leave them to it;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_lifestyle_0019;You overhear some courtiers in [Root.Location.GetName] arguing about the war. The disagreement is clearly about how a ruler could best contribute to victory. When they see you, they immediately go quiet and leave...but afterwards, you decide you have your own answer to their issue.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0019;By leading the armies into battle;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0019;By knowing what happens before the enemy;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0019;By keeping the armies fed and paid;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0019;By staying alive;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_lifestyle_0020;Peace reigns in the [Root.TopLiege.PrimaryTitle.GetFullName], and for once you are left with nothing to do and no councillors vying for your personal attention. An unusual circumstance, to be sure, but one you can easily solve.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0020;There are always matters of ruling to attend to;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0020;I shall call for a hunt in the nearby woods;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0020;Time for reading? That almost never happens;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0020;I will spend it with my loved ones;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_lifestyle_0021;You are riding with attendants through [Root.Capital.GetName] when you hear a disturbance ahead. One of your men suggests that you steer around it, as it appears to be some kind of violent dispute in the market between merchants. Hopefully it does not get out of hand!;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0021;I will intervene and resolve their dispute;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0021;I will speak with the men and calm the situation;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0021;I will watch to see what's happening, and why;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0021;I have larger issues upon which to focus;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_lifestyle_0022;Every time I think of my rival, [target_rival.GetTitledFirstNameNoRegnal], I wonder what I would do if [target_rival.GetSheHe] were here before me now, alone.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0022;Find out what [target_rival.GetSheHe] has planned;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0022;Kill [target_rival.GetHerHim], if I could;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0022;Try to resolve our differences;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0022;There's no use indulging such fantasies;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_lifestyle_0023;I can't stop thinking about my plot to [Root.GetPlot]. So many plans to make, but none of them seem to come to fruition fast enough!;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0023;Then I will make more plans;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0023;I will distract myself in the study;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0023;Time to busy myself at court;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0023;I will find a way! I must!;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_lifestyle_0024;You spend an evening with [debater.GetTitledFirstNameNoRegnal] as [debater.GetSheHe] goes on at length about the importance of [debater.Religion.GetName] virtues. It turns into a lively debate, and one [debater.GetTitledFirstNameNoRegnal] seems insistent on winning!;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0024;Win a debate? Against me? Hah!;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0024;I'll skillfully steer us onto another topic;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0024;[debater.GetSheHeCap] can't win--I cheat;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0024;I'll let [debater.GetHerHim] win--this time;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_lifestyle_0025;A traveling merchant comes to [Root.Capital.GetName], and it appears he has quite an assortment of rare books to offer. He is naturally quite eager to show them to you, and gauge your interest.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_lifestyle_0025;I will take them all, if I can;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_lifestyle_0025;Does he have anything on warfare?;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_lifestyle_0025;A treatise on governance would be interesting;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_lifestyle_0025;I would rather save my coin;;;;;;;;;;;;;x diff --git a/CK2Plus/localisation/000_CK2Plus_event_modifiers.csv b/CK2Plus/localisation/000_CK2Plus_event_modifiers.csv index bb258eac..89c624e1 100644 --- a/CK2Plus/localisation/000_CK2Plus_event_modifiers.csv +++ b/CK2Plus/localisation/000_CK2Plus_event_modifiers.csv @@ -6,14 +6,17 @@ # ############################### -plus_construction_focus;Construction Focus;Focus de la construction;Baufokus;;Enfoque de construcción;;;;;;;;;x -plus_construction_focus_desc;This province is focusing on construction.;Cette province se concentre sur la construction.;Diese Provinz konzentriert sich auf den Bau.;;Esta provincia se está centrando en la construcción.;;;;;;;;;x +plus_construction_focus;Construction Focus;Focus de la construction;Baufokus;;Enfoque de construcci�n;;;;;;;;;x +plus_construction_focus_desc;This province is focusing on construction.;Cette province se concentre sur la construction.;Diese Provinz konzentriert sich auf den Bau.;;Esta provincia se est� centrando en la construcci�n.;;;;;;;;;x -plus_faction_abandoned;Abandoned Faction;Faction Abandonnée;Verlassene Fraktion;;Facción abandonada;;;;;;;;;x -plus_faction_abandoned_desc;This character has previously left one of the main five factions.;Ce personnage a précédemment quitté l'une des cinq principales factions.;Dieser Charakter hat zuvor eine der fünf Hauptfraktionen verlassen.;;Este personaje ha dejado previamente una de las cinco facciones principales.;;;;;;;;;x +plus_faction_abandoned;Abandoned Faction;Faction Abandonn�e;Verlassene Fraktion;;Facci�n abandonada;;;;;;;;;x +plus_faction_abandoned_desc;This character has previously left one of the main five factions.;Ce personnage a pr�c�demment quitt� l'une des cinq principales factions.;Dieser Charakter hat zuvor eine der f�nf Hauptfraktionen verlassen.;;Este personaje ha dejado previamente una de las cinco facciones principales.;;;;;;;;;x -plus_increased_spy_reports;Increased Spy Reports;Augmentation des Rapports d'espionnage;Erhöhte Spionageberichte;;Aumento de Informes de Espías;;;;;;;;;x -plus_increased_spy_reports_desc;This character has more watchful eyes available.;Ce personnage a des yeux plus vigilants disponibles.;Dieser Charakter hat wachsamere Augen zur Verfügung.;;Este personaje tiene más ojos vigilantes disponibles.;;;;;;;;;x +plus_increased_spy_reports;Increased Spy Reports;Augmentation des Rapports d'espionnage;Erh�hte Spionageberichte;;Aumento de Informes de Esp�as;;;;;;;;;x +plus_increased_spy_reports_desc;This character has more watchful eyes available.;Ce personnage a des yeux plus vigilants disponibles.;Dieser Charakter hat wachsamere Augen zur Verf�gung.;;Este personaje tiene m�s ojos vigilantes disponibles.;;;;;;;;;x -plus_new_roads;New Roads;Nouvelles Routes;Neue Straßen;;Nuevos Caminos;;;;;;;;;x -plus_new_roads_desc;This province has improved roads.;Cette province a amélioré les routes.;Diese Provinz hat Straßen verbessert.;;Esta provincia ha mejorado las carreteras.;;;;;;;;;x \ No newline at end of file +plus_new_roads;New Roads;Nouvelles Routes;Neue Stra�en;;Nuevos Caminos;;;;;;;;;x +plus_new_roads_desc;This province has improved roads.;Cette province a am�lior� les routes.;Diese Provinz hat Stra�en verbessert.;;Esta provincia ha mejorado las carreteras.;;;;;;;;;x + +plus_attentive_liege;Attentive Liege;;;;;;;;;;;;;x +plus_attentive_liege_desc;The ruler is paying attention to their lands, ensuring that nothing goes wrong--at least for a while.;;;;;;;;;;;;;x \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_opinion_modifiers.csv b/CK2Plus/localisation/000_CK2Plus_opinion_modifiers.csv new file mode 100644 index 00000000..83b55fa7 --- /dev/null +++ b/CK2Plus/localisation/000_CK2Plus_opinion_modifiers.csv @@ -0,0 +1,3 @@ +#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x + +plus_good_speech;Good Speech;Bon orateur;Good Speech;;Good Speech;;;;;;;;;x From f46b45d074d168b615d8bdee801c3209846ec042 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Wed, 25 Mar 2020 18:29:47 +0100 Subject: [PATCH 04/23] Fixed numbers (leftovers from debugging) --- .../on_actions/000_CK2Plus_on_actions.txt | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt b/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt index 39a7384d..3d1deb4c 100644 --- a/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt +++ b/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt @@ -14,32 +14,32 @@ on_yearly_pulse = { random_events = { # Lifestyle Events - 500 = PlusAmbitions.lifestyle.0000 # Hunter - 500 = PlusAmbitions.lifestyle.0001 # Falconer - 500 = PlusAmbitions.lifestyle.0002 # Scholar - 500 = PlusAmbitions.lifestyle.0003 # Mystic - 500 = PlusAmbitions.lifestyle.0004 # Impaler - 500 = PlusAmbitions.lifestyle.0005 # Gardener - 500 = PlusAmbitions.lifestyle.0006 # Poet - 500 = PlusAmbitions.lifestyle.0007 # Administrator - 500 = PlusAmbitions.lifestyle.0008 # Hedonist - 500 = PlusAmbitions.lifestyle.0009 # Duelist - 500 = PlusAmbitions.lifestyle.0010 # Faqih - 500 = PlusAmbitions.lifestyle.0011 # Architect - 500 = PlusAmbitions.lifestyle.0012 # Strategist - 500 = PlusAmbitions.lifestyle.0013 # Socializer - 500 = PlusAmbitions.lifestyle.0014 # Schemer - 500 = PlusAmbitions.lifestyle.0015 # Gamer - 750 = PlusAmbitions.lifestyle.0016 # A traveling merchant visits during a storm - 750 = PlusAmbitions.lifestyle.0017 # A function is happening in the capital - 750 = PlusAmbitions.lifestyle.0018 # See your knights sparring together - 750 = PlusAmbitions.lifestyle.0019 # Courtiers arguing about the war - 750 = PlusAmbitions.lifestyle.0020 # A day of peace for a ruler - 750 = PlusAmbitions.lifestyle.0021 # A disturbance in the market - 750 = PlusAmbitions.lifestyle.0022 # Wondering about rival - 750 = PlusAmbitions.lifestyle.0023 # Thinking about the plot - 500 = PlusAmbitions.lifestyle.0024 # Debate with a zealous courtier - 750 = PlusAmbitions.lifestyle.0025 # Bookseller comes to court + 50 = PlusAmbitions.lifestyle.0000 # Hunter + 50 = PlusAmbitions.lifestyle.0001 # Falconer + 50 = PlusAmbitions.lifestyle.0002 # Scholar + 50 = PlusAmbitions.lifestyle.0003 # Mystic + 50 = PlusAmbitions.lifestyle.0004 # Impaler + 50 = PlusAmbitions.lifestyle.0005 # Gardener + 50 = PlusAmbitions.lifestyle.0006 # Poet + 50 = PlusAmbitions.lifestyle.0007 # Administrator + 50 = PlusAmbitions.lifestyle.0008 # Hedonist + 50 = PlusAmbitions.lifestyle.0009 # Duelist + 50 = PlusAmbitions.lifestyle.0010 # Faqih + 50 = PlusAmbitions.lifestyle.0011 # Architect + 50 = PlusAmbitions.lifestyle.0012 # Strategist + 50 = PlusAmbitions.lifestyle.0013 # Socializer + 50 = PlusAmbitions.lifestyle.0014 # Schemer + 50 = PlusAmbitions.lifestyle.0015 # Gamer + 75 = PlusAmbitions.lifestyle.0016 # A traveling merchant visits during a storm + 75 = PlusAmbitions.lifestyle.0017 # A function is happening in the capital + 75 = PlusAmbitions.lifestyle.0018 # See your knights sparring together + 75 = PlusAmbitions.lifestyle.0019 # Courtiers arguing about the war + 75 = PlusAmbitions.lifestyle.0020 # A day of peace for a ruler + 75 = PlusAmbitions.lifestyle.0021 # A disturbance in the market + 75 = PlusAmbitions.lifestyle.0022 # Wondering about rival + 75 = PlusAmbitions.lifestyle.0023 # Thinking about the plot + 75 = PlusAmbitions.lifestyle.0024 # Debate with a zealous courtier + 75 = PlusAmbitions.lifestyle.0025 # Bookseller comes to court } } From 91b7534c7469f1c11a9ec83a270aab9979b70d5e Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Wed, 25 Mar 2020 21:29:21 +0100 Subject: [PATCH 05/23] Added all 'amass_wealth' ambitions --- .../event_modifiers/000_CK2Plus_timers.txt | 7 +- .../objectives/000_CK2Plus_ambitions.txt | 311 +++++++++++++++++- CK2Plus/interface/000_CK2Plus_ambitions.gfx | 21 ++ .../localisation/000_CK2Plus_ambitions.csv | 9 + 4 files changed, 345 insertions(+), 3 deletions(-) diff --git a/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt b/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt index f90ba7bb..fc11ff47 100644 --- a/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt +++ b/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt @@ -1,9 +1,14 @@ ####### #Plus Timers: # -#Total = 01 +#Total = 02 ####### ai_objective_timer = { icon = 1 +} + +loan_timer = { + icon = 24 + monthly_character_piety = -0.25 } \ No newline at end of file diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index e545553a..28e788c4 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -2,7 +2,7 @@ # # Plus Ambitions: # -# Total = 01 +# Total = 04 # # Sorted alphabetically # @@ -92,4 +92,311 @@ obj_adopt_a_lifestyle = { prestige = 50 set_character_flag = obj_adopt_a_lifestyle } -} \ No newline at end of file +} + +obj_amass_wealth_2 = { + type = character + + potential = { + is_ruler = yes + lower_tier_than = KING + num_of_duke_titles < 4 + OR = { + tier = DUKE + num_of_count_titles >= 4 + } + NOT = { has_character_flag = obj_amass_wealth } + } + + allow = { + is_adult = yes + wealth < 500 + NOT = { trait = incapable } + NOT = { trait = charitable } + NOT = { has_character_modifier = loan_timer } + NOT = { has_character_flag = loan_taken } + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = patient + } + modifier = { + factor = 1.25 + trait = fortune_builder + } + modifier = { + factor = 1.25 + trait = midas_touched + } + modifier = { + factor = 10.0 + trait = greedy + } + modifier = { + factor = 0 + trait = charitable + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + wealth >= 500 + NOT = { has_character_modifier = loan_timer } + NOT = { has_character_flag = loan_taken } + } + abort = { + OR = { + trait = incapable + trait = charitable + has_character_modifier = loan_timer + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + change_variable = { which = "lifestyle_stewardship" value = 1 } + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + change_stewardship = 1 + set_character_flag = obj_amass_wealth + #if = { + # limit = { any_vassal = { leads_faction = faction_prosperity } } + # custom_tooltip = { text = PROSPERITYFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_prosperity } set_variable = { which = "faction_mood_increase" value = 2 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + } +} + +obj_amass_wealth_3 = { + type = character + + potential = { + is_ruler = yes + lower_tier_than = EMPEROR + num_of_king_titles < 4 + OR = { + tier = KING + num_of_duke_titles >= 4 + } + NOT = { has_character_flag = obj_amass_wealth } + } + + allow = { + is_adult = yes + wealth < 750 + NOT = { trait = incapable } + NOT = { trait = charitable } + NOT = { has_character_modifier = loan_timer } + NOT = { has_character_flag = loan_taken } + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = patient + } + modifier = { + factor = 1.25 + trait = fortune_builder + } + modifier = { + factor = 1.25 + trait = midas_touched + } + modifier = { + factor = 10.0 + trait = greedy + } + modifier = { + factor = 0 + trait = charitable + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + wealth >= 750 + NOT = { has_character_modifier = loan_timer } + NOT = { has_character_flag = loan_taken } + } + abort = { + OR = { + trait = incapable + trait = charitable + has_character_modifier = loan_timer + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + change_variable = { which = "lifestyle_stewardship" value = 1 } + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + change_stewardship = 1 + set_character_flag = obj_amass_wealth + #if = { + # limit = { any_vassal = { leads_faction = faction_prosperity } } + # custom_tooltip = { text = PROSPERITYFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_prosperity } set_variable = { which = "faction_mood_increase" value = 2 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + } +} + +obj_amass_wealth_4 = { + type = character + + potential = { + is_ruler = yes + OR = { + tier = EMPEROR + num_of_king_titles >= 4 + } + NOT = { has_character_flag = obj_amass_wealth } + } + + allow = { + is_adult = yes + wealth < 1000 + NOT = { trait = incapable } + NOT = { trait = charitable } + NOT = { has_character_modifier = loan_timer } + NOT = { has_character_flag = loan_taken } + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = patient + } + modifier = { + factor = 1.25 + trait = fortune_builder + } + modifier = { + factor = 1.25 + trait = midas_touched + } + modifier = { + factor = 10.0 + trait = greedy + } + modifier = { + factor = 0 + trait = charitable + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + wealth >= 1000 + NOT = { has_character_modifier = loan_timer } + NOT = { has_character_flag = loan_taken } + } + abort = { + OR = { + trait = incapable + trait = charitable + has_character_modifier = loan_timer + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + change_variable = { which = "lifestyle_stewardship" value = 1 } + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + change_stewardship = 1 + set_character_flag = obj_amass_wealth + #if = { + # limit = { any_vassal = { leads_faction = faction_prosperity } } + # custom_tooltip = { text = PROSPERITYFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_prosperity } set_variable = { which = "faction_mood_increase" value = 2 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + } +} diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index 96682136..f10f2adf 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -6,4 +6,25 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_amass_wealth_2" + texturefile = "gfx/ambitions/obj_amass_wealth.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_amass_wealth_3" + texturefile = "gfx/ambitions/obj_amass_wealth.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_amass_wealth_4" + texturefile = "gfx/ambitions/obj_amass_wealth.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index a04fbe68..02aa181a 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -7,3 +7,12 @@ ################################ obj_adopt_a_lifestyle_desc;[This.GetTitledFirstName] wants an exciting hobby to pursue.;;;;;;;;;;;;;x obj_adopt_a_lifestyle_title;Adopt a Lifestyle;;;;;;;;;;;;;x + +obj_amass_wealth_2_desc;[This.GetTitledFirstName] wants to amass a substantial amount of wealth;;;;;;;;;;;;;x +obj_amass_wealth_2_title;Amass Wealth;;;;;;;;;;;;;x + +obj_amass_wealth_3_desc;[This.GetTitledFirstName] wants to amass a substantial amount of wealth;;;;;;;;;;;;;x +obj_amass_wealth_3_title;Amass Wealth;;;;;;;;;;;;;x + +obj_amass_wealth_4_desc;[This.GetTitledFirstName] wants to amass a substantial amount of wealth;;;;;;;;;;;;;x +obj_amass_wealth_4_title;Amass Wealth;;;;;;;;;;;;;x \ No newline at end of file From ad97601fb0722524306e7f3209cf1d4001791278 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Wed, 25 Mar 2020 22:26:40 +0100 Subject: [PATCH 06/23] Added 'be_legtimized' ambition + some fixes --- .../000_CK2Plus_event_modifiers.txt | 8 + .../event_modifiers/000_CK2Plus_timers.txt | 14 +- .../minor_titles/000_CK2Plus_minor_titles.txt | 37 + .../objectives/000_CK2Plus_ambitions.txt | 223 +++++- .../000_CK2Plus_opinion_modifiers.txt | 8 +- .../000_CK2Plus_scripted_triggers.txt | 56 ++ .../events/000_CK2Plus_ambitions_bastard.txt | 719 ++++++++++++++++++ CK2Plus/events/on_action_events.txt | 4 +- CK2Plus/gfx/objectives/obj_bastard_legit.dds | Bin 0 -> 3264 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 7 + .../localisation/000_CK2Plus_ambitions.csv | 5 +- .../000_CK2Plus_ambitions_bastard_events.csv | 21 + .../localisation/000_CK2Plus_chronicles.csv | 2 + .../000_CK2Plus_custom_tooltips.csv | 9 +- 14 files changed, 1080 insertions(+), 33 deletions(-) create mode 100644 CK2Plus/common/minor_titles/000_CK2Plus_minor_titles.txt create mode 100644 CK2Plus/events/000_CK2Plus_ambitions_bastard.txt create mode 100644 CK2Plus/gfx/objectives/obj_bastard_legit.dds create mode 100644 CK2Plus/localisation/000_CK2Plus_ambitions_bastard_events.csv create mode 100644 CK2Plus/localisation/000_CK2Plus_chronicles.csv diff --git a/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt b/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt index c7ad40a3..f9bbe1a6 100644 --- a/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt +++ b/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt @@ -13,6 +13,7 @@ # plus_increased_spy_reports # plus_new_roads # plus_attentive_liege +# plus_estates_1 # ######################################### @@ -124,3 +125,10 @@ plus_attentive_liege = { global_revolt_risk = -0.03 icon = 1 } + +#Estates 1 +plus_estates_1 = { + monthly_character_wealth = 0.2 + monthly_character_prestige = 0.01 + icon = 101 +} diff --git a/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt b/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt index fc11ff47..0e6fa53b 100644 --- a/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt +++ b/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt @@ -1,14 +1,22 @@ ####### #Plus Timers: # -#Total = 02 +#Total = 04 ####### -ai_objective_timer = { +plus_ai_objective_timer = { icon = 1 } -loan_timer = { +plus_loan_timer = { icon = 24 monthly_character_piety = -0.25 +} + +plus_ai_austerity = { + icon = 1 +} + +plus_do_not_disturb = { + icon = 1 } \ No newline at end of file diff --git a/CK2Plus/common/minor_titles/000_CK2Plus_minor_titles.txt b/CK2Plus/common/minor_titles/000_CK2Plus_minor_titles.txt new file mode 100644 index 00000000..9e053f0e --- /dev/null +++ b/CK2Plus/common/minor_titles/000_CK2Plus_minor_titles.txt @@ -0,0 +1,37 @@ + +######################################################## +# CK2Plus MINOR TITLES +######################################################## + +title_lord = { + dignity = 0.1 + show_as_title = yes + realm_in_name = yes + grant_limit = 1000 + revoke_allowed = no + opinion_effect = 0 + monthly_prestige = 0.05 + + allowed_to_hold = { + OR = { + primary_title = { temporary = no } + NOT = { + primary_title = { + always = yes + } + } + } + has_minor_title = title_lord + } + + allowed_to_grant = { + always = no + } + + gain_effect = { + } + lose_effect = { + } + + message = no +} \ No newline at end of file diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 28e788c4..aed68eaa 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -50,7 +50,7 @@ obj_adopt_a_lifestyle = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -72,21 +72,21 @@ obj_adopt_a_lifestyle = { } AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { hidden_tooltip = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } prestige = 50 @@ -113,7 +113,7 @@ obj_amass_wealth_2 = { wealth < 500 NOT = { trait = incapable } NOT = { trait = charitable } - NOT = { has_character_modifier = loan_timer } + NOT = { has_character_modifier = plus_loan_timer } NOT = { has_character_flag = loan_taken } } chance = { @@ -148,7 +148,7 @@ obj_amass_wealth_2 = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -156,24 +156,24 @@ obj_amass_wealth_2 = { } success = { wealth >= 500 - NOT = { has_character_modifier = loan_timer } + NOT = { has_character_modifier = plus_loan_timer } NOT = { has_character_flag = loan_taken } } abort = { OR = { trait = incapable trait = charitable - has_character_modifier = loan_timer + has_character_modifier = plus_loan_timer AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { @@ -181,7 +181,7 @@ obj_amass_wealth_2 = { change_variable = { which = "lifestyle_stewardship" value = 1 } if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } change_stewardship = 1 @@ -216,7 +216,7 @@ obj_amass_wealth_3 = { wealth < 750 NOT = { trait = incapable } NOT = { trait = charitable } - NOT = { has_character_modifier = loan_timer } + NOT = { has_character_modifier = plus_loan_timer } NOT = { has_character_flag = loan_taken } } chance = { @@ -251,7 +251,7 @@ obj_amass_wealth_3 = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -259,24 +259,24 @@ obj_amass_wealth_3 = { } success = { wealth >= 750 - NOT = { has_character_modifier = loan_timer } + NOT = { has_character_modifier = plus_loan_timer } NOT = { has_character_flag = loan_taken } } abort = { OR = { trait = incapable trait = charitable - has_character_modifier = loan_timer + has_character_modifier = plus_loan_timer AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { @@ -284,7 +284,7 @@ obj_amass_wealth_3 = { change_variable = { which = "lifestyle_stewardship" value = 1 } if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } change_stewardship = 1 @@ -317,7 +317,7 @@ obj_amass_wealth_4 = { wealth < 1000 NOT = { trait = incapable } NOT = { trait = charitable } - NOT = { has_character_modifier = loan_timer } + NOT = { has_character_modifier = plus_loan_timer } NOT = { has_character_flag = loan_taken } } chance = { @@ -352,7 +352,7 @@ obj_amass_wealth_4 = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -360,24 +360,24 @@ obj_amass_wealth_4 = { } success = { wealth >= 1000 - NOT = { has_character_modifier = loan_timer } + NOT = { has_character_modifier = plus_loan_timer } NOT = { has_character_flag = loan_taken } } abort = { OR = { trait = incapable trait = charitable - has_character_modifier = loan_timer + has_character_modifier = plus_loan_timer AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { @@ -385,7 +385,7 @@ obj_amass_wealth_4 = { change_variable = { which = "lifestyle_stewardship" value = 1 } if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } change_stewardship = 1 @@ -400,3 +400,176 @@ obj_amass_wealth_4 = { #} } } + +obj_be_legitimized = { + type = character + + potential = { + trait = bastard + religion_group = christian + OR = { + is_ruler = no + NOR = { + is_theocracy = yes + trait = nun + trait = monk + } + } + NOR = { + any_liege = { holy_order = yes } + has_character_flag = refused_legitimacy_attempt + } + } + + allow = { + is_adult = yes + prisoner = no + true_father_even_if_dead = { + is_alive = yes + is_vassal_or_below = ROOT + NOT = { reverse_has_opinion_modifier = { who = ROOT modifier = denounced_child } } + } + NOR = { + age = 30 + trait = content + trait = humble + trait = craven + is_dumb_trigger = yes + trait = incapable + } + } + chance = { + factor = 50 + modifier = { + factor = 0 + is_female = yes + is_married = yes + spouse = { is_ruler = yes } + NOT = { is_ruler = yes } + } + modifier = { + factor = 0 + is_ruler = yes + current_heir = { + is_child_of = ROOT + dynasty = ROOT + } + } + modifier = { + factor = 0.1 + is_female = yes + has_law = agnatic_succession + } + modifier = { + factor = 0.5 + trait = patient + } + modifier = { + factor = 0.5 + trait = trusting + } + modifier = { + factor = 0.5 + trait = shy + } + modifier = { + factor = 0.1 + real_father = { + NOT = { religion = ROOT } + } + } + modifier = { + factor = 5 + is_female = no + real_father = { + NOT = { + any_child = { + NOT = { trait = bastard } + is_older_than = ROOT + } + } + } + } + modifier = { + factor = 5 + trait = ambitious + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 1.5 + trait = proud + } + modifier = { + factor = 1.5 + trait = brave + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + NOT = { trait = bastard } + } + abort = { + OR = { + NOT = { + real_father = { + is_alive = yes + ROOT = { any_liege = { character = PREVPREV } } + NOT = { reverse_has_opinion_modifier = { who = ROOT modifier = denounced_child } } + } + } + age = 45 + trait = content + trait = humble + trait = craven + trait = incapable + trait = nun + trait = monk + prisoner = yes + any_liege = { holy_order = yes } + NOT = { religion_group = christian } + has_character_flag = refused_legitimacy_attempt + AND = { + is_ruler = yes + capital_holding = { holding_type = temple } + } + AND = { + ai = yes + is_female = yes + is_married = yes + spouse = { is_ruler = yes } + } + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + change_intrigue = 1 + prestige = 50 + } +} \ No newline at end of file diff --git a/CK2Plus/common/opinion_modifiers/000_CK2Plus_opinion_modifiers.txt b/CK2Plus/common/opinion_modifiers/000_CK2Plus_opinion_modifiers.txt index ded9c419..dd5c9c6c 100644 --- a/CK2Plus/common/opinion_modifiers/000_CK2Plus_opinion_modifiers.txt +++ b/CK2Plus/common/opinion_modifiers/000_CK2Plus_opinion_modifiers.txt @@ -2,7 +2,7 @@ # # Plus opinion modifiers # -# Total = 3 +# Total = 4 # ############################## @@ -21,4 +21,10 @@ plus_faction_hostile = { #Factions may loot each other #Good speech plus_good_speech = { opinion = 10 +} + +#Legitimized me +plus_legitimized_me = { + opinion = 20 + months = 1200 } \ No newline at end of file diff --git a/CK2Plus/common/scripted_triggers/000_CK2Plus_scripted_triggers.txt b/CK2Plus/common/scripted_triggers/000_CK2Plus_scripted_triggers.txt index e21221fa..66550c94 100644 --- a/CK2Plus/common/scripted_triggers/000_CK2Plus_scripted_triggers.txt +++ b/CK2Plus/common/scripted_triggers/000_CK2Plus_scripted_triggers.txt @@ -25,4 +25,60 @@ is_not_animal_culture_group_CK2Plus_trigger = { culture_group = dragon_group culture_group = panda_group } +} + +plus_is_not_busy_trigger = { + custom_tooltip = { + text = plus_is_not_busy_trigger_tooltip + hidden_tooltip = { + NOR = { + has_character_modifier = plus_do_not_disturb + has_character_flag = plus_do_not_disturb + } + } + } +} + +plus_is_abroad_trigger = { + custom_tooltip = { + text = PLUS_IS_ABROAD_TOOLTIP + hidden_tooltip = { + OR = { + plus_in_command_trigger = yes + has_character_modifier = away_from_court + trait = on_hajj + trait = on_pilgrimage + #trait = learning_druidic_arts + AND = { + is_adult = no + educator = { + NOR = { + is_liege_of = PREV + same_liege = PREV + } + } + } + AND = { + prisoner = yes + OR = { + is_ruler = yes + host = { NOT = { is_liege_of = PREV } } + } + } + } + } + } +} + +plus_in_command_trigger = { + custom_tooltip = { + text = PLUS_IN_COMMAND_TOOLTIP + hidden_tooltip = { + in_command = yes + OR = { + war = yes + any_liege = { war = yes } + } + } + } } \ No newline at end of file diff --git a/CK2Plus/events/000_CK2Plus_ambitions_bastard.txt b/CK2Plus/events/000_CK2Plus_ambitions_bastard.txt new file mode 100644 index 00000000..f770eae3 --- /dev/null +++ b/CK2Plus/events/000_CK2Plus_ambitions_bastard.txt @@ -0,0 +1,719 @@ +namespace = PlusAmbitions.bastard + +####################################### +# BASTARD EVENTS +# Written by Rylock +####################################### + +### BASTARD ASKS TO BE LEGITIMIZED + +# Bastard has ambition to be legitimized +character_event = { + id = PlusAmbitions.bastard.0000 + desc = EVTDESC_PlusAmbitions_bastard_0000 + picture = GFX_evt_son_asking_father + + min_age = 16 + max_age = 45 + capable_only = yes + prisoner = no + + trigger = { + trait = bastard + has_ambition = obj_be_legitimized + real_father = { + plus_in_command_trigger = no + plus_is_abroad_trigger = no + has_regent = no + is_ruler = yes + plus_is_not_busy_trigger = yes + NOT = { is_inaccessible_trigger = yes } + } + NOR = { + has_character_flag = refused_legitimacy_attempt + is_inaccessible_trigger = yes + } + plus_is_not_busy_trigger = yes + } + + mean_time_to_happen = { + months = 30 + modifier = { + factor = 2 + is_ruler = yes + } + modifier = { + factor = 2 + is_female = yes + } + modifier = { + factor = 0.5 + trait = ambitious + } + modifier = { + factor = 0.75 + trait = proud + } + modifier = { + factor = 0.75 + trait = envious + } + modifier = { + factor = 1.5 + trait = patient + } + modifier = { + factor = 1.5 + trait = trusting + } + modifier = { + factor = 1.5 + trait = shy + } + } + + option = { + name = EVTOPTA_PlusAmbitions_bastard_0000 #It's now or never... + true_father_even_if_dead = { + character_event = { id = PlusAmbitions.bastard.0001 days = 3 } + } + hidden_tooltip = { + add_character_modifier = { + name = plus_do_not_disturb + hidden = yes + days = 3 + } + } + } +} + +# Bastard approaches father to ask to be legitimized +character_event = { + id = PlusAmbitions.bastard.0001 + desc = EVTDESC_PlusAmbitions_bastard_0001 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + option = { + name = EVTOPTA_PlusAmbitions_bastard_0001 # It is not going to happen + trigger = { + NOT = { diplomacy = 14 } + } + ai_chance = { + factor = 50 + modifier = { + factor = 2 + FROM = { is_female = yes } + } + modifier = { + factor = 2 + NOT = { religion = FROM } + } + modifier = { + factor = 1.5 + NOT = { opinion = { who = FROM value = 0 } } + } + modifier = { + factor = 1.5 + NOT = { opinion = { who = FROM value = -25 } } + } + modifier = { + factor = 1.5 + NOT = { reverse_opinion = { who = FROM value = 0 } } + } + modifier = { + factor = 1.5 + NOT = { reverse_opinion = { who = FROM value = -25 } } + } + modifier = { + factor = 0.5 + is_married = no + NOT = { num_of_children = 1 } + } + modifier = { + factor = 1.5 + num_of_children = 3 + } + modifier = { + factor = 1.5 + num_of_children = 4 + } + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = proud + } + modifier = { + factor = 5 + current_heir = { + is_child_of = ROOT + NOT = { is_older_than = FROM } + } + } + } + hidden_tooltip = { + FROM = { + set_character_flag = refused_legitimacy_attempt + character_event = { id = PlusAmbitions.bastard.0002 } + } + } + } + option = { + name = EVTOPTB_PlusAmbitions_bastard_0001 # Convince him that this is for the best + trigger = { + diplomacy = 14 + } + ai_chance = { + factor = 50 + modifier = { + factor = 2 + FROM = { is_female = yes } + } + modifier = { + factor = 2 + NOT = { religion = FROM } + } + modifier = { + factor = 1.5 + NOT = { opinion = { who = FROM value = 0 } } + } + modifier = { + factor = 1.5 + NOT = { opinion = { who = FROM value = -25 } } + } + modifier = { + factor = 1.5 + NOT = { reverse_opinion = { who = FROM value = 0 } } + } + modifier = { + factor = 1.5 + NOT = { reverse_opinion = { who = FROM value = -25 } } + } + modifier = { + factor = 0.5 + is_married = no + NOT = { num_of_children = 1 } + } + modifier = { + factor = 1.5 + num_of_children = 3 + } + modifier = { + factor = 1.5 + num_of_children = 4 + } + modifier = { + factor = 2 + trait = paranoid + } + modifier = { + factor = 2 + trait = cruel + } + modifier = { + factor = 2 + trait = proud + } + modifier = { + factor = 5 + current_heir = { + is_child_of = ROOT + NOT = { is_older_than = FROM } + } + } + } + tooltip_info = diplomacy + hidden_tooltip = { + FROM = { + set_character_flag = refused_legitimacy_attempt + character_event = { id = PlusAmbitions.bastard.0003 } + } + } + } + option = { + name = EVTOPTC_PlusAmbitions_bastard_0001 # Buy him an estate + trigger = { + wealth = 50 + FROM = { + is_ruler = no + spouse = { is_ruler = no } + NOR = { + has_character_modifier = plus_estates_1 + } + } + } + ai_chance = { + factor = 25 + modifier = { + factor = 1.5 + opinion = { who = FROM value = 0 } + } + modifier = { + factor = 1.5 + opinion = { who = FROM value = 25 } + } + modifier = { + factor = 0 + trait = greedy + } + modifier = { + factor = 0 + has_character_modifier = plus_ai_austerity + } + modifier = { + factor = 1.5 + wealth = 200 + } + modifier = { + factor = 1.5 + wealth = 400 + } + modifier = { + factor = 1.5 + trait = kind + } + modifier = { + factor = 2 + trait = charitable + } + } + wealth = -50 + FROM = { + set_character_flag = refused_legitimacy_attempt + character_event = { id = PlusAmbitions.bastard.0004 tooltip = plus_buy_off_with_estate } + } + } + option = { + name = EVTOPTD_PlusAmbitions_bastard_0001 # Legitimize him + ai_chance = { + factor = 25 + modifier = { + factor = 0.75 + NOT = { age = 50 } + } + modifier = { + factor = 0.5 + FROM = { + OR = { + trait = lunatic + trait = possessed + trait = drunkard + trait = inbred + is_weak_trigger = yes + } + } + } + modifier = { + factor = 2 + FROM = { + OR = { + is_smart_trigger = yes + diplomacy = 12 + martial = 12 + stewardship = 12 + intrigue = 12 + } + } + } + modifier = { + factor = 0.5 + NOT = { religion = FROM } + } + modifier = { + factor = 0.5 + NOT = { culture = FROM } + } + modifier = { + factor = 1.5 + opinion = { who = FROM value = 25 } + } + modifier = { + factor = 1.5 + opinion = { who = FROM value = 50 } + } + modifier = { + factor = 1.5 + opinion = { who = FROM value = 75 } + } + modifier = { + factor = 1.5 + reverse_opinion = { who = FROM value = 25 } + } + modifier = { + factor = 0 + NOT = { reverse_opinion = { who = FROM value = -50 } } + } + modifier = { + factor = 0 + NOT = { piety = 50 } + } + modifier = { + factor = 4 + OR = { + has_law = succ_gavelkind + has_law = succ_primogeniture + has_law = succ_seniority + } + NOT = { has_law = enatic_succession } + FROM = { is_female = no } + spouse = { is_pregnant = no } + current_heir = { + NOT = { is_child_of = ROOT } + } + } + modifier = { + factor = 4 + OR = { + has_law = succ_gavelkind + has_law = succ_primogeniture + has_law = succ_seniority + } + NOT = { has_law = agnatic_succession } + FROM = { is_female = yes } + spouse = { is_pregnant = no } + current_heir = { + NOT = { is_child_of = ROOT } + } + } + modifier = { + factor = 1.5 + trait = kind + } + modifier = { + factor = 1.5 + trait = just + } + modifier = { + factor = 1.5 + trait = honest + } + modifier = { + factor = 0 + num_of_children = 5 + } + } + piety = -50 + FROM = { + character_event = { id = PlusAmbitions.bastard.0005 tooltip = plus_legitimize_him } + } + hidden_tooltip = { + FROM = { + mother = { + opinion = { + who = ROOT + modifier = legitimized_child + years = 10 + } + } + } + spouse = { + if = { + limit = { + NOT = { + any_child = { character = FROM } + } + } + opinion = { + who = ROOT + modifier = legitimized_bastard + years = 20 + } + } + } + any_child = { + limit = { + NOT = { character = FROM } + dynasty = ROOT + NOT = { trait = bastard } + } + opinion = { + who = ROOT + modifier = legitimized_bastard + months = 12 + } + } + } + } + + } + +# Father outright refuses to legitimize the bastard +character_event = { + id = PlusAmbitions.bastard.0002 + desc = EVTDESC_PlusAmbitions_bastard_0002 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + option = { + name = EVTOPTA_PlusAmbitions_bastard_0002 # So be it + ai_chance = { + factor = 30 + modifier = { + factor = 1.5 + trait = kind + } + modifier = { + factor = 1.5 + trait = charitable + } + modifier = { + factor = 1.5 + trait = patient + } + modifier = { + factor = 0 + OR = { + trait = lunatic + trait = possessed + trait = wroth + trait = ambitious + } + } + } + opinion = { + who = FROM + modifier = opinion_very_disappointed + years = 5 + } + random = { + chance = 50 + add_trait = content + } + } + option = { + name = EVTOPTB_PlusAmbitions_bastard_0002 # This isn't right! + ai_chance = { + factor = 70 + modifier = { + factor = 1.5 + trait = greedy + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 1.5 + trait = cruel + } + modifier = { + factor = 1.5 + trait = just + } + } + set_character_flag = potential_trouble_bastard + opinion = { + who = FROM + modifier = denounced_child + years = 20 + } + if = { + limit = { NOT = { trait = wroth } } + random = { + chance = 20 + add_trait = wroth + } + } + if = { + limit = { NOT = { trait = ambitious } } + random = { + chance = 50 + add_trait = ambitious + } + } + } +} + +# Father diplomatically refuses to legitimize the bastard +character_event = { + id = PlusAmbitions.bastard.0003 + desc = EVTDESC_PlusAmbitions_bastard_0003 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + option = { + name = EVTOPTA_PlusAmbitions_bastard_0002 # So be it + opinion = { + who = FROM + modifier = opinion_very_disappointed + years = 5 + } + if = { + limit = { trait = ambitious } + random = { + chance = 25 + remove_trait = ambitious + } + } + } +} + +# Father buys off the bastard with an estate +character_event = { + id = PlusAmbitions.bastard.0004 + desc = EVTDESC_PlusAmbitions_bastard_0004 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + + option = { + name = EVTOPTA_PlusAmbitions_bastard_0002 # So be it + ai_chance = { + factor = 70 + modifier = { + factor = 1.5 + trait = kind + } + modifier = { + factor = 1.5 + trait = charitable + } + modifier = { + factor = 1.5 + trait = patient + } + modifier = { + factor = 0 + OR = { + trait = lunatic + trait = possessed + } + } + modifier = { + factor = 0.1 + OR = { + trait = wroth + trait = ambitious + } + } + } + add_character_modifier = { + name = "plus_estates_1" + duration = -1 + } + give_minor_title = title_lord + random = { + chance = 50 + add_trait = content + } + } + option = { + name = EVTOPTB_PlusAmbitions_bastard_0004 # That's not enough! + ai_chance = { + factor = 30 + modifier = { + factor = 1.5 + trait = greedy + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 1.5 + trait = cruel + } + modifier = { + factor = 1.5 + trait = just + } + } + set_character_flag = potential_trouble_bastard + add_character_modifier = { + name = "plus_estates_1" + duration = -1 + } + give_minor_title = title_lord + opinion = { + who = FROM + modifier = opinion_very_disappointed + years = 5 + } + if = { + limit = { NOT = { trait = wroth } } + random = { + chance = 20 + add_trait = wroth + } + } + if = { + limit = { NOT = { trait = ambitious } } + random = { + chance = 50 + add_trait = ambitious + } + } + } +} + +# Father legitimizes the bastard +character_event = { + id = PlusAmbitions.bastard.0005 + desc = EVTDESC_PlusAmbitions_bastard_0004 + picture = GFX_evt_son_asking_father + + is_triggered_only = yes + major = yes + + major_trigger = { + OR = { + character = FROM + is_close_relative = FROM + dynasty = FROM + vassal_of = FROM + is_close_relative = ROOT + } + } + + option = { + name = EXCELLENT + trigger = { character = ROOT } + opinion = { + who = FROM + modifier = plus_legitimized_me + years = 20 + } + set_father = FROM + set_real_father = 0 + any_child = { + limit = { dynasty = ROOT } + dynasty = FROM + any_child = { + limit = { dynasty = ROOT } + dynasty = FROM + } + } + dynasty = FROM + remove_trait = bastard + add_trait = legit_bastard + recalc_succession = yes + if = { + limit = { ai = no } + chronicle = { + entry = CHRONICLE_LEGITIMIZED_BY_FATHER + portrait = [Root.GetID] + } + } + } + option = { + name = OK + trigger = { NOT = { character = ROOT } } + if = { + limit = { ai = no } + chronicle = { + entry = CHRONICLE_LEGITIMIZED_BY_FATHER + portrait = [Root.GetID] + } + } + } +} \ No newline at end of file diff --git a/CK2Plus/events/on_action_events.txt b/CK2Plus/events/on_action_events.txt index 960f3bea..96c4c757 100644 --- a/CK2Plus/events/on_action_events.txt +++ b/CK2Plus/events/on_action_events.txt @@ -5806,7 +5806,7 @@ character_event = { } } -# Safety check event for flag clearace - do_not_disturb etc +# Safety check event for flag clearace - plus_do_not_disturb etc character_event = { id = 63106 @@ -5817,7 +5817,7 @@ character_event = { immediate = { if = { limit = { - had_character_flag = { flag = do_not_disturb days = 1800 } # Clears if flag has stayed on for 5 years approx + had_character_flag = { flag = plus_do_not_disturb days = 1800 } # Clears if flag has stayed on for 5 years approx } clr_character_flag = do_not_disturb } diff --git a/CK2Plus/gfx/objectives/obj_bastard_legit.dds b/CK2Plus/gfx/objectives/obj_bastard_legit.dds new file mode 100644 index 0000000000000000000000000000000000000000..c0b5ca3d79ef950d5930cc937234cc3102c76ed8 GIT binary patch literal 3264 zcmb7`X;5O>702CoTxd~IK%L&yMr>PAyW5R!ZM(JG6{T?nQ4thz0YPLF_Z0-erMr_% zRWg&ROeK|kNIv94)=ABDRZ^9jr1B~G(lgVUINjsUTY#7IaJp)eno4F~@#owJ_nzN9 z=Ug7As;VVJ9}o}_7atJ70845VL|%dC<{Q6fz)aqkv&nHl0P*H^eglkebH&BR1joik zhf`uA6QiOcG9n`**bxz7MWB+fu&|PlkPvQAP~f$|z(6MWrGmmh!QX~K&IMn=2??>` z6iN&|K0f9KH6cy__tS}q3EN3Y@$V)k#=i%j|A<0~dM6@0d@D3GSRE7;)Cfy+K{V0@ z=o@ikVj_d%;$jlOHzz5H+DlKN?Ql3(pZE0Cf2P+vGdw&rI60Xb4{_bg$Vhu85;yMK?HbhK&|yydH0pF1 zaF@e~Z#zu*j$dYccWcJ810wC-mc_g0wD@*iX2Rvt`y5+ScvI8em*L@Io8Y@NCOV4p z)i_gAFGSPn7j9%^rmgY$)t}g`8n@M|MeQ~n=CDrV4yzt_ZUS@D2r}XJjcI&sY4Xjz z$GK_rY}pK84c;xg-fQ2~d2BW!!|ecIQRmY{459D_x3#Y2>8w3)rCpSX*1$Zs}Xl>7;yW# z4&PYScx+ZJzOk;sH`XT6oa~DqG8w574*M#TS6&>-$-NqV@gl1{C+pG=#>YiRE6XZ$ zc|nb>Eom{^+BC#sz_!4jYtxKvgBE8e@WO&-U;gzrpKfxH{2X{D40xD*O^;bureN(P zwlp_^EiH~CN=5fUcGg?Z3iH|J?X3@Ev$8HSv$HQr%SsFXyf{DRo}U{>fQPTIKy0vn z3w$|kX3S-`fM&2qbv0fNM@nR7b`Vu}cwTZJPOBN++AyJxbpvW!)nOY;8fEglZ?%XZ2`-DG_Fslmf^4`KhM5yL|~8T#)=MITbM-WXT}i2lxAkS& ztpaD$qpFhPBF_Dy!rY&zCwdP}dd10{c@$Ya=V5*x#ODH@ea(Os6>_}!`6EPW=?rn{ zl9*sJn~CdrIbO&5m%KFtvbm~9V6Vvfq83@2Rk_Xj;S-Ij?^X4k(w_mZzN9!$aQkNd zZ>P1=1H+X3c-}mQtjue$jb)vm0eOO)nz8PVCJ%#ANmNwW2sT?uq^Apj*-y~vm4v9X z35Q%FuqV{dTh_VPfVVQQc3TW1$0ps-tA`JGziVl@-&1*t@DxO9Y6Ij{=#P_=Tj5)pQ$y|a2&_S@ z=REh)tom%$pggn~M_x78-+L}-sg;(O6%JIEb3cT9?yHo&uTA=4WN~I3U7epqVI8^& zc^v3%$CHzJkVgk07Vi)l8C?W}(G2+%z_}sEb;Rhfgv<$ua%$98kJ{@78SV$CF6WlTjxnn?<5q8 zcZsyL$Kbz}NKCATTt4#0$YQk;9gl_h>Y^5fS|BUHBWnk&;~D+PYol&xzqz66{kG=X zzMCcaLT(}Z7ri~rAItiMpG}TQPE5Mt(>c?qdl_;>)}iW7wKqFkLI{NpB0paPoJN8| zx#{PTv1Vkn6SWT>dB{3I4v_`e>#T9~%rvby0DZ1e4eZy}RQ|lR@j)B6Aom_8H|u*% z4ORc>?csl_kaZquRnilqR(>{b8gnmNCXjYP6P}*lO7QtsqPBJ(;u8=w+I@(%)t^rm ztA!Zo?ZP2{=)#N&vlvGag8yoKa zT_||CKPYKC7#{3A0p=+@vk1Zi(;#%Z)Nh^HOYP2}at2@a>9NJ*(7YHRL!;M`*- zm}k%_&R`Av=A%Q{cS6(aYPY5*~4WGI|dOu!f5RlEn@>zopA9;e7B>T1QOwQ}5`8^*vQ z8dbl0VoY*2t`wh*j)+ex%8NfLxN&W|n9IrGRhC4gvr+>S;wcF<+J#%GblSqroB4kc z3Tj`9x|zuWfa=szOs|popKVYd9L65V8?K({$0tU6QK$tv zGTiM}Dnw@w>v*5A*;n?iT+ZZO%ekCD{vVMS^j#rQk&zc-V`Hk|zse5JfWNi1J^WnU z(?T*&`y~SRkhB9Gk#}KZ3K6CnmEfu|zdRE#9#{5yMinAlG2DYGhPp_LHq=+`U%JG4 zCoL_diN#E%#l=xV&S~fGq0nSOk3|a$3$1~^YrU{A_oMEvrq6rDt;YkBwo}=F5E+tn z;=}SzY*-FHL0~;Y@=j2fM-Jb~2Rm??tOKpA;C>2q`YtVz%BND}>GA)?dc%c2Cm2Kx z4h}AZUO-Q$C;zgp?#`!ueS(9&KH;fU+Kx&GgqXDdF)ot|aoM?lk4)By4i2`XO-=U? zGc%db6B6Q9Vq+=Q&`%~)DAE5B*BjPXEZI-RL9E%p6##dGPEY!EX({&wzvaP!NYv^c z9PC78vMy92X>&u~k18rkUP9mV0o20z(a>B#I|0n0)R|Bi@ literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index f10f2adf..ee9bb1ab 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -27,4 +27,11 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_be_legitimized" + texturefile = "gfx/objectives/obj_bastard_legit.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index 02aa181a..4221fca2 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -15,4 +15,7 @@ obj_amass_wealth_3_desc;[This.GetTitledFirstName] wants to amass a substantial a obj_amass_wealth_3_title;Amass Wealth;;;;;;;;;;;;;x obj_amass_wealth_4_desc;[This.GetTitledFirstName] wants to amass a substantial amount of wealth;;;;;;;;;;;;;x -obj_amass_wealth_4_title;Amass Wealth;;;;;;;;;;;;;x \ No newline at end of file +obj_amass_wealth_4_title;Amass Wealth;;;;;;;;;;;;;x + +obj_be_legitimized_desc;[This.GetTitledFirstName] wants to have [This.GetHerHis] father to recognize [This.GetHerHis] legitimacy, and thus grant [This.GetHerHim] a proper inheritance.;;;;;;;;;;;;;x +obj_be_legitimized_title;Be Legitimized;;;;;;;;;;;;;x \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions_bastard_events.csv b/CK2Plus/localisation/000_CK2Plus_ambitions_bastard_events.csv new file mode 100644 index 00000000..1c6d506a --- /dev/null +++ b/CK2Plus/localisation/000_CK2Plus_ambitions_bastard_events.csv @@ -0,0 +1,21 @@ +#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x + +EVTDESC_PlusAmbitions_bastard_0000;I have been gearing up for this confrontation for some time now. I have gained an audience, and will ask my father to recognize me.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_bastard_0000;It's now or never...;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_bastard_0001;It was rather unexpected when [From.GetTitledFirstName] asked for an audience, but when [From.GetSheHe] arrived [From.GetSheHe] explained that [From.GetSheHe] is a fully-grown [From.GetManWoman]...one that [From.GetSheHe] hopes is worthy of being considered your legitimate [GetFromRelation].;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_bastard_0001;That is not going to happen;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_bastard_0001;Convince [From.GetHerHim] why this cannot be;;;;;;;;;;;;;x +EVTOPTC_PlusAmbitions_bastard_0001;Refuse, but buy [From.GetHerHim] an estate;;;;;;;;;;;;;x +EVTOPTD_PlusAmbitions_bastard_0001;Legitimize [From.GetHerHim];;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_bastard_0002;[From.GetTitledFirstName] shook his head. 'No,' he said. 'That is simply never going to happen. Put it out of your head.' Then he had me escorted from the court.;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_bastard_0002;So be it;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_bastard_0002;This isn't right!;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_bastard_0003;[From.GetTitledFirstName] listened to me for some time, and then he sat me down and we talked at length. He explained the political realities in [From.PrimaryTitle.GetName], and why legitimizing me would complicate things. I'm disappointed, but I do see the truth in his words.;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_bastard_0004;[From.GetTitledFirstName] listened to my plea for some time. While he ultimately did refuse to legitimize me, he offered me an estate off of which to live. It will make me a [Root.GetLordLady] of [From.PrimaryTitle.GetName], but is that enough?;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_bastard_0004;No, it's not enough!;;;;;;;;;;;;;x + +EVTDESC_PlusAmbitions_bastard_0005;'Know that I, [From.GetTitledName], hereby consider [Root.GetTitledFirstName] to be my legitimate child and to be considered such throughout [From.PrimaryTitle.GetName]. [Root.GetSheHeCap] will take [Root.GetHerHis] rightful place within the [From.GetOnlyDynastyName] dynasty and among my heirs. By the grace of [From.Religion.GetRandomGodName] shall this be so.';;;;;;;;;;;;;x diff --git a/CK2Plus/localisation/000_CK2Plus_chronicles.csv b/CK2Plus/localisation/000_CK2Plus_chronicles.csv new file mode 100644 index 00000000..de148348 --- /dev/null +++ b/CK2Plus/localisation/000_CK2Plus_chronicles.csv @@ -0,0 +1,2 @@ +#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x +CHRONICLE_LEGITIMIZED_BY_FATHER;[Root.GetTitledFirstName] was declared a legitimate child of [From.GetTitledName].;[Root.GetTitledFirstName] was declared a legitimate child of [From.GetTitledName].;[Root.GetTitledFirstName] was declared a legitimate child of [From.GetTitledName].;;[Root.GetTitledFirstName] was declared a legitimate child of [From.GetTitledName].;;;;;;;;;x diff --git a/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv b/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv index 61f5428f..1159ee4b 100644 --- a/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv +++ b/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv @@ -7,4 +7,11 @@ ##################### #Character -plus_favor;Owes a §YFavor§!.;Doit une §Faveur§!;Verdankt einen §Gefallen§!;;Debe un §Favor§!;;;;;;;;;x \ No newline at end of file +plus_favor;Owes a �YFavor�!.;Doit une �Faveur�!;Verdankt einen �Gefallen�!;;Debe un �Favor�!;;;;;;;;;x + +plus_legitimize_him;Declare [This.GetHerHim] your legitimate child;;;;;;;;;;;;;x +plus_buy_off_with_estate;Give [From.GetTitledFirstName] an estate off of which to live;;;;;;;;;;;;;x + +PLUS_IN_COMMAND_TOOLTIP;In command of an army while at war\n;;;;;;;;;;;;;x +PLUS_IS_ABROAD_TOOLTIP;Is currently abroad\n;;;;;;;;;;;;;x +plus_is_not_busy_trigger_tooltip;Is currently not involved in an important event\n;;;;;;;;;;;;;x \ No newline at end of file From aabc198b2357a427048e42a9f8863e949aa3696e Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Wed, 25 Mar 2020 22:33:19 +0100 Subject: [PATCH 07/23] Changed real_father to true_father_even_if_dead --- CK2Plus/events/000_CK2Plus_ambitions_bastard.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CK2Plus/events/000_CK2Plus_ambitions_bastard.txt b/CK2Plus/events/000_CK2Plus_ambitions_bastard.txt index f770eae3..95a3a039 100644 --- a/CK2Plus/events/000_CK2Plus_ambitions_bastard.txt +++ b/CK2Plus/events/000_CK2Plus_ambitions_bastard.txt @@ -21,7 +21,7 @@ character_event = { trigger = { trait = bastard has_ambition = obj_be_legitimized - real_father = { + true_father_even_if_dead = { plus_in_command_trigger = no plus_is_abroad_trigger = no has_regent = no From 577a793961acfd4e329d8ca4e35bb688329507b6 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Thu, 26 Mar 2020 18:32:42 +0100 Subject: [PATCH 08/23] Added 'exalted_X' ambitions --- .../objectives/000_CK2Plus_ambitions.txt | 343 +++++++++++++++++- .../traits/000_CK2Plus_traits_general.txt | 64 ++++ CK2Plus/gfx/traits/exalted2.tga | Bin 0 -> 2322 bytes CK2Plus/gfx/traits/exalted3.tga | Bin 0 -> 2322 bytes CK2Plus/gfx/traits/exalted4.tga | Bin 0 -> 2322 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 21 ++ CK2Plus/interface/000_CK2Plus_traits.gfx | 22 ++ .../localisation/000_CK2Plus_ambitions.csv | 11 +- CK2Plus/localisation/000_CK2Plus_traits.csv | 46 ++- 9 files changed, 486 insertions(+), 21 deletions(-) create mode 100644 CK2Plus/gfx/traits/exalted2.tga create mode 100644 CK2Plus/gfx/traits/exalted3.tga create mode 100644 CK2Plus/gfx/traits/exalted4.tga diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index aed68eaa..4c09b7cc 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -2,7 +2,7 @@ # # Plus Ambitions: # -# Total = 04 +# Total = 08 # # Sorted alphabetically # @@ -572,4 +572,345 @@ obj_be_legitimized = { change_intrigue = 1 prestige = 50 } +} + +obj_become_exalted_2 = { + type = character + + potential = { + is_ruler = yes + NOR = { + trait = exalted2 + trait = exalted3 + trait = exalted4 + } + lower_tier_than = KING + num_of_duke_titles < 4 + OR = { + tier = DUKE + num_of_count_titles >= 4 + } + } + + allow = { + is_adult = yes + prestige >= 0 + prestige < 2000 + NOT = { trait = content } + NOT = { trait = humble } + NOT = { trait = incapable } + } + chance = { + factor = 50 + + modifier = { + factor = 1.25 + trait = patient + } + modifier = { + factor = 0 + NOT = { prestige = 500 } + } + modifier = { + factor = 5.0 + trait = ambitious + } + modifier = { + factor = 10.0 + trait = proud + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + prestige >= 2000 + } + abort = { + OR = { + is_ruler = no + prestige < 0 + trait = incapable + trait = content + trait = humble + trait = exalted2 + trait = exalted3 + trait = exalted4 + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + change_diplomacy = 1 + prestige = 100 + #if = { + # limit = { any_vassal = { leads_faction = faction_glory } } + # custom_tooltip = { text = GLORYFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_glory } set_variable = { which = "faction_mood_increase" value = 4 } } + # } + #} + #if = { + # limit = { any_vassal = { leads_faction = faction_court } } + # custom_tooltip = { text = COURTFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 2 } } + # } + #} + #hidden_tooltip = { character_event = { id = PlusFaction.200 days = 1 } } #recalculate faction moods + if = { + limit = { + has_nickname = no + } + give_nickname = nick_the_great + } + add_trait = exalted2 + } +} + +obj_become_exalted_3 = { + type = character + + potential = { + is_ruler = yes + NOR = { + trait = exalted3 + trait = exalted4 + } + lower_tier_than = EMPEROR + num_of_king_titles < 4 + OR = { + tier = KING + num_of_duke_titles >= 4 + } + } + + allow = { + is_adult = yes + prestige >= 0 + prestige < 3000 + NOT = { trait = content } + NOT = { trait = humble } + NOT = { trait = incapable } + } + chance = { + factor = 50 + + modifier = { + factor = 1.25 + trait = patient + } + modifier = { + factor = 0 + prestige < 1000 + } + modifier = { + factor = 5.0 + trait = ambitious + } + modifier = { + factor = 10.0 + trait = proud + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + prestige >= 3000 + } + abort = { + OR = { + is_ruler = no + prestige < 0 + trait = incapable + trait = content + trait = humble + trait = exalted3 + trait = exalted4 + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 100 + #if = { + # limit = { any_vassal = { leads_faction = faction_glory } } + # custom_tooltip = { text = GLORYFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_glory } set_variable = { which = "faction_mood_increase" value = 4 } } + # } + #} + #if = { + # limit = { any_vassal = { leads_faction = faction_court } } + # custom_tooltip = { text = COURTFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 2 } } + # } + #} + #hidden_tooltip = { character_event = { id = PlusFaction.200 days = 1 } } #recalculate faction moods + if = { + limit = { + has_nickname = no + } + give_nickname = nick_the_great + } + add_trait = exalted3 + } +} + +obj_become_exalted_4 = { + type = character + + potential = { + is_ruler = yes + NOT = { trait = exalted4 } + OR = { + tier = EMPEROR + num_of_king_titles >= 4 + } + } + + allow = { + is_adult = yes + prestige >= 0 + prestige < 4000 + NOT = { trait = content } + NOT = { trait = humble } + NOT = { trait = incapable } + } + chance = { + factor = 50 + + modifier = { + factor = 0 + trait = humble + } + modifier = { + factor = 0 + trait = content + } + modifier = { + factor = 1.25 + trait = patient + } + modifier = { + factor = 0 + prestige < 2000 + } + modifier = { + factor = 5.0 + trait = ambitious + } + modifier = { + factor = 10.0 + trait = proud + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + prestige >= 4000 + } + abort = { + OR = { + is_ruler = no + prestige < 0 + trait = incapable + trait = content + trait = humble + trait = exalted4 + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 100 + #if = { + # limit = { any_vassal = { leads_faction = faction_glory } } + # custom_tooltip = { text = GLORYFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_glory } set_variable = { which = "faction_mood_increase" value = 4 } } + # } + #} + #if = { + # limit = { any_vassal = { leads_faction = faction_court } } + # custom_tooltip = { text = COURTFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 2 } } + # } + #} + #hidden_tooltip = { character_event = { id = PlusFaction.200 days = 1 } } #recalculate faction moods + if = { + limit = { + has_nickname = no + } + give_nickname = nick_the_great + } + add_trait = exalted4 + } } \ No newline at end of file diff --git a/CK2Plus/common/traits/000_CK2Plus_traits_general.txt b/CK2Plus/common/traits/000_CK2Plus_traits_general.txt index ad380581..f6d95c5b 100644 --- a/CK2Plus/common/traits/000_CK2Plus_traits_general.txt +++ b/CK2Plus/common/traits/000_CK2Plus_traits_general.txt @@ -17,4 +17,68 @@ baby_toddler = { # this one actually applies modifiers, always active ai_ambition = -10 ai_zeal = -10 ai_rationality = -20 +} + + +exalted2 = { + customizer = no + random = no + + opposites = { + exalted1 + exalted3 + exalted4 + } + + general_opinion = 15 + command_modifier = { + morale_offence = 0.10 + morale_defence = 0.10 + } + ai_ambition = 20 + + male_compliment_adj = COMPL_GREAT + female_compliment_adj = COMPL_GREAT +} + +exalted3 = { + customizer = no + random = no + + opposites = { + exalted1 + exalted2 + exalted4 + } + + general_opinion = 20 + command_modifier = { + morale_offence = 0.15 + morale_defence = 0.15 + } + ai_ambition = 30 + + male_compliment_adj = COMPL_GREAT + female_compliment_adj = COMPL_GREAT +} + +exalted4 = { + customizer = no + random = no + + opposites = { + exalted1 + exalted2 + exalted3 + } + + general_opinion = 25 + command_modifier = { + morale_offence = 0.20 + morale_defence = 0.20 + } + ai_ambition = 40 + + male_compliment_adj = COMPL_GREAT + female_compliment_adj = COMPL_GREAT } \ No newline at end of file diff --git a/CK2Plus/gfx/traits/exalted2.tga b/CK2Plus/gfx/traits/exalted2.tga new file mode 100644 index 0000000000000000000000000000000000000000..133db20722f7a2bf359ffe46335eec90452bd6a9 GIT binary patch literal 2322 zcma)7YfzL`7)Fec6@sEk?jW#NcHNtTmWHGV2rQ^9C?En}AtBKe0z_^m$SrRuu!>*^ zi+LMY4c0NTF(Av-oJMo-R%80d8UOafr}G~CR$|oYn|b#;XU{p$`<(ake0FyBcEaOf z=V2Ex34q;Lqg9$aI5^B;!#bM2$tFygfGM6HwC6w1SWICoY;bpX@1t{UjwK)Svo;@9 zSz_Cm)&+BNazfaw(9;5jfI0R}Ywy12cAl^|rASbj8EiYh@Ah5Wm@tL8m%AgrSQg0F z9NvBlGP$(ibv_&&9r?bENdY)gsKUt#EuY_c_7BGsFvrhZ3lu0{5ybb}+uK7T6=#n3 z;py$g*Ygtn(ZR6wIt}~-0{DN#_rjy6w(gYWtPMk=4`9txU7a0NK z{&{i$n)Bu8ESd&iKR>Kqvldy|D{Z*MO{dd?&eNFUIDbJjynTGpuuh6S>lG+mI_ksC z&5ipYd}n88tc~~K>jyW5aQ=aTL8z$Ofx5b{(B9q-qtS>Sb1$?y9g>oa$o(`ArDc^^ zxh4le!D8em`k`e*2pV%`SfAj>IjPjjA4MV&A5+X}y|qBeO{brZn%V|@bNmEaTTRHy z%0gdXA3{UJkd~It@He3K;9>0Ew;#IcGmsta!_V!_lVfwrRE|kC#exK5xF`RQ@X4C< z6_6_w*j!kQx`sw{baWzo?p$a{kMF+*Nd}q9_NIQ zUe-0`lwv2~H?mmDc= zhSB&C2E~ZtP29=G$EGS%46#^(!Jn@|r`Ln>BN9!H$J=P8F{@hKlv^MWdynTGoe87Z(f$uRq zJj{Ibz|__T1H+Fu7!bvH#~Tu1Oj(90EOr@@Ug#-RbDk9cRWZJ{_)~7KnsafnaW=?T zFS`rfxu&)rgG0l(as39YRx5TjHF5lfv9XAXiov2KMxFzz&zeNTv_8 zx4T%)@w-bjw%EA1xGZIQx|8(eQgaOM4|U@DsUm(46U$MEQiXLn>tSZP(BI#W^XJYX zJ#9JS;^H}eJo7b8tpU{oX)VQ<`j={-v}sQGY=6ex&ezYUn&vkxTk+_o1%roD&{sPH zRZRbbnYOH8JwzH|u~?A*SpgCZiW)Hj9hNPgDYJa`QZSD+Ea09ZzQNEcdnN5`x2k2L4p4ZTkt_| aKYw4QYa)Ih%FV0HNi+$wKAibl?0*5F7i=s5 literal 0 HcmV?d00001 diff --git a/CK2Plus/gfx/traits/exalted3.tga b/CK2Plus/gfx/traits/exalted3.tga new file mode 100644 index 0000000000000000000000000000000000000000..922ddead74052b377b4896cb9337f55c0df3f83f GIT binary patch literal 2322 zcma)7dr*{B6kjkx5Q4G^kcS8?`(W4I1qCe|MCB#yg2sXYBA}^|kZ1}6i1ILj<&iHG zSVb^|#e9vc2FnoH7?5RZPNO;asxke?8UO7Mf8BHG+ZM-1-^}^$J>R|OcYgPrbI&Id z*^7k7Q{*Y~p9(-^E3`_wgM-6dHZ_p?DzUS(gNK(V?V0r0VhVF%!}RIX`^k>!R;kVr zTj%t>FnQ)A-O0%b5%a^(2p9sU?MQ2HzvF(v7JL7#JCkq(-QUBBe;0J}>G0+okjf-Q zFZ1E(=*Vq0rTFvl_S3&X_5#N1bn;ah%<}Dr){P-(%9mn8(gZi9O7VlUvoq&GF{kymA_bSwusNu$ zYsA+lPNJ>Nh@6}p^!N88JUjv!8JP@!Biarf!JhpG5IScra^rls-M#`DwxrGCm{e0N zNYF=m@o$7r(o!ggOfJWk;!+qIo6yK_iBTzr)zr81vB!V|zPv3}36$A(rvh>XM;P`xqW9c3IIg&|9wJJSqNb;(e|0 zr`%jIUmvbp`9E_0*3pw#4J!Xcw-XF5%}evK)mdlvtm) z0VdWL1_lOj;rw}IW~@YFqL$-pnXlO@HK-m=Rcbgs-CwGG>Pa6)E||%T5bG_g*d3xCVK$pl_*oH>bjz?LCKmD#1u|G(kF%Un?x-%Q zzY*4~0RO|(+eqkP{m#M$+#Tt}qnj4|Y+8r@#z+({4}eOoVf|+{8Vn7{$z6l!*f_}9 zJ%|r~7spCxb8O0~&^y^bY66ra|Mz;!&6Vf;&WI6DAKk>`TZ6cKstm>HQYe%vBqS!X zJ`}}yZ)Lr_w@k(Bjq0(Iot5}ezZ7`CXr%uP{eylvQG_S=f5ejqSMcEaIb1rvo%ag0 zT7{w342&Mh;C<$c++Zv3X|67>#1{OiH7W?b^-}vXj9+TS{mb1L|NbCGJJNA+Uo_}W o)_)@5oQcn@z<~dSE%>0(Z>BFlFWJ-CUnEY>Q!)Sjc`wEO2VqxhVE_OC literal 0 HcmV?d00001 diff --git a/CK2Plus/gfx/traits/exalted4.tga b/CK2Plus/gfx/traits/exalted4.tga new file mode 100644 index 0000000000000000000000000000000000000000..3228b17b53b0142b39710a429510ee85f92d9f32 GIT binary patch literal 2322 zcmbVNYf#ix6kk9FK?utxK@f0Z*$2Dq17DSeqzDMRpt4|q2uLcVB$~niqC8A+5%Prs zs|bd$n2*L4gLRB-49GGir_mgI)tG*9#;<+w*F6{h>pDYBb!X1rd;a&H-#Pc3bAKxm zIg5nhBk~aiO$H!x6xt=-)zx(lTbf9nNSvIUFx}UO&b%@lF@?3m0Xyc3_qnZIFH8=y zui5$W)*ME_bezZVxy_+F_g=9Tbg{4dg!^MY$Mxan=EiOBKK~1ZCt&_pJya^m8jIDQ zdtbj9uf%)l@w5M}ySTWJEgzJhMbS~9*gs7PLSup4j_WdM60&pFU=o|DjwCu=#LIn# zvv^4?|L*4M3}+`1idKsG{?w^cxevnk^z_6!y+00YP~hm6Ftin^AQlIsqG~rxrq9vZ z+6tr5h%QSvv^pJV*czE#j zX4V(9-(0BVqKlY~n%cei^7I)rH=B{2osHh!Ud)|459#R{41W`vj~>VVLx-W8JqJ0l z{@m{1Mme^o&f=Kv?xVe6jP&K-2%n^}KmoZzfvrU)Fzu~JTU$FK7cNA{7afqvWGF5v zMP>Ca)b43O-Tp>M*|$}TXN=j(d7cyBec9I=lLC2e1pNB-Qpn^AR8;TA#Y>mb-q8t_ zN(HmojCu3sBO@~lmAh*2)%hM|X5}!Sa^xFE^FtVvBg!``@VL3D%921L3B|yVH=v7% z0M*CCV+ww|dly=*7SpCpgP)%tQdXv+#?-*in$}9~xg{SIvm-v$RglWn!QAGY^=pJF zmGJiV##_^U@Z!Y_mbWmDEeQ?9^5hiM)HU$<&6`JigD|Luj`&m$>KQ>A@?@+hLQuZ5 z3ilrUfj^%<#r+2lS*rmhW#u@`>fL&x69*cbup~APdL zNlT%E*+@}bT!!xMQ?PVdVC%DCWMl+-y#XmHDTs|*il`43AuS`5-!)^AFWR;#xjn_{ zh;Oad;q(p-&g|5pyIh0z;&Ax+`=jxQ8U6j=VrXcH`RIbVr3D6tuQwPF!{XK(l3+~z z5Yt)iGNWgpt4z(~r2OZ`&9vvAYIEI^kIVH7K)$-!UFgm=wRIR69K!I;Vc2Xo>}zP? z_)FvC5fc-KWh;!l2GpN5xe^{9VzS$Rr^Ho|zu)Z;- zrlGl|mB-)T-;d6dCy|(#g!uRbEMfSDq~(Za{6J?rOVk{{vs7cxjhC0#N|{``hxq79 zV;mj~w&UixVtx-Zt5KLzh4pzGU}3z_*Vl)OJw3=sUxkDOJ;&EGU*T#Es2|Q&XgNN; zU+R70s`nxn1QN;34Dhce{g!n*9^bNJ;8-epYv-UUD+D2oTUN6-L>ytYT2b&xArcMC z7_Y@Z5vD{stLrINGpZf+CGi_!%@PM4BW@$1!T8R`Cfpxr!;{-K{A5{&-o241ST2TI zqh8IGfgOHc^Y-F3zc*mU^C!3Q z^v)$*J6npPG#QjCHR2Nz7!O79xVJGb?$D8SY#@X2!Kc6nd zvxh(6*`w=tG<*S9Pwn7bq0y*uxhWlk$J05_e3lbxk9&%j=Y-gTKaExmfm^S(EW^mv zCOo{>fsyZyV6Zg}R}Myl-sGN-q&#MdXI8NIUttSAXbuRR$?r?{bocSZ-D5J|erNta GV*d@cA8=0q literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index ee9bb1ab..440e63bc 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -34,4 +34,25 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_become_exalted_2" + texturefile = "gfx/traits/exalted2.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_become_exalted_3" + texturefile = "gfx/traits/exalted3.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_become_exalted_4" + texturefile = "gfx/traits/exalted4.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/interface/000_CK2Plus_traits.gfx b/CK2Plus/interface/000_CK2Plus_traits.gfx index a455d581..bbc9e22b 100644 --- a/CK2Plus/interface/000_CK2Plus_traits.gfx +++ b/CK2Plus/interface/000_CK2Plus_traits.gfx @@ -159,4 +159,26 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + + spriteType = { + name = "GFX_trait_exalted2" + texturefile = "gfx/traits/exalted2.tga" + noOfFrames = 1 + norefcount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_trait_exalted3" + texturefile = "gfx/traits/exalted3.tga" + noOfFrames = 1 + norefcount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_trait_exalted4" + texturefile = "gfx/traits/exalted4.tga" + noOfFrames = 1 + norefcount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index 4221fca2..169d30fc 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -18,4 +18,13 @@ obj_amass_wealth_4_desc;[This.GetTitledFirstName] wants to amass a substantial a obj_amass_wealth_4_title;Amass Wealth;;;;;;;;;;;;;x obj_be_legitimized_desc;[This.GetTitledFirstName] wants to have [This.GetHerHis] father to recognize [This.GetHerHis] legitimacy, and thus grant [This.GetHerHim] a proper inheritance.;;;;;;;;;;;;;x -obj_be_legitimized_title;Be Legitimized;;;;;;;;;;;;;x \ No newline at end of file +obj_be_legitimized_title;Be Legitimized;;;;;;;;;;;;;x + +obj_become_exalted_2_desc;[This.GetTitledFirstName] wants [This.GetHerHis] name to live forever in the annals of history.;;;;;;;;;;;;;x +obj_become_exalted_2_title;Become Exalted among Men;;;;;;;;;;;;;x + +obj_become_exalted_3_desc;[This.GetTitledFirstName] wants [This.GetHerHis] name to live forever in the annals of history.;;;;;;;;;;;;;x +obj_become_exalted_3_title;Become Exalted among Men;;;;;;;;;;;;;x + +obj_become_exalted_4_desc;[This.GetTitledFirstName] wants [This.GetHerHis] name to live forever in the annals of history.;;;;;;;;;;;;;x +obj_become_exalted_4_title;Become Exalted among Men;;;;;;;;;;;;;x \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_traits.csv b/CK2Plus/localisation/000_CK2Plus_traits.csv index 11d2ea54..2b51252d 100644 --- a/CK2Plus/localisation/000_CK2Plus_traits.csv +++ b/CK2Plus/localisation/000_CK2Plus_traits.csv @@ -1,33 +1,41 @@ #CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x # Congenital Traits -agile;Agile;Agile;Agil;;Ágil;;;;;;;;;x -agile_desc;This character is nimbler than most and capable of deft, almost acrobatic moves.;Ce personnage est plus agile que la plupart et capable de mouvements habiles, presque acrobatiques.;Dieser Charakter ist flinker als die meisten anderen und in der Lage, sich geschickt und fast akrobatisch zu bewegen.;;Este personaje es más ágil que la mayoría y capaz de movimientos hábiles, casi acrobáticos.;;;;;;;;;x -ambidextrous;Ambidextrous;Ambidextre;Beidhändig;;Ambidextro;;;;;;;;;x -ambidextrous_desc;This character can naturally use both hands with equal skill. As a result, they are more efficient in whatever they do, whether it is swinging swords or writing letters.;Ce personnage peut naturellement utiliser les deux mains avec la même habileté. En conséquence, ils sont plus efficaces dans tout ce qu'ils font, qu'il s'agisse de balancer des épées ou d'écrire des lettres.;Dieser Charakter kann natürlich beide Hände mit gleicher Geschicklichkeit benutzen. Infolgedessen sind sie effizienter, egal ob sie Schwerter schwingen oder Briefe schreiben.;;Este personaje puede usar naturalmente ambas manos con la misma habilidad. Como resultado, son más eficientes en lo que sea que hagan, ya sea balanceando espadas o escribiendo cartas.;;;;;;;;;x +agile;Agile;Agile;Agil;;�gil;;;;;;;;;x +agile_desc;This character is nimbler than most and capable of deft, almost acrobatic moves.;Ce personnage est plus agile que la plupart et capable de mouvements habiles, presque acrobatiques.;Dieser Charakter ist flinker als die meisten anderen und in der Lage, sich geschickt und fast akrobatisch zu bewegen.;;Este personaje es m�s �gil que la mayor�a y capaz de movimientos h�biles, casi acrob�ticos.;;;;;;;;;x +ambidextrous;Ambidextrous;Ambidextre;Beidh�ndig;;Ambidextro;;;;;;;;;x +ambidextrous_desc;This character can naturally use both hands with equal skill. As a result, they are more efficient in whatever they do, whether it is swinging swords or writing letters.;Ce personnage peut naturellement utiliser les deux mains avec la m�me habilet�. En cons�quence, ils sont plus efficaces dans tout ce qu'ils font, qu'il s'agisse de balancer des �p�es ou d'�crire des lettres.;Dieser Charakter kann nat�rlich beide H�nde mit gleicher Geschicklichkeit benutzen. Infolgedessen sind sie effizienter, egal ob sie Schwerter schwingen oder Briefe schreiben.;;Este personaje puede usar naturalmente ambas manos con la misma habilidad. Como resultado, son m�s eficientes en lo que sea que hagan, ya sea balanceando espadas o escribiendo cartas.;;;;;;;;;x calm_voice;Calm Voice;Voix Calme;Ruhige Stimme;;Voz Tranquila;;;;;;;;;x -calm_voice_desc;This character's voice is naturally soothing. While it is neither powerful nor melodious, its mildness can calm even the angriest of people, and slyly persuade even the most skeptical of men.;La voix de ce personnage est naturellement apaisante. Même s'il n'est ni puissant ni mélodieux, sa douceur peut calmer même les plus angoissés et persuader sournoisement les plus sceptiques des hommes.;Die Stimme dieses Charakters ist von Natur aus beruhigend. Obwohl es weder kraftvoll noch melodiös ist, kann seine Milde selbst die ärgerlichsten Menschen beruhigen und selbst die skeptischsten Männer schlau überreden.;;La voz de este personaje es naturalmente relajante. Si bien no es ni poderoso ni melodioso, su suavidad puede calmar incluso a las personas más enojadas y persuadir astutamente incluso a los hombres más escépticos.;;;;;;;;;x +calm_voice_desc;This character's voice is naturally soothing. While it is neither powerful nor melodious, its mildness can calm even the angriest of people, and slyly persuade even the most skeptical of men.;La voix de ce personnage est naturellement apaisante. M�me s'il n'est ni puissant ni m�lodieux, sa douceur peut calmer m�me les plus angoiss�s et persuader sournoisement les plus sceptiques des hommes.;Die Stimme dieses Charakters ist von Natur aus beruhigend. Obwohl es weder kraftvoll noch melodi�s ist, kann seine Milde selbst die �rgerlichsten Menschen beruhigen und selbst die skeptischsten M�nner schlau �berreden.;;La voz de este personaje es naturalmente relajante. Si bien no es ni poderoso ni melodioso, su suavidad puede calmar incluso a las personas m�s enojadas y persuadir astutamente incluso a los hombres m�s esc�pticos.;;;;;;;;;x clumsy;Clumsy;Maladroit;Ungeschickt;;Torpe;;;;;;;;;x -clumsy_desc;This character seems to be unable to properly control their limbs, and has a habit of awkwardly slipping, tripping or stumbling through many situations.;Ce personnage semble incapable de contrôler correctement ses membres et a l'habitude de glisser maladroitement, de trébucher ou de trébucher dans de nombreuses situations.;Dieser Charakter scheint nicht in der Lage zu sein, seine Gliedmaßen richtig zu kontrollieren, und hat die Angewohnheit, in vielen Situationen unbeholfen zu rutschen, zu stolpern oder zu stolpern.;;Este personaje parece ser incapaz de controlar adecuadamente sus extremidades y tiene la costumbre de resbalar, tropezar o tropezar torpemente en muchas situaciones.;;;;;;;;;x -fertile;Fertile;Fertile;Fruchtbar;;Fértil;;;;;;;;;x -fertile_desc;This character has been blessed with an agreable physique. While not necessarily a perfect beauty, their natural charms delight prospective partners, and have granted them a propensity for easily having children.;Ce personnage a été doté d'un physique agréable. Bien qu'ils ne soient pas nécessairement d'une beauté parfaite, leurs charmes naturels ravissent les partenaires potentiels et leur ont donné la propension à avoir facilement des enfants.;Dieser Charakter wurde mit einem wilden Körper gesegnet. Obwohl sie nicht unbedingt eine perfekte Schönheit sind, erfreuen ihre natürlichen Reize potenzielle Partner und haben ihnen die Neigung gegeben, leicht Kinder zu haben.;;Este personaje ha sido bendecido con un físico agradable. Si bien no es necesariamente una belleza perfecta, sus encantos naturales deleitan a los posibles socios y les han otorgado una propensión a tener hijos fácilmente.;;;;;;;;;x -melodious_voice;Melodious Voice;Voix Mélodieuse;Melodiöse Stimme;;Voz Melodiosa;;;;;;;;;x -melodious_voice_desc;This character is said to have a pleasing voice, and can sing wonderfully. Somehow, when they talk, everyone simply listens.;On dit que ce personnage a une voix agréable et peut chanter à merveille. D'une manière ou d'une autre, quand ils parlent, tout le monde écoute simplement.;Dieser Charakter soll eine angenehme Stimme haben und wunderbar singen können. Irgendwie hört jeder einfach zu, wenn sie reden.;;Se dice que este personaje tiene una voz agradable y puede cantar maravillosamente. De alguna manera, cuando hablan, todos simplemente escuchan.;;;;;;;;;x +clumsy_desc;This character seems to be unable to properly control their limbs, and has a habit of awkwardly slipping, tripping or stumbling through many situations.;Ce personnage semble incapable de contr�ler correctement ses membres et a l'habitude de glisser maladroitement, de tr�bucher ou de tr�bucher dans de nombreuses situations.;Dieser Charakter scheint nicht in der Lage zu sein, seine Gliedma�en richtig zu kontrollieren, und hat die Angewohnheit, in vielen Situationen unbeholfen zu rutschen, zu stolpern oder zu stolpern.;;Este personaje parece ser incapaz de controlar adecuadamente sus extremidades y tiene la costumbre de resbalar, tropezar o tropezar torpemente en muchas situaciones.;;;;;;;;;x +fertile;Fertile;Fertile;Fruchtbar;;F�rtil;;;;;;;;;x +fertile_desc;This character has been blessed with an agreable physique. While not necessarily a perfect beauty, their natural charms delight prospective partners, and have granted them a propensity for easily having children.;Ce personnage a �t� dot� d'un physique agr�able. Bien qu'ils ne soient pas n�cessairement d'une beaut� parfaite, leurs charmes naturels ravissent les partenaires potentiels et leur ont donn� la propension � avoir facilement des enfants.;Dieser Charakter wurde mit einem wilden K�rper gesegnet. Obwohl sie nicht unbedingt eine perfekte Sch�nheit sind, erfreuen ihre nat�rlichen Reize potenzielle Partner und haben ihnen die Neigung gegeben, leicht Kinder zu haben.;;Este personaje ha sido bendecido con un f�sico agradable. Si bien no es necesariamente una belleza perfecta, sus encantos naturales deleitan a los posibles socios y les han otorgado una propensi�n a tener hijos f�cilmente.;;;;;;;;;x +melodious_voice;Melodious Voice;Voix M�lodieuse;Melodi�se Stimme;;Voz Melodiosa;;;;;;;;;x +melodious_voice_desc;This character is said to have a pleasing voice, and can sing wonderfully. Somehow, when they talk, everyone simply listens.;On dit que ce personnage a une voix agr�able et peut chanter � merveille. D'une mani�re ou d'une autre, quand ils parlent, tout le monde �coute simplement.;Dieser Charakter soll eine angenehme Stimme haben und wunderbar singen k�nnen. Irgendwie h�rt jeder einfach zu, wenn sie reden.;;Se dice que este personaje tiene una voz agradable y puede cantar maravillosamente. De alguna manera, cuando hablan, todos simplemente escuchan.;;;;;;;;;x perceptive;Perceptive;Perspicace;Wahrnehmend;;Perceptivo;;;;;;;;;x -perceptive_desc;This character possesses extraordinary sharp senses and can spot subtle nuances that others miss entirely.;Ce personnage possède des sens extraordinaires et peut repérer des nuances subtiles qui manquent à tous.;Dieser Charakter besitzt außergewöhnlich scharfe Sinne und kann subtile Nuancen erkennen, die andere völlig verfehlen.;;Este personaje posee sentidos agudos extraordinarios y puede detectar sutiles matices que otros pierden por completo.;;;;;;;;;x +perceptive_desc;This character possesses extraordinary sharp senses and can spot subtle nuances that others miss entirely.;Ce personnage poss�de des sens extraordinaires et peut rep�rer des nuances subtiles qui manquent � tous.;Dieser Charakter besitzt au�ergew�hnlich scharfe Sinne und kann subtile Nuancen erkennen, die andere v�llig verfehlen.;;Este personaje posee sentidos agudos extraordinarios y puede detectar sutiles matices que otros pierden por completo.;;;;;;;;;x powerful_voice;Powerful Voice;Voix Puissante;Kraftvolle Stimme;;Poderosa Voz;;;;;;;;;x -powerful_voice_desc;This character speaks in an imposing tone that can persuade friends, frighten enemies, and inspire subordinates.;Ce personnage parle d'un ton imposant qui peut persuader ses amis, effrayer ses ennemis et inspirer ses subordonnés.;Dieser Charakter spricht in einem imposanten Ton, der Freunde überzeugen, Feinde erschrecken und Untergebene inspirieren kann.;;Este personaje habla en un tono imponente que puede persuadir a los amigos, asustar a los enemigos e inspirar a los subordinados.;;;;;;;;;x -tall;Tall;Haute;Groß;;Alto;;;;;;;;;x -tall_desc;This character is of unusually tall and impressive stature.;Ce personnage est d'une stature inhabituellement haute et impressionnante.;Dieser Charakter ist ungewöhnlich groß und beeindruckend.;;Este personaje es de una estatura inusualmente alta e impresionante.;;;;;;;;;x +powerful_voice_desc;This character speaks in an imposing tone that can persuade friends, frighten enemies, and inspire subordinates.;Ce personnage parle d'un ton imposant qui peut persuader ses amis, effrayer ses ennemis et inspirer ses subordonn�s.;Dieser Charakter spricht in einem imposanten Ton, der Freunde �berzeugen, Feinde erschrecken und Untergebene inspirieren kann.;;Este personaje habla en un tono imponente que puede persuadir a los amigos, asustar a los enemigos e inspirar a los subordinados.;;;;;;;;;x +tall;Tall;Haute;Gro�;;Alto;;;;;;;;;x +tall_desc;This character is of unusually tall and impressive stature.;Ce personnage est d'une stature inhabituellement haute et impressionnante.;Dieser Charakter ist ungew�hnlich gro� und beeindruckend.;;Este personaje es de una estatura inusualmente alta e impresionante.;;;;;;;;;x # Health Traits deaf;Deaf;Sourd;Taub;;Sordo;;;;;;;;;x -deaf_desc;This character is hard of hearing, which forms an obstacle in many situations.;Ce personnage est dur d'oreille, ce qui constitue un obstacle dans de nombreuses situations.;Dieser Charakter ist schwerhörig, was in vielen Situationen ein Hindernis darstellt.;;Este personaje tiene problemas de audición, lo que constituye un obstáculo en muchas situaciones.;;;;;;;;;x +deaf_desc;This character is hard of hearing, which forms an obstacle in many situations.;Ce personnage est dur d'oreille, ce qui constitue un obstacle dans de nombreuses situations.;Dieser Charakter ist schwerh�rig, was in vielen Situationen ein Hindernis darstellt.;;Este personaje tiene problemas de audici�n, lo que constituye un obst�culo en muchas situaciones.;;;;;;;;;x # Personality Traits cheerful;Cheerful;Joyeux;Heiter;;Alegre;;;;;;;;;x -cheerful_desc;This character has a naturally bright and merry temperament, and seems to always know a joke in every situation, whether appropriate or not.;Ce personnage a un tempérament naturellement brillant et joyeux, et semble toujours connaître une blague dans toutes les situations, qu’il soit approprié ou non.;Dieser Charakter hat ein natürlich helles und fröhliches Temperament und scheint in jeder Situation, ob angemessen oder nicht, immer einen Witz zu kennen.;;Este personaje tiene un temperamento alegre y alegre por naturaleza, y parece saber siempre una broma en cada situación, sea apropiada o no.;;;;;;;;;x +cheerful_desc;This character has a naturally bright and merry temperament, and seems to always know a joke in every situation, whether appropriate or not.;Ce personnage a un temp�rament naturellement brillant et joyeux, et semble toujours conna�tre une blague dans toutes les situations, qu�il soit appropri� ou non.;Dieser Charakter hat ein nat�rlich helles und fr�hliches Temperament und scheint in jeder Situation, ob angemessen oder nicht, immer einen Witz zu kennen.;;Este personaje tiene un temperamento alegre y alegre por naturaleza, y parece saber siempre una broma en cada situaci�n, sea apropiada o no.;;;;;;;;;x moody;Moody;Morne;Launisch;;Temperamental;;;;;;;;;x -moody_desc;This character has a tendency to get lost in sullen sulkiness, and rarely looks on the bright side of life. Their grumpy or gloomy attitude tends to repel other people.;Ce personnage a tendance à se perdre dans une bouderie maussade et regarde rarement le bon côté des choses. Leur attitude grincheuse ou sombre a tendance à repousser les autres.;Dieser Charakter hat die Tendenz, sich in mürrischer Frechheit zu verlieren, und sieht selten auf der Sonnenseite des Lebens aus. Ihre mürrische oder düstere Haltung neigt dazu, andere Menschen abzustoßen.;;Este personaje tiende a perderse en el mal humor y rara vez se ve el lado positivo de la vida. Su actitud gruñona o sombría tiende a repeler a otras personas.;;;;;;;;;x -serious;Serious;Sérieuse;Ernsthafte;;Seria;;;;;;;;;x -serious_desc;This character prefers to apply logic and rational thinking in every situation. Humor and merriness to them seem like silly distractions from important problems.;Ce personnage préfère appliquer la logique et la pensée rationnelle à chaque situation. L'humour et la gaieté leur semblent une distraction idiote de problèmes importants.;Dieser Charakter bevorzugt es, in jeder Situation Logik und rationales Denken anzuwenden. Humor und Heiterkeit scheinen ihnen dumme Ablenkungen von wichtigen Problemen zu sein.;;Este personaje prefiere aplicar la lógica y el pensamiento racional en cada situación. El humor y la alegría les parecen distracciones tontas de problemas importantes.;;;;;;;;;x +moody_desc;This character has a tendency to get lost in sullen sulkiness, and rarely looks on the bright side of life. Their grumpy or gloomy attitude tends to repel other people.;Ce personnage a tendance � se perdre dans une bouderie maussade et regarde rarement le bon c�t� des choses. Leur attitude grincheuse ou sombre a tendance � repousser les autres.;Dieser Charakter hat die Tendenz, sich in m�rrischer Frechheit zu verlieren, und sieht selten auf der Sonnenseite des Lebens aus. Ihre m�rrische oder d�stere Haltung neigt dazu, andere Menschen abzusto�en.;;Este personaje tiende a perderse en el mal humor y rara vez se ve el lado positivo de la vida. Su actitud gru�ona o sombr�a tiende a repeler a otras personas.;;;;;;;;;x +serious;Serious;S�rieuse;Ernsthafte;;Seria;;;;;;;;;x +serious_desc;This character prefers to apply logic and rational thinking in every situation. Humor and merriness to them seem like silly distractions from important problems.;Ce personnage pr�f�re appliquer la logique et la pens�e rationnelle � chaque situation. L'humour et la gaiet� leur semblent une distraction idiote de probl�mes importants.;Dieser Charakter bevorzugt es, in jeder Situation Logik und rationales Denken anzuwenden. Humor und Heiterkeit scheinen ihnen dumme Ablenkungen von wichtigen Problemen zu sein.;;Este personaje prefiere aplicar la l�gica y el pensamiento racional en cada situaci�n. El humor y la alegr�a les parecen distracciones tontas de problemas importantes.;;;;;;;;;x + +# Ambition Traits +exalted2;Exalted;;;;;;;;;;;;;x +exalted2_desc;This character is considered extremely impressive, having earned a place in history for their feats.;;;;;;;;;;;;;x +exalted3;Exalted;;;;;;;;;;;;;x +exalted3_desc;This character is considered extremely impressive, having earned a place in history for their feats.;;;;;;;;;;;;;x +exalted4;Exalted;;;;;;;;;;;;;x +exalted4_desc;This character is considered extremely impressive, having earned a place in history for their feats.;;;;;;;;;;;;;x \ No newline at end of file From f2352450f24f6b390a039ec6206a69c0926feed8 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Thu, 26 Mar 2020 20:16:06 +0100 Subject: [PATCH 09/23] New icon for 'amass_wealth_X' ambition --- CK2Plus/gfx/objectives/obj_amass_wealth_plus.dds | Bin 0 -> 3264 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 CK2Plus/gfx/objectives/obj_amass_wealth_plus.dds diff --git a/CK2Plus/gfx/objectives/obj_amass_wealth_plus.dds b/CK2Plus/gfx/objectives/obj_amass_wealth_plus.dds new file mode 100644 index 0000000000000000000000000000000000000000..2486ad61a57e265d25783b9a487d535b402b4490 GIT binary patch literal 3264 zcmb_eYfzJC7LFTsU2X;gvOoz}xi{p3hC2iZ_W(&SKtO^Bl$!*E)Z3OSf-Q>IQWXkH z*HWr@>9kg>?K)a@JKNeivzK_d}`-dO&M|k#}&%_nlvYnmH@Q^Rx_rB-( z&NA!(I@HL=qp7D44z(Jp}%&AQTpt8RR-$Wv#ndxVPNDFnXBdT)@{N5nO+d ze-Ovg&nh1e(J~OzGk1cNAS1*Ql!PQF_?qwWGhV}MdCzh-f9#oy=Qp&MZJP*vgb~SV z&k4e`6BB&T`Ha`_THf3h}*{QJC=1+MPGwKWcI8o3!GE zV>M{oRpKb$m@=QNjd>U-lis6uIPBcRd)bEA+?*+5(Dfob#l>;SAiU@wUgAr17tkJuK0Z3?laZ;va$$Dt}%ZF$HoQy^6r4R!ijtWS@GB01s*Ap3YWDHO`}VMxu3qdh7_ z#sz-MHl4PagZbDu)>Iwk>vPJ7gSF5zSOH5%E)vMb(2d)0`{io5#k9ap+70`;D=2Dz z9^#gD z5R__yDlHOO#qv3}?c`uC*3bsh{Ac9bf=h2r_Cl0eGzbp&!^ZJ*NZ!UQ2O=`30Qxha@5j2V zXy)TwKV%L9b43wGs-Mf6XKh&8vIT5tN=I6LJhY81*!A9RXzQ)W-25DrMl({Y>yTk> zL3W27+AZ4zWVQDp$=nF@fme~&I|PZ;6Dhed0w4J@&m2xJ*5xGC35TBIM>!NwTBAW6 z<-GgiT^zc69lPFrA05*dP&s@Aw%M!beCvI5zI_W_m+zqK-P_pm&K=k;{Q(UV7s$r~ z_{OM_Q4kNdQ*2)6pxQG@Jj}&fna-Df%G_u^}M69oCZ<1+G?zq}v%@iU0XuY$Xx7M_XaFr2%Io-e*Z|KI-s{pcGA z)fN%|b>ttMLTFAcbbDTh$g>pUFe9X4>ycTM@MG~5^itWFKCh=(bDi+=T8YXxuj0tR zzK89PUr~(w;ge*Be_93Ncb!6v{WzXU*CGFvnJ4_EN2d^|%BHoc5P2)HCeUB-udp%+ zOY|c1mUwJS&WZhJhBgMpgZof>Jxa}vPXxxHuT{Xlj<#6|u3AK$iQAB)8&V$rj;$GtyAo-$vcpt1E{RItg zU508?Cu(M|p>SjzaRw`lQe|KA>={KO2@EnTqP{S%C%6Nrcj5cE#5Tw2e>6wd%JiAU3F zKkqL|y9<0K{MFfzkp`94c33WcNd8@frgJCC$cIQ{E7rE{g-2ivLL2)bYaPN$X((hC zJ3?Cr1TKv>n)$e1e@^G%>3YpQf_(H)ke_>F5`(|%d)b8F9C-k*g zS`Udl4-vg%2xvbHca;vlCL8<$Rv|*o@A9AXVLo{pa_W7S_H63AS*(%e`mKv|(L6yt z-Z6Bt88t1r$g5BY_PFPA-`KP@AF?zZ;_Sx|MLK?VT^Q974cGghGfzA{n=P7`s1MGK zUD!tRQY#qyr54m*#lJa>kHj^^^0`&z%P;&JLc{n2-9` z<9RUq@jOWOc}8MwaLrnF9;D|SQx{x){|ECft(hQ9`}lfs{pH#Bf0}on;&O4ia_X7^ J{x9?VzX9N?Hsk;R literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index 440e63bc..ef9d213b 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -8,21 +8,21 @@ spriteTypes = { } spriteType = { name = "GFX_obj_amass_wealth_2" - texturefile = "gfx/ambitions/obj_amass_wealth.tga" + texturefile = "gfx/objectives/obj_amass_wealth_plus.dds" noOfFrames = 1 noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } spriteType = { name = "GFX_obj_amass_wealth_3" - texturefile = "gfx/ambitions/obj_amass_wealth.tga" + texturefile = "gfx/objectives/obj_amass_wealth_plus.dds" noOfFrames = 1 noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } spriteType = { name = "GFX_obj_amass_wealth_4" - texturefile = "gfx/ambitions/obj_amass_wealth.tga" + texturefile = "gfx/objectives/obj_amass_wealth_plus.dds" noOfFrames = 1 noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" From 82a766a2b2371ea1d7c0b076741236f689fef368 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Thu, 26 Mar 2020 20:56:00 +0100 Subject: [PATCH 10/23] Added 'become_independent' ambition --- .../objectives/000_CK2Plus_ambitions.txt | 56 +++++++++++++++++- .../gfx/objectives/obj_become_independent.dds | Bin 0 -> 1264 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 7 +++ .../localisation/000_CK2Plus_ambitions.csv | 5 +- 4 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 CK2Plus/gfx/objectives/obj_become_independent.dds diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 4c09b7cc..ea7845f4 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -2,7 +2,7 @@ # # Plus Ambitions: # -# Total = 08 +# Total = 09 # # Sorted alphabetically # @@ -913,4 +913,56 @@ obj_become_exalted_4 = { } add_trait = exalted4 } -} \ No newline at end of file +} + +obj_become_independent = { + type = character + + potential = { + ai = no + is_ruler = yes + independent = no + } + + allow = { + prisoner = no + is_adult = yes + is_landed = yes + liege = { + independent = yes + OR = { + is_feudal = yes + is_tribal = yes + } + } + NOT = { trait = incapable } + } + chance = { + factor = 0 + } + success = { + independent = yes + war = no + } + abort = { + OR = { + prisoner = yes + ai = yes + trait = incapable + is_ruler = no + } + } + abort_effect = { + } + effect = { + if = { + limit = { NOT = { has_character_flag = obj_independence } } + prestige = 200 + } + if = { + limit = { has_character_flag = obj_independence } + prestige = 50 + } + set_character_flag = obj_independence + } +} diff --git a/CK2Plus/gfx/objectives/obj_become_independent.dds b/CK2Plus/gfx/objectives/obj_become_independent.dds new file mode 100644 index 0000000000000000000000000000000000000000..edb2dbb2fc537b64183e6fcf18dbe941f15aac9e GIT binary patch literal 1264 zcma))ZA@EL7{{O6%gf7*+rk_C9 zKqa!pD$QL{`gh3E-}%;U{nOfQ{rUze@LY%ab+TL4pVG?@GLx@fPyjqT2hbMwpJ!~l z#F2qFbc)lyDCg$>BF&W#KMHZ4VQ=d@y6qNbsuw@QuH6qmk*OtACy$(myJI0^R|&3O^iJV5h)3r&`5WCc!psvbIR;PIy>oHC=ouW)|yp{L+Tueiy% zVm@556|{D9o*eh9bEkSKXP@3lMw9~HKZs>GSM>nxHk&O@iX)0O?+({K03(h56TiF4 zK|-4y>pZ`FewW_1nO(^F^I3;6I8#D6=T4;S+}+k6IR|^3gxz0{#tGzYd>}smF6y_p zH(8{B-|=R~i(-uiARjN7nLrKsUg_>w6`4Mh<>UF^wK~Yv=8Y-NKlA}i+QVVai({FZ z=mmov^TF(q3}ZK(r2Uu;^>>=TQsgX@I`KYHAN}J+e`*h-KWow{mF8seP)5ho*;N3A zK}xYczi?tSv0@b9!m%@W|L7m>sP>gA0rt@SsdE^(%!*&e`mHad@;@#UAZM{t$MtJd z{(r3BP>=nj*9~7cjz~1+=e7sRy=&k9r2Uhzqb~H*CAi3>-t$opF^9%9K=LrP zkn0gwjFlw%D7vwC?a*Z6_DrI|b+cf4V(T^D?~${a`yPmG4weLTJ3!aj8eMVn0F6{+ zgIMBGOg3s@BNmG>DL*3kyiJX+O0pF-7%(1(41?phj7gCme=o_H$-Sv6b$u$YuHJSn zD@)Fa$_Uiz)Ufd=7JXHCYv?!3cnSOaqK&agg(zP`&cOc#J&Y|Y>z9i0wOFHuljs%^ zh!+t$@jMY@EHf@&D!Q|jSak#nfhxMu$zIDI>2(}EhEG67sS1!o&W#< literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index ef9d213b..3ab74b07 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -55,4 +55,11 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_become_independent" + texturefile = "gfx/objectives/obj_become_independent.dds" + noOfFrames = 1 + norefcount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index 169d30fc..a57dfad4 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -27,4 +27,7 @@ obj_become_exalted_3_desc;[This.GetTitledFirstName] wants [This.GetHerHis] name obj_become_exalted_3_title;Become Exalted among Men;;;;;;;;;;;;;x obj_become_exalted_4_desc;[This.GetTitledFirstName] wants [This.GetHerHis] name to live forever in the annals of history.;;;;;;;;;;;;;x -obj_become_exalted_4_title;Become Exalted among Men;;;;;;;;;;;;;x \ No newline at end of file +obj_become_exalted_4_title;Become Exalted among Men;;;;;;;;;;;;;x + +obj_become_independent_desc;[This.GetTitledFirstName] desires independence from [This.GetHerHis] tyrannical liege.;;;;;;;;;;;;;x +obj_become_independent_title;Become Independent;;;;;;;;;;;;;x \ No newline at end of file From 7b15207c6822264f9c3ecb1c7806aee013acd8d1 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Thu, 26 Mar 2020 21:54:26 +0100 Subject: [PATCH 11/23] Added 'become_duke' ambition --- .../objectives/000_CK2Plus_ambitions.txt | 79 ++++++++++++++++++ CK2Plus/gfx/objectives/obj_become_duke.tga | Bin 0 -> 3180 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 7 ++ .../localisation/000_CK2Plus_ambitions.csv | 5 +- 4 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 CK2Plus/gfx/objectives/obj_become_duke.tga diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index ea7845f4..07957842 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -966,3 +966,82 @@ obj_become_independent = { set_character_flag = obj_independence } } + +obj_become_duke = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + tier = count + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + NOT = { trait = content } + } + chance = { + factor = 20 + modifier = { + factor = 1.5 + demesne_size = 2 + } + modifier = { + factor = 1.5 + demesne_size = 3 + } + modifier = { + factor = 1.5 + demesne_size = 4 + } + modifier = { + factor = 10 + any_claim = { tier = DUKE } + } + modifier = { + factor = 2 + trait = ambitious + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + higher_tier_than = count + } + abort = { + OR = { + is_ruler = no + NOT = { higher_tier_than = baron } + trait = incapable + trait = content + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + prestige = 50 + } +} \ No newline at end of file diff --git a/CK2Plus/gfx/objectives/obj_become_duke.tga b/CK2Plus/gfx/objectives/obj_become_duke.tga new file mode 100644 index 0000000000000000000000000000000000000000..b72b32224a7af795ea5e74fb59d6364a68871ef6 GIT binary patch literal 3180 zcmb_eSx=l*7#?PZVPF;t%rG!41qKGnP8n#S6uJQ|TcIqqE7WdKsKu(SK#f{jx7fy( zi-y`ZYHDjzV=tOuG{(fF)@og1Z;ZxxMPmF7U-CV^&yho>iy9NZkol*{Kqw1tM~mQ zZ#W#b5K-$ZrQa`@Nk~YTD=8^4nwpx7?(S}LaB$EZ9UV1CMn=qmfdQkwzTQYoOq}D| zg+1J>c-OCAZ`rV6gA5=17PxFO%XM5o6&DwGr?j-xXl`ycWRHf~(a~Y{_V${)ckecb zhldT}H4Yy>Y^+FGfz6q=`u1zB3I3>QB=S0OX!0)fCh<>%z&VCmAO z$jr<{R#ui8v!9!ri-Ljzh4S)pL?RJ|<;$0=Gpt>^7R#0`)0~v4T6s#7w-EMe19{7Adb$8yG=cetetE&xJN55sP=osykGtY@W zjEsy7byiDE46JrHtTqqqPCw$jS#U1NhRas~Pp}N$j4F82N|BHfMw}-bHm46Uws_cL zok|Dfq>kl|2IEP%7@zuX<6lpGoj-sT05|Jlgk$=;uA3ckWr>=u%jGUGK2T(mcjneI-;x{(sv-DBQY;0_Ngirj)tf;6k84rvx zcUB>MBHJAdVg2~)BEybQ*D!1jCj#|7u*SLIt6B#~asb}K8bJi!@NZ2kQq$F zPxpU-)f$8QKYRyAY%K17e-D`wr>9Q7gfBk-3*ftK)Yr*+EAuu) zo*{N5pNgwv4yQ6hUuEl&UdFQs&PW1QpL;MxRWyQz~ z=OH&gS0N{qqvTO$G?=>xl?&6QZV1FaszyoveK=nWrQ%feh_!NTYz*7BZBw;Od~5Np z^j*d=xu|dE2IhA5sXy_3MAty6TaT+pnorljb5cL&PoF-Gy?ggU-Yby!VV+m^U=C)j zrEJ=nEo&aZdcYdQ8ZUW_T&(ertGCgdOn057#bQ8m+O)DlIUxZM|a34Z#xe4dH6$FQeDJ@&cOT-@L-H|Zbc~W) i*A(4yj?nA4=U>0RE&a^{n|e2G?kantWm89Ux#dp-UPoyF literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index 3ab74b07..0a0c8461 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -62,4 +62,11 @@ spriteTypes = { norefcount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_become_duke" + texturefile = "gfx/objectives/obj_become_duke.tga" + noOfFrames = 1 + norefcount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index a57dfad4..b237c9c2 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -30,4 +30,7 @@ obj_become_exalted_4_desc;[This.GetTitledFirstName] wants [This.GetHerHis] name obj_become_exalted_4_title;Become Exalted among Men;;;;;;;;;;;;;x obj_become_independent_desc;[This.GetTitledFirstName] desires independence from [This.GetHerHis] tyrannical liege.;;;;;;;;;;;;;x -obj_become_independent_title;Become Independent;;;;;;;;;;;;;x \ No newline at end of file +obj_become_independent_title;Become Independent;;;;;;;;;;;;;x + +obj_become_duke_desc;[This.GetTitledFirstName] is not satisfied with being a mere Count.;;;;;;;;;;;;;x +obj_become_duke_title;Gain a Duchy;;;;;;;;;;;;;x \ No newline at end of file From 95c6c199271cb126d2cbef5815589da00f538682 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Fri, 27 Mar 2020 19:24:49 +0100 Subject: [PATCH 12/23] Added 'become_multiduke/emperor' ambitions --- .../objectives/000_CK2Plus_ambitions.txt | 137 ++++++++++++++++++ CK2Plus/gfx/objectives/obj_become_emperor.tga | Bin 0 -> 3180 bytes .../gfx/objectives/obj_become_multiduke.tga | Bin 0 -> 3180 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 18 ++- .../localisation/000_CK2Plus_ambitions.csv | 8 +- 5 files changed, 160 insertions(+), 3 deletions(-) create mode 100644 CK2Plus/gfx/objectives/obj_become_emperor.tga create mode 100644 CK2Plus/gfx/objectives/obj_become_multiduke.tga diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 07957842..a1d71a7a 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -1044,4 +1044,141 @@ obj_become_duke = { } prestige = 50 } +} + +obj_become_multiduke = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + tier = duke + num_of_duke_titles < 2 + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + NOT = { trait = content } + } + chance = { + factor = 20 + modifier = { + factor = 1.5 + demesne_size = 2 + } + modifier = { + factor = 1.5 + demesne_size = 3 + } + modifier = { + factor = 1.5 + demesne_size = 4 + } + modifier = { + factor = 1.5 + demesne_size = 5 + } + modifier = { + factor = 2 + trait = ambitious + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + num_of_duke_titles = 2 + } + abort = { + OR = { + is_ruler = no + NOT = { higher_tier_than = count } + trait = incapable + trait = content + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + prestige = 100 + } +} + +obj_become_emperor = { + type = character + + potential = { + ai = no + is_ruler = yes + is_landed = yes + lower_tier_than = EMPEROR + NOT = { has_character_flag = obj_increase_title_3 } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + OR = { + primary_title = { tier = KING } + any_claim = { tier = EMPEROR } + liege = { + primary_title = { + tier = EMPEROR + OR = { + has_law = succ_feudal_elective + has_law = succ_hre_elective + AND = { + has_law = succ_byzantine_elective + ROOT = { + OR = { + has_job_title = job_marshal + has_minor_title = title_commander + } + } + } + } + } + } + } + } + chance = { + factor = 0 + } + success = { + higher_tier_than = king + } + abort = { + OR = { + trait = incapable + is_ruler = no + } + } + abort_effect = { + } + effect = { + prestige = 500 + set_character_flag = obj_increase_title_3 + } } \ No newline at end of file diff --git a/CK2Plus/gfx/objectives/obj_become_emperor.tga b/CK2Plus/gfx/objectives/obj_become_emperor.tga new file mode 100644 index 0000000000000000000000000000000000000000..b19f451f363d14d1aa75aa5a6485336d8ef00d0a GIT binary patch literal 3180 zcmb_e+fS5N5Z|=M3to}E0K33~D+()!fEPqX1dJ<{1-W0A1(m(97j`Wm?1Hess?~bI z#TL_QjTf}mHf>r-lg6YE#LlhKky~ruQMlnWNT@gCjFAhIp3U_`OTSg zX6C3=Z>W^dpfae8tChdM854-lGEC-0Dxxu-6uu(II{)=!9fjE538DZ|jOg)e#5`VO z8J1P_{t-7jJ6pvRCtpDGMxt0kLc+Y+Y?jK(%B0%bTG?*5%N~zMcDvnjQ&W?)fB$}I z6N*jE7gpZTE; z8#XMEf5NUtqY-0bVj|Y9TL(HvK|Ei-e!U=)2l*#_VBdJ}tiNyHKK7L{LyNWaA zeLZmC09LPF{gN;m;&7DQiczd2jvea`_4;rvJc*#g19!)1*z4M1Id~M6#g#xR481!r3i+^4$GOXO^K5YLHWTJuv3 zST-7pVr(b^eX3rZ>7G4%Bsx#tBi96_7RBhCB_@vhW;&B_fv&~ z2k+S!qC*pyjeJ1&v;av-N!Yn_r(9A}A~OaNV+lMuS9$B!tuo8h*Y)5=>?zLs2N5_m z0{@u_c+2pvz&?yo|2bTr`IKxppwsHWHcLxO z|AI%gM5Y{<^@cP|Tzi7a+b<9uxQOxochG6|qN}bABhFS#PR^mTk$6p)F*W%ZVdC+c zz1AyaS!Z(g1tzXOK`Nag+guKhYO$P~n=2=$=yB=kD@@+~0jC3x&@*%ozEe@OR@e}v z`!YIo7w_6bf_Tn6USk=SWgXVNNH+9_bg)gjGx7W5I}_ttOL3-rNP(@r2Vea7JDj(E zL?rqQ-qu!3wc2rG>>(P$pW)ft=LPYcdA!ClEXz8q%QiG>4c9t}&M^MIFkXQ3lKTMX zjFDnGe(@&0{_Z#2zHkrM2Rkr7a|NNvXXv=}4f-RG(LePuI@Aocb2NnKrC;;nS-*fD;a$(@~@VvWu~qBo4RcJ11~yqD-4mvEE`l9D*i0J z2kG4A`OU|+gTbI22n1w$kI8hmWV+Ado%na}LE67+IXne-aa1sQ#%;K$aixbf|M$ZhDbYH;NvG3!Rz^n;>GcM`POqPd*6F0+ zpT&yZJ`bK#okzjj}o zxaHS|?tCEy|15I+&}ZYKZg;mxOv{|d+Ss_&3KKS$`Xn!%-e8Z4it=quG6rkBduiX9 z3$%aubJ}})ggOV#Q0L%qNOljMr#+`Wql4$isCVoR4P2k3?sJ!^$mtFm3^6`KOst)O z)cJ;Esxvh6UHFo-Ou^b+2c+GWo_=aPaFpD84iWEP{_}Yf1mg|+k1XKxUa&XdVSm-_ zyMxTp$6{UrGnR48%xlD$ofC9*?WfkGgCW~|PsH~I8|3WRL-yv51!?ih7W)8xTklEo z_MevLu=CgnDywe>&k^<`g$a(58~a8F-}ziYm5Z7WAD4W93yd9}c8OQn)CL<=TG#ZZ zxIJOZHFX~&oG0+WOYs3tNp0gB zQtWCV_FF=W`NHZtsSg|NeM3~<&?4CX{Oq%c6&a&^jvn|td>iKgOob)+@cwyD+GJmV zKZFGK3mml)6aNtGiE$)Xwk7zE0*KE=JQMRB+Wb+XV1JZ&Y1t-9NH(&hP(l(~BPAMB zC^N@Q`8%A_HaGz%GbfMdQYn#jAy|Vp!;~xe^4$yGgFsGTJei9SrzzWWW&Gq=3+dAA zPgFPYn2Ijkpt6yxR6agIHTNEq``Ikzmy{Fk7-B6hTUHnIeD{LSNUT~N?_b2TAwO9v zsx&@xEj!Oj`Tb|eSnZ~SqB7cQw$V0AAsLiP9g*=DnU_Wbn^8PhYRpTJj=(=wLTO-f0VcsRSb z_;|(71b;zZ=KLf|9W_+sa#Oj(MLYWj>FnI!RB)(|N~>zfY-6OKpr z)z&cG;vEjkt#pvBw30YSi0uU>g5yv5i;M@35y81wcn4IZi#e)Iy9=~pV0C=ba$Y;n$$W4fS z)Ct&xzz*z5Y_^9M`4#yb`Z6zZA1!n_Zp5Z-2?1a%#=C+2)5Lv0=Oc0C;tiSafd^dV zVPy+B2iRzpU_UBnVhnu<@)>eF?ulzR-T*3}h4S^94IAfB&yHW2kTs>__$kQ~c^?9N z*jDujwF-7sp2j%lp^I9De9G^FIn)B?7G4KqIcLjylx-^xescRE4c~i2edBlOz}btk zrUD!JSJgw<X(y#q@VSipiI=+V!U|rHnm#u8lr?Do)>>5`2z=>y+R+GtW4q z% Date: Fri, 27 Mar 2020 20:55:46 +0100 Subject: [PATCH 13/23] Added 'befriend_liege/top_liege/relhead' amb --- .../objectives/000_CK2Plus_ambitions.txt | 288 +++++++++++ .../000_CK2Plus_ambitions_befriendLiege.txt | 474 ++++++++++++++++++ CK2Plus/gfx/objectives/obj_befriend_liege.tga | Bin 0 -> 3180 bytes .../gfx/objectives/obj_befriend_relhead.tga | Bin 0 -> 3180 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 21 + .../localisation/000_CK2Plus_ambitions.csv | 11 +- ...CK2Plus_ambitions_befriendLiege_events.csv | 14 + .../000_CK2Plus_custom_tooltips.csv | 7 +- 8 files changed, 813 insertions(+), 2 deletions(-) create mode 100644 CK2Plus/events/000_CK2Plus_ambitions_befriendLiege.txt create mode 100644 CK2Plus/gfx/objectives/obj_befriend_liege.tga create mode 100644 CK2Plus/gfx/objectives/obj_befriend_relhead.tga create mode 100644 CK2Plus/localisation/000_CK2Plus_ambitions_befriendLiege_events.csv diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index a1d71a7a..72f1a4de 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -1181,4 +1181,292 @@ obj_become_emperor = { prestige = 500 set_character_flag = obj_increase_title_3 } +} + +obj_befriend_liege = { + type = character + + potential = { + ai = no + independent = no + liege = { + NOR = { + is_married = ROOT + is_lover = ROOT + is_friend = ROOT + is_rival = ROOT + war_with = ROOT + } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + liege = { + same_sex = ROOT + is_adult = yes + opinion = { who = ROOT value = -25 } + NOR = { + trait = incapable + num_of_friends >= 3 + opinion = { who = ROOT value = 75 } + } + } + } + + chance = { + factor = 0 + } + + success = { + liege = { + opinion = { + who = ROOT + value = 75 + } + } + } + abort = { + OR = { + trait = incapable + independent = yes + liege = { war_with = ROOT } + liege = { is_friend = ROOT } + liege = { is_rival = ROOT } + liege = { trait = incapable } + liege = { + num_of_friends >= 2 + NOT = { is_friend = ROOT } + } + NOT = { + liege = { + opinion = { + who = ROOT + value = -50 + } + } + } + NOT = { + liege = { + reverse_opinion = { + who = ROOT + value = -50 + } + } + } + } + } + abort_effect = { + } + effect = { + liege = { + add_friend = ROOT + } + if = { + limit = { + NOT = { has_character_flag = obj_befriend_liege } + } + prestige = 100 + } + if = { + limit = { + has_character_flag = obj_befriend_liege + } + prestige = 25 + } + set_character_flag = obj_befriend_liege + } +} + +obj_befriend_top_liege = { + type = character + + potential = { + ai = no + independent = no + top_liege = { + NOR = { + is_liege_of = ROOT + is_married = ROOT + is_lover = ROOT + is_friend = ROOT + is_rival = ROOT + war_with = ROOT + } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + top_liege = { + same_sex = ROOT + is_adult = yes + opinion = { who = ROOT value = -25 } + NOR = { + trait = incapable + num_of_friends = 3 + opinion = { who = ROOT value = 75 } + } + } + } + + chance = { + factor = 0 + } + + success = { + top_liege = { + opinion = { + who = ROOT + value = 75 + } + } + } + abort = { + OR = { + trait = incapable + independent = yes + top_liege = { war_with = ROOT } + top_liege = { is_friend = ROOT } + NOT = { + top_liege = { + opinion = { + who = ROOT + value = -50 + } + } + } + NOT = { + top_liege = { + reverse_opinion = { + who = ROOT + value = -50 + } + } + } + } + } + abort_effect = { + } + effect = { + top_liege = { + add_friend = ROOT + } + if = { + limit = { + NOT = { has_character_flag = obj_befriend_liege } + } + prestige = 100 + } + if = { + limit = { + has_character_flag = obj_befriend_liege + } + prestige = 25 + } + set_character_flag = obj_befriend_liege + } +} + +obj_befriend_relhead = { + type = character + + potential = { + ai = no + religion_head = { + is_alive = yes + NOR = { + is_vassal_or_below = ROOT + is_married = ROOT + is_lover = ROOT + is_friend = ROOT + is_rival = ROOT + war_with = ROOT + } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + religion_head = { + same_sex = ROOT + is_adult = yes + opinion = { who = ROOT value = -25 } + NOR = { + trait = incapable + num_of_friends = 3 + opinion = { who = ROOT value = 75 } + } + } + } + chance = { + factor = 0 + } + + success = { + religion_head = { + opinion = { + who = ROOT + value = 75 + } + } + } + abort = { + OR = { + trait = incapable + NOT = { religion_head = { is_alive = yes } } + religion_head = { war_with = ROOT } + religion_head = { is_friend = ROOT } + religion_head = { + is_liege_of = ROOT + } + NOT = { + religion_head = { + opinion = { + who = ROOT + value = -50 + } + } + } + NOT = { + religion_head = { + reverse_opinion = { + who = ROOT + value = -50 + } + } + } + } + } + abort_effect = { + } + effect = { + #if = { + # limit = { any_vassal = { leads_faction = faction_tradition } } + # custom_tooltip = { text = TRADITIONFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_tradition } set_variable = { which = "faction_mood_increase" value = 2 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + religion_head = { + add_friend = ROOT + } + if = { + limit = { + NOT = { has_character_flag = obj_befriend_relhead } + } + piety = 100 + } + if = { + limit = { + has_character_flag = obj_befriend_relhead + } + piety = 25 + } + set_character_flag = obj_befriend_relhead + } } \ No newline at end of file diff --git a/CK2Plus/events/000_CK2Plus_ambitions_befriendLiege.txt b/CK2Plus/events/000_CK2Plus_ambitions_befriendLiege.txt new file mode 100644 index 00000000..acdc8226 --- /dev/null +++ b/CK2Plus/events/000_CK2Plus_ambitions_befriendLiege.txt @@ -0,0 +1,474 @@ +namespace = PerformancePlus +namespace = PlusAmbitions.befriendLiege + +####################################### +# AMBITION EVENTS +####################################### + +character_event = { + id = PerformancePlus.900 + + hide_window = yes + is_triggered_only = yes + + capable_only = yes + min_age = 16 + prisoner = no + + trigger = { + OR = { + has_ambition = obj_make_a_friend + has_ambition = obj_befriend_liege + } + in_command_trigger = no + is_councillor = yes + NOT = { is_inaccessible_trigger = yes } + liege = { + age = 16 + prisoner = no + in_command_trigger = no + NOR = { + trait = incapable + is_friend = ROOT + is_rival = ROOT + num_of_friends = 2 + is_inaccessible_trigger = yes + } + OR = { + AND = { + is_female = no + ROOT = { is_female = no } + } + AND = { + is_female = yes + ROOT = { is_female = yes } + } + } + OR = { + NOT = { has_character_flag = approached_for_friendship } + had_character_flag = { flag = approached_for_friendship days = 365 } + } + } + opinion = { who = liege value = 10 } + } + + immediate = { + random_list = { + 3 = { + character_event = { id = PlusAmbitions.befriendLiege.000 days = 60 random = 30 } + } + 32 = { + modifier = { + factor = 0.75 + trait = gregarious + } + modifier = { + factor = 0.5 + liege = { is_close_relative = ROOT } + } + modifier = { + factor = 0.5 + liege = { has_ambition = obj_make_a_friend } + } + modifier = { + factor = 0.65 + opinion = { who = LIEGE value = 75 } + } + } + } + } +} + +### Councillor tries to befriend liege +character_event = { + id = PlusAmbitions.befriendLiege.000 + desc = EVTDESC_PlusAmbitions_befriendLiege_000 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + prisoner = no + min_age = 16 + capable_only = yes + + trigger = { + OR = { + has_ambition = obj_make_a_friend + has_ambition = obj_befriend_liege + } + in_command_trigger = no + is_councillor = yes + NOT = { is_inaccessible_trigger = yes } + liege = { + age = 16 + prisoner = no + in_command_trigger = no + NOR = { + trait = incapable + is_friend = ROOT + is_rival = ROOT + num_of_friends = 2 + is_inaccessible_trigger = yes + } + OR = { + AND = { + is_female = no + ROOT = { is_female = no } + } + AND = { + is_female = yes + ROOT = { is_female = yes } + } + } + OR = { + NOT = { has_character_flag = approached_for_friendship } + had_character_flag = { flag = approached_for_friendship days = 365 } + } + } + opinion = { who = liege value = 10 } + } + + option = { + name = EVTOPTA_PlusAmbitions_befriendLiege_000 # Let's try + ai_chance = { factor = 95 } + liege = { + set_character_flag = approached_for_friendship + character_event = { + id = PlusAmbitions.befriendLiege.001 + days = 1 + random = 3 + tooltip = make_friend_attempt_tooltip + } + } + } + option = { + name = EVTOPTB_PlusAmbitions_befriendLiege_000 # Maybe later + ai_chance = { factor = 5 } + random = { + chance = 10 + add_trait = shy + } + } + +} + +# Liege responds +character_event = { + id = PlusAmbitions.befriendLiege.001 + desc = EVTDESC_PlusAmbitions_befriendLiege_001 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA_PlusAmbitions_befriendLiege_001 # Make Friends + add_friend = FROM + FROM = { + character_event = { + id = PlusAmbitions.befriendLiege.002 + days = 1 + random = 3 + tooltip = make_friend_success_tooltip + } + } + } + option = { + name = EVTOPTB_PlusAmbitions_befriendLiege_001 # Rebuff him + FROM = { + character_event = { + id = PlusAmbitions.befriendLiege.003 + days = 1 + random = 3 + tooltip = make_friend_sad_tooltip + } + } + } +} + +# Friends - councillor and liege +character_event = { + id = PlusAmbitions.befriendLiege.002 + desc = EVTDESC_PlusAmbitions_befriendLiege_002 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = "EXCELLENT" + add_friend = FROM + } +} + +# Sad - councillor and liege +character_event = { + id = PlusAmbitions.befriendLiege.003 + desc = EVTDESC_PlusAmbitions_befriendLiege_003 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = "SO_BE_IT" + opinion = { + modifier = opinion_sad + who = FROM + years = 2 + } + } +} + +character_event = { + id = PerformancePlus.910 + + hide_window = yes + is_triggered_only = yes + + capable_only = yes + min_age = 16 + prisoner = no + + trigger = { + OR = { + has_ambition = obj_make_a_friend + has_ambition = obj_befriend_liege + liege = { has_ambition = obj_make_a_friend } + } + in_command_trigger = no + OR = { + trait = duelist + trait = tough_soldier + trait = skilled_tactician + trait = brilliant_strategist + } + is_female = no + #OR = { + # is_female = no + # trait = martial_lady + # trait = martial_lady_tengri + # trait = martial_lady_pagan + #} + NOT = { is_inaccessible_trigger = yes } + independent = no + liege = { + age = 16 + prisoner = no + in_command_trigger = no + NOT = { is_inaccessible_trigger = yes } + is_female = no + #OR = { + # is_female = no + # trait = martial_lady + # trait = martial_lady_tengri + # trait = martial_lady_pagan + #} + NOR = { + trait = content + trait = kind + trait = craven + is_weak_trigger = yes + trait = incapable + is_friend = ROOT + is_rival = ROOT + num_of_friends = 2 + } + OR = { + NOT = { has_character_flag = approached_for_friendship } + had_character_flag = { flag = approached_for_friendship days = 365 } + } + } + opinion = { who = liege value = 10 } + } + + immediate = { + random_list = { + 3 = { + character_event = { id = PlusAmbitions.befriendLiege.010 days = 60 random = 30 } + } + 62 = { + modifier = { + factor = 0.85 + trait = gregarious + } + modifier = { + factor = 0.65 + liege = { is_close_relative = ROOT } + } + modifier = { + factor = 0.5 + trait = duelist + } + modifier = { + factor = 0.5 + liege = { trait = duelist } + } + modifier = { + factor = 0.5 + liege = { has_ambition = obj_make_a_friend } + } + modifier = { + factor = 0.85 + opinion = { who = LIEGE value = 75 } + } + } + } + } +} + +### Duelist tries to befriend liege +character_event = { + id = PlusAmbitions.befriendLiege.010 + desc = EVTDESC_PlusAmbitions_befriendLiege_010 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + min_age = 16 + capable_only = yes + prisoner = no + + trigger = { + OR = { + has_ambition = obj_make_a_friend + has_ambition = obj_befriend_liege + liege = { has_ambition = obj_make_a_friend } + } + in_command_trigger = no + OR = { + trait = duelist + trait = tough_soldier + trait = skilled_tactician + trait = brilliant_strategist + } + female = no + #OR = { + # is_female = no + # trait = martial_lady + # trait = martial_lady_tengri + # trait = martial_lady_pagan + #} + NOT = { is_inaccessible_trigger = yes } + independent = no + liege = { + age = 16 + prisoner = no + in_command_trigger = no + NOT = { is_inaccessible_trigger = yes } + is_female = no + #OR = { + # is_female = no + # trait = martial_lady + # trait = martial_lady_tengri + # trait = martial_lady_pagan + #} + NOR = { + trait = content + trait = kind + trait = craven + is_weak_trigger = yes + trait = incapable + is_friend = ROOT + is_rival = ROOT + num_of_friends = 2 + } + OR = { + NOT = { has_character_flag = approached_for_friendship } + had_character_flag = { flag = approached_for_friendship days = 365 } + } + } + opinion = { who = liege value = 10 } + } + + option = { + name = EVTOPTA_PlusAmbitions_befriendLiege_000 # Let's try + ai_chance = { factor = 95 } + liege = { + set_character_flag = approached_for_friendship + character_event = { + id = PlusAmbitions.befriendLiege.011 + days = 1 + random = 3 + tooltip = make_friend_attempt_tooltip + } + } + } + + option = { + name = EVTOPTB_PlusAmbitions_befriendLiege_000 # Maybe later + ai_chance = { factor = 5 } + random = { + chance = 10 + add_trait = shy + } + } +} + +# Liege responds +character_event = { + id = PlusAmbitions.befriendLiege.011 + desc = EVTDESC_PlusAmbitions_befriendLiege_011 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = EVTOPTA_PlusAmbitions_befriendLiege_001 # Make Friends + add_friend = FROM + random = { + chance = 25 + change_martial = 1 + } + hidden_tooltip = { change_variable = { which = lifestyle_martial value = 1 } } + FROM = { + character_event = { + id = PlusAmbitions.befriendLiege.012 + days = 1 + random = 3 + tooltip = make_friend_success_tooltip + } + } + } + option = { + name = EVTOPTB_PlusAmbitions_befriendLiege_001 # Rebuff him + FROM = { + character_event = { + id = PlusAmbitions.befriendLiege.013 + days = 1 + random = 3 + tooltip = make_friend_sad_tooltip + } + } + } +} + +# Friends - duelist and liege +character_event = { + id = PlusAmbitions.befriendLiege.012 + desc = EVTDESC_PlusAmbitions_befriendLiege_012 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = "EXCELLENT" + hidden_tooltip = { change_variable = { which = lifestyle_martial value = 1 } } + add_friend = FROM + } +} + +# Sad - duelist and liege +character_event = { + id = PlusAmbitions.befriendLiege.013 + desc = EVTDESC_PlusAmbitions_befriendLiege_013 + picture = GFX_evt_courtiers_talking + + is_triggered_only = yes + + option = { + name = "SO_BE_IT" + opinion = { + modifier = opinion_sad + who = FROM + years = 2 + } + } +} \ No newline at end of file diff --git a/CK2Plus/gfx/objectives/obj_befriend_liege.tga b/CK2Plus/gfx/objectives/obj_befriend_liege.tga new file mode 100644 index 0000000000000000000000000000000000000000..ed2e70f74fcd641d2f15bbf0e5a7c3b9dd273fc1 GIT binary patch literal 3180 zcmb_e`BPNc6-FIP5dmcr5oo#_x|@b(>t20@l#M`R3Q2%F$2vh*~v zlo$sb78M*6VTN%`P2!AZlKhb5hvW|k`72)4`*P0mS_apN$#wQt~kUi3}*`7qcC`V`h*Fk4QB7G)C9gJ*@R^B1v(KnJI zS@GO|#2pwIa3Hdik6`N(Mz)}!plyS}z%?{9a7>1`*=+pm>@0ut=1sn%qk}tl?i{C5 zskTXW?+l$4aP9Om*1yIc)*;3rIg-DwP$=FM78Y{-{r%jXJ9oH=i3yIdW@cvihYug} zj~+eZS65fL<>h6L@wm#$N-j7!_zj)i(?Plp?dfLAe;a~5jB}QeH6bBkx2dTK*RNj} zh@C-CPY=4gy9Mg)?FI2BCnqsIJq@eXDy+M@x{#QdxJx?rbcuS|c7KSxaK^DFCnxW+ zdqQh#D`>8-uSZQyjX<@vwGfHyxqSJuK)$}d@bmK%sI#*Zq=R%ZBAudswiE{KiQf|w z6SK?SNzh$ZR)*Z%Tx4culFd-7)q=j$r%&U|nKNK-23J>CxVgE(lv9Pa+Ak0!O@p_$ zH%LcxbTnc1?CB;98X|VFOeXuLyu2KxrKJK!R8$oF{r%zY?hYp>CmcQQ4=49HIJw2b z*&`kY4;_UfC>oQuevS82hmjU{6UD|CPzM&m)6)|rB_$x845Qc%M~p3-Ua#jY77HRG zBH-#H$FYEDILeZ6JV*~`l>yEn*>DLz2Uo2b@40v*KB*WT4Udr?-v_m<4pGWp#Hfdm z9C;TZK^5@w@@B2s;c?v|5CBor$Y zpW?rDu=nNK+uJFY;OG*H{A<&wS=xbVb`uFR%g|0fMb`aaA$4*cM|>3+>fJ(~VHEnr zLFhu;A@MdN(ElRT@)oEhjfhnAA})Lc8nuyQZ%qG4IYG=tHuhiKl`B^`lgY&JLXg)q zkEW$9#0}qv;&uh3trk>GuAp#e4#!-S=<8lban2YD-XDQVdI{MXgJ`O~$NsN{VOJs0 zw+^x4KZCi*%CUR3zfU8$?9L9JoL$Z$TQwT%-dV=E0}}Ng$X!H6fjqJVP)|z zNK9*hvwsv$$h8R57GP@ZEk=Iv3Tjm%JUl#j7LVVThGuqwu$tCE$F)*BDcc|=Ku}-6=84*3`1VmFQHrh9LG+|;jPfX!`B~< zj*b++d}Cwd_wZQU@!8qgyiBRW#YdZn$p0FShZhmqvH{)P3eJA^76CCcNFREM$_HyO z^^T%^`*#S4T0pw(Es`I9j_A=Xc=~L>PxBII=bj-{Z-miknF$<0Mik znrsi?CBF!n(++gz-@^3!KS5ji0*4(oAyYj;&iZR;S6(8)@)_Q9cn*KrbDaO~kI0yK zjZp8u!p*T27TY3Bd;sgGPvEOj;J`sIXp?$zdwU0A zv0p-Z{O>sB@)gYYwqRL(j)2goPuRTUQ=9*&agR&;%`4!_6YFj2aQlB&0~D~HIg!na1W5+!Yv#6=9Uo>5<NN9aOLR+ZqF^DsID8fwJ)%| zwgHtw0p@>5NlCH4OTyaE*Gi>Q$k%kIQgt{|*?a2}Qy~iugTY|L@YD=!kDp;|b`rA_ z{kXNTgwgwpD7RE1G(v~)=mf}BYKj3SZxHe|%VqE8YX&J`3iXJ|?Xo>SRpncX|CO;2HPbs5odF*teRgit>yH&YGNYPB$%&1h?DgHEUWp?W0Zi8auA z{`~n});FN9uTMC~`UJsN=D%QdAF8l$#HFS}qtOU^R#$|(Yi@1^)qU1~&^;2?kJVdy zOrf7(d3$$!d>juRJiye{6mHzOA=G-ZJwHDmgiSN;sh$rH4+}lT)vH&@1`&&NiSI=i z`{RfDrP$cmH>{`N78Vw`rKKfqetw=~eG1QHdDhqP%m$u%DB`m|hH5AEY5!HfM0k6c zqCNZlAglA+6%`d6!{FxT=7ipia0dqmdDg>lSy@>e^^DATs;ksP{$xM6|D*q0h?q1} yKKQ@)yYJwMTf(E55o46F#hN0{#3K^r=*&-!;=+>5(yXGa{5(yWAuBgC%;6t293A}t literal 0 HcmV?d00001 diff --git a/CK2Plus/gfx/objectives/obj_befriend_relhead.tga b/CK2Plus/gfx/objectives/obj_befriend_relhead.tga new file mode 100644 index 0000000000000000000000000000000000000000..4439946918659f62559ce3a3f5ff01da206740e4 GIT binary patch literal 3180 zcmb_e+fS576#w=Di?9?}F3UwLAiFGbTNjYaBCx_DH(69bB&f6%FQ|Y(l|m8Lh(X0v zf;=>6)HVfU(=;&^HNMz}8k;uhV|{3vK5SCbm;M1?vZuc@GL(zjH0dNKGvE2noZp-| zw^0Qd=}VM@c_m4{l;b`Bb?_cZtZz4{2Q&qmTSLs_e=NhY za^G8VOG*q1(+YVz)=i)(vssyUxq?)eD^v{+*ZaW}WHJT%>+8*GL&H1j=FOUUmR;Jz zdj;;{!%<3mdo(^*k0mS}xGcx=Lnf2*-0j|=wzWk8D@+Xu(W&73@Aww|CqJDLm`0;s z-M4R(Ix=Ec4<3wEqobAQymv_l>(adr4}5VR%%z}7n@#KUctWYV+DPf?0c0>}2z=`K z<{8xvjFP3eOw7y+4%SjxSvYlcB+$u|o5<-5^sx>Q>ymo0Tpp5_4bEhGy4DAK$!^zE zOpKQFdWE!FJ*B06unH5hv~AlpoF#$+12tr^1X68nD8WwJxid&&vQDXA0`fQW2jK@_ zQIUaQAI_~IjfT%3LseA|Y5Vr8>+p8$_?q_YS)_=F3)#>Q~U$?BBiFD5dTdk zEycy@z>grrzydHDSK!FpnzGq+YE+a~*c22L2A`ax%3ae`Sa=S$ou;i@n}xpXFBhqO z@|IYqr+1Rebr1G0(B8d&;#|+jXiO6SA|rKFULMRb#&OHJB6Dps=jzXbhC@$qiKPe=%a4GQN9=clx- z$7AHg>cS&tZlv6k_YlFI#+l~=`G=H+#f!*OK!K3O;GW8yXA z%WsKgweF#!qEYyL0(6<&z|6?*cq3kFYMsBKVG6blA&0ssFYh?cdxTO_s)g>zNUNBo zeT>I(%(KnrLB1RZ-WgzxgV-;3D8I1#jd&?3mHyV&yYSrw#D5p4QxIdOr8Nk>vYtub zF;+%KGh(Y-+>6usv9PVU_$qSbbDaCcT0D*!_N8hvZBYjYpVEN?GfQ`R8fSim>2SP{ zyR8$Le4p}utyYh)$?5C^&JgyEpnhHijZst6EF~tEtc@4O<5(5^fq^H~*Y{AwjMF&) zUHv%Y8Qg6r{COO9?iHAj$M<`%s}J!p0`kHSgW{aU#a^nanWBzkk62dX$$a1(+#MaQ znGXois>#U(G&lDLO-%fZn4ZF!y+U6_#h8fM9Xmckzi0-v;{OEt$0v|Ek9h*|ff%VA zr-s^T>L2(XGIb*VjK)>@E^~g$V%Z?-OKt55di+?W*;%4v#~#w5Lvz&L{sn5}^s;Si zUuI?#b#^|Xk@GL;{O}7p+y9h?hrgxUw|__N92Bylp(3x@U$UMp*K5?B1)D7lwOT_7 z30vvZsad*s@drA4_7SiyqF$s69bC&%i^MuQ+DhHs_vpcczi4juHyR!NijtEZ;ve@# z)XBB=8qlIgh<=ot8{l)f;!tz-qHePtOk7vF4;qac^Z_kmM@ylh|MU?l$1|S=brZcw z`?`Jvk>#Ew`fW{3i0{&+QrHwv+1WUAa<3Uatc&n?gsA#!*|F3Hl-gaUXAK zi4eWDwKa-*do8%zL|}?O`?mLl($|;7n5*7P=<&}lT*y*y-mFq@+$dEiCyUjwF}wfV zxfFj_*Sr3qp;W)uo2gDum#O39IqK1)v1(l0`uCE@V`SZ{2IKYiCNfXP55LjGdoVd! zGvC}Ct_}~Usn@SN{Y=-c<@f%B?&j)!)t>symdffncb4)ujVXj( literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index a025b167..b4fb2043 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -83,4 +83,25 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_befriend_liege" + texturefile = "gfx/objectives/obj_befriend_liege.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_befriend_top_liege" + texturefile = "gfx/objectives/obj_befriend_liege.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_befriend_relhead" + texturefile = "gfx/objectives/obj_befriend_relhead.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index 971340c2..6e66909c 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -39,4 +39,13 @@ obj_become_multiduke_desc;[This.GetTitledFirstName] seeks to become a powerful G obj_become_multiduke_title;Become a Grand Duke;;;;;;;;;;;;;x obj_become_emperor_desc;[This.GetTitledFirstName] aspires to the lofty heights of an Emperorship.;;;;;;;;;;;;;x -obj_become_emperor_title;Become Emperor;;;;;;;;;;;;;x \ No newline at end of file +obj_become_emperor_title;Become Emperor;;;;;;;;;;;;;x + +obj_befriend_liege_desc;[This.GetTitledFirstName] wants to show [This.GetHerHis] loyalty and devotion to [This.Liege.GetTitledFirstName].;;;;;;;;;;;;;x +obj_befriend_liege_title;Befriend [This.Liege.GetTitledFirstName];;;;;;;;;;;;;x + +obj_befriend_top_liege_desc;[This.GetTitledFirstName] wants to show [This.GetHerHis] loyalty and devotion to [This.TopLiege.GetTitledFirstName].;;;;;;;;;;;;;x +obj_befriend_top_liege_title;Befriend [This.TopLiege.GetTitledFirstName];;;;;;;;;;;;;x + +obj_befriend_relhead_desc;[This.GetTitledFirstName] wants to show [This.GetHerHis] loyalty and devotion to [This.RelHead.GetTitledFirstName].;;;;;;;;;;;;;x +obj_befriend_relhead_title;Befriend [This.RelHead.GetTitledFirstName];;;;;;;;;;;;;x \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions_befriendLiege_events.csv b/CK2Plus/localisation/000_CK2Plus_ambitions_befriendLiege_events.csv new file mode 100644 index 00000000..5b44705d --- /dev/null +++ b/CK2Plus/localisation/000_CK2Plus_ambitions_befriendLiege_events.csv @@ -0,0 +1,14 @@ +#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x + +EVTDESC_PlusAmbitions_befriendLiege_000;I have served my liege loyally. Perhaps I should try to make friends with [Root.Liege.GetHerHim].;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_befriendLiege_000;Let's try.;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_befriendLiege_000;Maybe later...;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_befriendLiege_001;My [GetFromRelation], [From.GetTitledFirstName], approached me after a council meeting today and asking me to join [From.GetHerHim] for supper. We both had a grand time, and I think perhaps I should continue to spend time with [From.GetFirstName].;;;;;;;;;;;;;x +EVTOPTA_PlusAmbitions_befriendLiege_001;Let's be friends, [From.GetFirstName].;;;;;;;;;;;;;x +EVTOPTB_PlusAmbitions_befriendLiege_001;[This.GetTitle]s have no friends. Only subjects and enemies!;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_befriendLiege_002;I dined with my liege and now the two of us have agreed to go meet again within the fortnight. I think this is the beginning to a beautiful friendship!;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_befriendLiege_003;[From.GetTitledFirstName] and I had a great time at supper, but [From.GetSheHe] refused my kind offer to meet again. Perhaps another time...;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_befriendLiege_010;My liege seems bored these days. Perhaps I should invite [Root.Liege.GetHerHim] to practice fencing with me.;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_befriendLiege_011;I was sitting alone when [From.GetTitledFirstName] asked me if I wanted to spar with [From.GetHerHim]. I had a lot of fun... perhaps I should consider training with [From.GetHerHim] more often?;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_befriendLiege_012;[From.GetTitledFirstName] and I became friends, and I have taught [From.GetHerHim] how to fight better.;;;;;;;;;;;;;x +EVTDESC_PlusAmbitions_befriendLiege_013;[From.GetTitledFirstName] didn't want to become a duelist.;;;;;;;;;;;;;x \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv b/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv index 1159ee4b..55249d85 100644 --- a/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv +++ b/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv @@ -14,4 +14,9 @@ plus_buy_off_with_estate;Give [From.GetTitledFirstName] an estate off of which t PLUS_IN_COMMAND_TOOLTIP;In command of an army while at war\n;;;;;;;;;;;;;x PLUS_IS_ABROAD_TOOLTIP;Is currently abroad\n;;;;;;;;;;;;;x -plus_is_not_busy_trigger_tooltip;Is currently not involved in an important event\n;;;;;;;;;;;;;x \ No newline at end of file +plus_is_not_busy_trigger_tooltip;Is currently not involved in an important event\n;;;;;;;;;;;;;x + +#Ambition 'befriend_liege' +make_friend_attempt_tooltip;[Root.GetFirstName] tries to make a friend.;;;;;;;;;;;;;x +make_friend_sad_tooltip;[From.GetTitledFirstName] is refused.;;;;;;;;;;;;;x +make_friend_success_tooltip;A friendship is formed.;;;;;;;;;;;;;x \ No newline at end of file From f0d50517c815cfe144411fe476c7de50259b55dd Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Fri, 27 Mar 2020 21:05:38 +0100 Subject: [PATCH 14/23] Added 'escape_prison' ambition --- .../objectives/000_CK2Plus_ambitions.txt | 28 ++++++++++++++++++ CK2Plus/gfx/objectives/obj_escape_prison.tga | Bin 0 -> 3180 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 7 +++++ .../localisation/000_CK2Plus_ambitions.csv | 5 +++- 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 CK2Plus/gfx/objectives/obj_escape_prison.tga diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 72f1a4de..0a10a72c 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -1469,4 +1469,32 @@ obj_befriend_relhead = { } set_character_flag = obj_befriend_relhead } +} + +obj_break_out_of_prison = { + type = character + + potential = { + prisoner = yes + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + } + chance = { + factor = 10000 + } + success = { + prisoner = no + } + abort = { + trait = incapable + } + abort_effect = { + } + effect = { + change_intrigue = 1 + set_character_flag = obj_break_out_of_prison + } } \ No newline at end of file diff --git a/CK2Plus/gfx/objectives/obj_escape_prison.tga b/CK2Plus/gfx/objectives/obj_escape_prison.tga new file mode 100644 index 0000000000000000000000000000000000000000..2781975ba1563c79879e142457404026bf1fff97 GIT binary patch literal 3180 zcmb_e`%jzK8UC>G-NqNNjluW=#s(XVF_^0X8!+Z#1HlH$7!=yjgbWfGX+oNGYD3nE zWNVv}YU@?2wkVsrYMNT1O8a3`RYlzollIf5X+JDYEj8V=zu=R;XYcvoOG(Q*P1=zj z9iQWK-sgMI`#$eE94F(X=H#55M=g#1L$9TIwuT{eh!*OPLYkM>u|5B5V|yepds)H; zVUKXq%tLcga8dv-gwKRBr7=jSc_+L}|id^sSz@Ite& zv(qGOY`FQUDI@Q4745UNhkMvwk#}*ij9Xf=((uuC$R(#)wvMg8Y_V{6Qz;FiY;c0|8kfn>BzT zkx(NZSAo7sL^7#HGO0p;zXlT%CQMFRkjq&yJ#7~ei6{!p#-T0AE)5?xX|9Q8Zr0Vw z3SC`FM5D!MZZ1Y+V==~lelA)r`hV*tH ze(<~Rq0;X_CS!ux%zaE8`6E1%w)V&$-tU*g>6F24FM`#^`U99v97;<$m+>D!~2xjlll4m^iGlu@{E||OqjJ?r= z;6R-i<9y!2+iV=u3e%_L+lJpS;~N_lBHzSj8dp9zkM-A=@!hvi;jQ;y75n*H8GL(h z0^2{`#Kx~yu=%r7*nW2dnNvgX^|{ft-UhOX;TQYRG#aKHQ&9dIdCEQJBdZBgE!v|T z;lp7i&tlVmt{1bFU9U6!~WgF>N$TBCxZOpV1?^9T}$r{9UtYyiPlKa#U~sMS#n zpBaa{-9_3}P|j$CxjD<%_!0@7K)MxtJ_UN$T5;vg3sBjd#8CsA?Z>3E-@s&Ahg@!f zOrb#fTncr)el(lcsz1+J{7@J zFE2n@PX4F@q_y`@RrLqB-G8Rs{g8C=eW+B;P-%_O8B3ur(}Sa!+U;-Cy1OE;Ql~~s zi;DE17jik{QU6%Z?2V0?`QF|Vp7|GBZN}X03F6bjVzSYh_K9}Z*8YLT#RphgdO)@3 zp6CnnNvj=%#d3*i#GgbsogYE3KS4UyVR%^2XEKlE3**~}$2I)mpqVtGLFbvKgZQ}& za8eyJme}YV&Ek13EIh!@&cAT-2Y0%BL zw=0h7foU*H^<;l?(!n=0sL^)11>-v@n0!{aN&gPgh}lG%P?i!et5FxJrrtw7|2YN+ z3utQkRP>+u7Yu$%al0?hG2hF|BD~f5h~6d5@1;^EK9MLz+e!qPYyD6=O2nGRY9y;| zmeL~V$ybHW0j<$a+@+L{9Tcbg=;`?k9UY%xZtioc)dg6sFVcAg$-kou#b zxts?B%W=$K&y!s_$^wfyN@J3=?=Wv)uky^H+vCo4s$6kqWTO;ALnY*s0jZP$qoYPTvl6P2C77KprL{hsJ?mj_0*Q;+ zlH$cU9=6R*5BvSdd&%dM-QC)%=dWK+@H;yl{BzI6_@|!^3ahIg;fW_Ig>&a>gbNqy z`5QOl{MD?KatvwHA gq@K+&NbA_1|Jw3X)2W$}+{nau<6}c3nN*njH#c2ZPXGV_ literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index b4fb2043..3d422d90 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -104,4 +104,11 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_break_out_of_prison" + texturefile = "gfx/objectives/obj_escape_prison.tga" + noOfFrames = 1 + norefcount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index 6e66909c..609c0e55 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -48,4 +48,7 @@ obj_befriend_top_liege_desc;[This.GetTitledFirstName] wants to show [This.GetHer obj_befriend_top_liege_title;Befriend [This.TopLiege.GetTitledFirstName];;;;;;;;;;;;;x obj_befriend_relhead_desc;[This.GetTitledFirstName] wants to show [This.GetHerHis] loyalty and devotion to [This.RelHead.GetTitledFirstName].;;;;;;;;;;;;;x -obj_befriend_relhead_title;Befriend [This.RelHead.GetTitledFirstName];;;;;;;;;;;;;x \ No newline at end of file +obj_befriend_relhead_title;Befriend [This.RelHead.GetTitledFirstName];;;;;;;;;;;;;x + +obj_break_out_of_prison_desc;[This.GetTitledFirstName] wants [This.GetHerHis] freedom back.;;;;;;;;;;;;;x +obj_break_out_of_prison_title;Get Out of Prison;;;;;;;;;;;;;x \ No newline at end of file From a28ea6b2f2cb7070d476d90f368961fb0eae4256 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Fri, 27 Mar 2020 21:21:40 +0100 Subject: [PATCH 15/23] Fix + Localisation for timer --- CK2Plus/interface/000_CK2Plus_ambitions.gfx | 4 ++-- CK2Plus/localisation/000_CK2Plus_timers.csv | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 CK2Plus/localisation/000_CK2Plus_timers.csv diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index 3d422d90..f5b209aa 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -108,7 +108,7 @@ spriteTypes = { name = "GFX_obj_break_out_of_prison" texturefile = "gfx/objectives/obj_escape_prison.tga" noOfFrames = 1 - norefcount = yes + noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" - } + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_timers.csv b/CK2Plus/localisation/000_CK2Plus_timers.csv new file mode 100644 index 00000000..c74a5415 --- /dev/null +++ b/CK2Plus/localisation/000_CK2Plus_timers.csv @@ -0,0 +1,4 @@ +#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x + +plus_loan_timer;Loan Taken;Emprunt Contract�;Genommenes Darlehen;;Loan Taken;;;;;;;;;x +plus_loan_timer_desc;A loan will be due for repayment at the expiration date of this modifier.;Un emprunt devra estre rembours� � la date d'expiration de ce modificateur.;Ein Darlehen muss mit Ablauf dieses Modifikators zur�ckgezahlt werden;;A loan will be due for repayment at the expiration date of this modifier.;;;;;;;;;x From ee6f4850c195a237a08a972ccd9f7f3b11fc2e85 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Fri, 27 Mar 2020 21:23:40 +0100 Subject: [PATCH 16/23] Adding prefix 'plus_' for ai_objective_timer --- .../common/objectives/000_CK2Plus_ambitions.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 0a10a72c..682fdcfa 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -1008,7 +1008,7 @@ obj_become_duke = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -1025,21 +1025,21 @@ obj_become_duke = { trait = content AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { hidden_tooltip = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } prestige = 50 @@ -1088,7 +1088,7 @@ obj_become_multiduke = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -1105,21 +1105,21 @@ obj_become_multiduke = { trait = content AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { hidden_tooltip = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } prestige = 100 From a2eee1d741d70ed6d87b951a91d8c36251e19449 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Sat, 28 Mar 2020 19:25:05 +0100 Subject: [PATCH 17/23] Added 'go_crusade' ambitions --- .../objectives/000_CK2Plus_ambitions.txt | 144 ++++++++++++++++++ CK2Plus/gfx/objectives/obj_go_crusade.dds | Bin 0 -> 4284 bytes CK2Plus/gfx/objectives/obj_jihad.tga | Bin 0 -> 3180 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 14 ++ .../localisation/000_CK2Plus_ambitions.csv | 8 +- 5 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 CK2Plus/gfx/objectives/obj_go_crusade.dds create mode 100644 CK2Plus/gfx/objectives/obj_jihad.tga diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 682fdcfa..d14a1665 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -1497,4 +1497,148 @@ obj_break_out_of_prison = { change_intrigue = 1 set_character_flag = obj_break_out_of_prison } +} + + +obj_go_crusade = { + type = character + + potential = { + ai = no + is_ruler = yes + religion = catholic + NOT = { has_character_flag = obj_go_crusade } + NOT = { trait = crusader } + OR = { + OR = { + male_can_hold_minor_title_trigger = yes + female_can_hold_minor_commander_title_trigger = yes + } + OR = { + NOT = { religion = hindu } + trait = kshatriya + } + AND = { + is_ruler = yes + independent = yes + martial = 12 + #OR = { + # trait = martial_lady + # trait = martial_lady_tengri + # trait = martial_lady_pagan + # martial = 12 + #} + } + liege = { + OR = { + has_law = true_cognatic_succession + has_law = enatic_cognatic_succession + has_law = enatic_succession + } + } + AND = { + independent = yes + OR = { + has_law = true_cognatic_succession + has_law = enatic_cognatic_succession + has_law = enatic_succession + } + } + } + } + + allow = { + prisoner = no + is_adult = yes + religion_head = { has_called_crusade = yes } + NOT = { trait = incapable } + } + chance = { + factor = 0 + } + success = { + trait = crusader + } + abort = { + OR = { + prisoner = yes + is_ruler = no + trait = incapable + NOT = { + religion_head = { has_called_crusade = yes } + } + NOT = { religion = catholic } + } + } + abort_effect = { + } + effect = { + #if = { + # limit = { any_vassal = { leads_faction = faction_tradition } } + # custom_tooltip = { text = TRADITIONFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_tradition } set_variable = { which = "faction_mood_increase" value = 2 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + hidden_tooltip = { change_variable = { which = "lifestyle_martial" value = 1 } } + piety = 100 + set_character_flag = obj_go_crusade + } +} + +obj_go_jihad = { + type = character + + potential = { + ai = no + is_ruler = yes + is_female = no + religion_group = muslim + NOT = { has_character_flag = obj_go_jihad } + NOT = { trait = mujahid } + NOT = { trait = decadent } + } + + allow = { + prisoner = no + is_adult = yes + NOT = { trait = incapable } + religion_head = { has_called_crusade = yes } + } + chance = { + factor = 0 + } + success = { + trait = mujahid + } + abort = { + OR = { + prisoner = yes + is_ruler = no + trait = incapable + trait = decadent + NOT = { + religion_head = { has_called_crusade = yes } + } + NOT = { religion_group = muslim } + } + } + abort_effect = { + set_character_flag = obj_aborted + clr_character_flag = obj_check + } + effect = { + #if = { + # limit = { any_vassal = { leads_faction = faction_tradition } } + # custom_tooltip = { text = TRADITIONFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_tradition } set_variable = { which = "faction_mood_increase" value = 2 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + hidden_tooltip = { change_variable = { which = "lifestyle_martial" value = 1 } } + piety = 100 + set_character_flag = obj_go_jihad + } } \ No newline at end of file diff --git a/CK2Plus/gfx/objectives/obj_go_crusade.dds b/CK2Plus/gfx/objectives/obj_go_crusade.dds new file mode 100644 index 0000000000000000000000000000000000000000..0897f4407788883e513de74477057be09b8b1ca2 GIT binary patch literal 4284 zcmb7GX;4#H7JeiVLVyGUDA;r?xy$dfp(l8tEXmas%HNBhad8rpO1QH&VAu2Ojl1$-^$5-@4j>Hch0$Ix!12J zA8({6%FbCtdErdxGe`WxamYIT-~Y#vGh&aMJW~{KKlVlF{27`5$Pgj3kR<`%hqATx zq3nf0l*m4aau8W(dwc7;fN$laC?fMm2a&OoK;VP>$5Uc)IVF{vsl)CIl*bVy59@r` z-Hhwy_&px^d?a`7m`X{+X1~bL_4Fz^-8$VtYv=nI&4QU} zMj~^=jDb$6E}(sGhOeV8X5>#rIe&`BV{!NGdjNe8i_hZm`TnSDLvT#^tB%Pwx@D%5 zRzL2d>lS)x)yfD{!O|#G`DB!Nu-Hde;(85!Z$!Sp#Hd$jZv)EvQ+z(bV8@Y^n!}=gg45I1KWqH$x`;S3CLL<1^N6S6wR99 z!E_JQEDph)I^~v~hnq?0WFOAi`Cnk1&;5kX5*DjzR1cLF11P3@A@}hBWZ=HCXOrOU z?2JK30?|rhu^7^xOhD%H7^{zRVHAqTjF6-%+7cd?n$Wj?oGtq>37#LGb-m8iwAF-m zsU{4doH0QT>MmOuhs3oRi1~7!#gWTrAu4JaZrxgB-($Xb3`uL#a1Zs#T^@&m88hT` zYaywuaLdL;T#x&5m;{ouEhRki;>%|9Bd9^!N~gLZ53%k(8HZcXasTxt2>WgoTwPsR z41$NUAdyIL{TW2#_e8|Ki?}Ip8j>ZRt1gvZOHFVub8#_sFl;sR%W`2oCt-8_Kj z{kKgxi|bBKPVBn9y*;F@PJ(=45K1haP;98BFGPf_W37na!y~xm?LCe3qX8{lJ=zW> z7$aFrBXApS!*38DZ#_5i%+bx8Gw+_cwVa$Oc8$mpdF5;`RF3FqS$P(Xb*UWr2o@o; z9`Q7TEwpMJb(-sg%#|@n_pifD>Dj)Yj z?UaGmj*!N6+F>12O>z!%o7k85`5YUMJRT27o_YP_6-fW}D;txX zKc)Zv6}ImDv;)gRX&=;yEC>|ZfH5fgpFo*kLF_zc3F z2>*T+V!v7h+4E`0NBN3b6Eu!=Fx9$hh9|V+@Ys0iG^ps7o;tdHwg=RU{ZRIF4DP>} zfu!|Ci2n8|T>0q*Vv_v(?f@RiKZ14T$LDb4n`KDGoX^7gTDm*}H5i|b7@xKJDw-1V zF$dqpXL)8uJl)n^Lw8LZp#|-$UKxSHwJErV@(EurA?6df`okLQv;FoF9}>H6pdUzm z$w1qRpIJb)Gzd+z-O$jdrqlCNX~Zhu!y`FQa&f)GsG|EOJD~&lnikAZfi~u$Ji$!* zasgtn&RqX`<$!(UykfDg-o~1jj(J}EY#dZ8!+`w}+Ge^y->*j74y_|rJQ7!5Sf3Ib z2gmi$Gi3n%Tn{uY4j?AhCdABGor2V7Q*2!(_Qk|lbMrQSlRYKXo7&ia|FwT z#90qVN(o?*~HRi_$i4UM3~zGE8G z!@x*8nEKTa5O9{m3P%9$y!K;JC8cumZoMy2ls`TO=O5H64`@b@%Q$|$M=J*?X7eA5dKsoQrFkd zpF2ep?7W;iOm1c(bMJ0EQUY^3If_1i;S`BM67z(Y$Z%Mqef#3_?+y-=%p_MxewHJV z{YYJUPu5r`xlHnl@a~tz*FQ9f?EV}j`;mU~o(P7Ogg6skBJ;b0&*xJvE@Hfz@&uHP zjZ`4A50Q9zDx{}RXrv#V)QFFHDFjZAA;=&_UV)X@DswIJB46Yv^7i`3yXwaMqz$=V zwOusSwo^Ey-^u8x-Hwo_ZFu;6RAn!A^d`Itje?H?LsEY{a-E2nyx%*kGeD9(c` z**Or`QVRw11I)elhV2ud`Wx+?9K2cGC`$UF_lK2AUFBOP-ap8l@!HHFoVpYXXMEDZ zr=*CzJ7vueLvmyJTaVMnD~UaaY!8LRrp9bkjkYrx6WtJ0QV1WnHp5X_7996WgyU^Z z;8R)zQLXimH*R3UkXK+Y43WAzE6UWR+vRw-N*L;ZGr=iv+Aj@G`liA83x#mpKM{QW zWDuO23;FW{klkFiEjjF}aCMhzDzp_l<#=aL9P5HpSL4AmF#|kqro)K~cfc)O4#zIV zKrre-?(?M`4Lh!$M>K9Ir_w&$shR14OuYYvEsn$4@1KL`!x}jDNg5nmeGGw5rXg-= z3>0`*E7n%+NRPN{BoZfu;$il7%S<`}sei??n?4;rWcn76Gz@mliYxl7?sjyGw zsPebPu3`m`XA=?@{>cW`E{4?g0_=IWSEs=zBO6YkZIJ^VkcoAi)LxCHgSiqNy1_fd z3&B8=Iy;LibMn&Oc3aw@dA<*_u|Ay+h=#Lx4xeRZf(q-R25U@S+5NZZM?42gigy|T z)@|>j9~?F2$WyoVcpqu#QbSx?8brn=K~`BFw3@X{fiiRZ11}Gwt?eOiBIDrbK>1!c z$0xFgTXpH8|Hj?Bx3=Z^89V9OX*48}j^ngoOLa3M zvFx<6;`~roX@BTXsFCtRez2_k9I5I*fZF~KS9;%`^M;2fHfdFL0TB>64)g67Mi;5BG3pWUs82w869VXcmh5miZbeoJ@8-x#3clG=yAM43G%hGvmNQ$cT zeM2|8hSwTg&&GuCd^Aa~KYtEc8qKmE>)#PM-dEO{c1ilub8|v^J{*^x^{^g)dsSd9X;k;1AWpY8`ROdJYHxF$ygCCPUCQ_U))uAfl6hUb_2~m*>;V1i!C_{5;$Zp6&`+76Fwn7+r zcplS_r;uBl4Mh=9a+6^lKfL?#Mo_FkqHJQl8cj(Qj~(>ogqyBaRQ2}K&{V(+E)hcTs0i;4S-@m5{q+& zbH&WjA(83c*GB85dbT`zhqajyZmYq{Z_hz-D2RgQAZ)HEpVmhAqne`vkrW3}O}=f( zgW6jLOV~K0w zXhGBEdL-r~9J1)l@pgz*FR`pB3KbxuB+cOGHRQsT;DVBw0EL+9Une}L+A2YJ?_Sc&I}S}89e(^pKhJ)(AAz&D3t+YT~)XOlV69?aIxNa z7pd+jC!KhSQ9s6~`>^@LO>BI(hRMhnGz;CY+iv8L4`ojvEFY@`wN9i8AM`9huN_JHi*8aMRdp~aD$v?it^0$k)`iBKLyrh%v z1@o-4?Z@&wx2AN*La(k3RzYnoFno2gB_H?yzKzjek3<=i*P=dd6k$?W? zXkKtGQodNiOKluX=ScXheka8?-A!o<)ZS89r&__WsSa1i z<^$*85Y?{zj7K-5^XdR>Go40lRubZ1qx!P-w_Diy=@#l2YhT|P#jkLXaL&;_R2tcD z%BggyJtao&ac^-fpXDAEo9|}M@AL>N=H|sSa4W`kLsP-Hb{{9})c2?lH(hKM1ZfKn)5E)co4)Z{v-1qpru-Pbv z%(*}!EWMSmT{;ctQa?O5$Dy?6AJ>mep4kH-nWM1T!p7PmM-G66JPv5zwXFpn(m0$15;FFJK z{GC}Tij&^@UZVRt;+Q{}m%O{oujYPUe-GAW?o*ABnUR~a{F`09?D>v<>e+q0;H$g( ziO-gd@5EpF9;Cb$$MH<=;b<~>b3W}7|59C?n#)Z;b(^%)xp UcaQgv_MbmjHrdlZ*j+CE4UWnobpQYW literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index f5b209aa..a68c54fd 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -111,4 +111,18 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_go_crusade" + texturefile = "gfx/objectives/obj_go_crusade.dds" + noOfFrames = 1 + norefcount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_go_jihad" + texturefile = "gfx/objectives/obj_go_jihad.tga" + noOfFrames = 1 + norefcount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index 609c0e55..5055dc02 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -51,4 +51,10 @@ obj_befriend_relhead_desc;[This.GetTitledFirstName] wants to show [This.GetHerHi obj_befriend_relhead_title;Befriend [This.RelHead.GetTitledFirstName];;;;;;;;;;;;;x obj_break_out_of_prison_desc;[This.GetTitledFirstName] wants [This.GetHerHis] freedom back.;;;;;;;;;;;;;x -obj_break_out_of_prison_title;Get Out of Prison;;;;;;;;;;;;;x \ No newline at end of file +obj_break_out_of_prison_title;Get Out of Prison;;;;;;;;;;;;;x + +obj_go_crusade_desc;[This.GetTitledFirstName] wants to join the Crusade against the infidels.;;;;;;;;;;;;;x +obj_go_crusade_title;Take the Cross;;;;;;;;;;;;;x + +obj_go_jihad_desc;[This.GetTitledFirstName] wants to join the Jihad against the infidels.;;;;;;;;;;;;;x +obj_go_jihad_title;Join the Jihad;;;;;;;;;;;;;x \ No newline at end of file From 6887c2bea64ab5db364a524b60dfae6883c2987e Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Sun, 29 Mar 2020 10:33:40 +0200 Subject: [PATCH 18/23] Added 'great_council' ambition --- .../objectives/000_CK2Plus_ambitions.txt | 112 ++++++++++++++++++ CK2Plus/gfx/objectives/obj_great_council.tga | Bin 0 -> 3180 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 11 +- .../localisation/000_CK2Plus_ambitions.csv | 5 +- 4 files changed, 125 insertions(+), 3 deletions(-) create mode 100644 CK2Plus/gfx/objectives/obj_great_council.tga diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index d14a1665..26132a3d 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -1499,6 +1499,118 @@ obj_break_out_of_prison = { } } +obj_great_council = { + type = character + + potential = { + independent = yes + OR = { + job_chancellor = { + diplomacy >= 20 + } + job_marshal = { + martial >= 20 + } + job_treasurer = { + stewardship >= 20 + } + job_spymaster = { + intrigue >= 20 + } + job_spiritual = { + learning >= 20 + } + } + NOT = { has_character_flag = great_council_formed } + } + + allow = { + is_adult = yes + prisoner = no + NOT = { trait = incapable } + NAND = { + job_chancellor = { + diplomacy >= 20 + } + job_marshal = { + martial >= 20 + } + job_treasurer = { + stewardship >= 20 + } + job_spymaster = { + intrigue >= 20 + } + job_spiritual = { + learning >= 20 + } + } + } + chance = { + factor = 1 + modifier = { + factor = 2.0 + ruled_years = 20 + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + job_chancellor = { + diplomacy >= 20 + } + job_marshal = { + martial >= 20 + } + job_treasurer = { + stewardship >= 20 + } + job_spymaster = { + intrigue >= 20 + } + job_spiritual = { + learning >= 20 + } + } + abort = { + OR = { + trait = incapable + independent = no + is_ruler = no + prisoner = yes + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 200 + hidden_tooltip = { + set_character_flag = great_council_formed + } + } +} obj_go_crusade = { type = character diff --git a/CK2Plus/gfx/objectives/obj_great_council.tga b/CK2Plus/gfx/objectives/obj_great_council.tga new file mode 100644 index 0000000000000000000000000000000000000000..3d070ea5d11b7cdaa33df136936fbf110e3c0aab GIT binary patch literal 3180 zcmb7GSx{To8OFv)LVy6VBNnk(fHuS~34~-J#3~Sr*jEFF7#zSRu36$01K#2gC5)ZL zb?gi@nZ!w4m-ZnuaT|}@^r7RKW;*F(CwgsX+CJWy`}IGk$V1ztb??kK_nzfH-~IO! z5^^vk_@srTg{Wo0(GR@kG|%=h==M-T@BIkQ2lp|V|My`s9AOfvP9l+b4uyryNu^T1 zL@M10lSnw&H^I-=Boe7d7A|Mp&t+ebl<$|yWTpcL4*2M7zdTB@o06F==*ldDxwcWX zxB56L8(T$_?TC=A)eA9k3A=3X!Gi~VQdziZAMbyo4Q2bnnW3!M??lW*_q$>aJ?i_nLRW# zbTdJf7ASMpVPO3Zht}B!Hl{OSt#5e_HfC$9??2#Z92kSqS{;x|Wt(JQI}ru#yPq>? z!$R`KW_oU3z*6sl&C`MISKr`BGdCc^TnG2q0;&gJM*YNTSh}b999!#st zoQ1jj7@uQnO=BlHEOpIrb@rpaf0WrGAd`hJ$>b41PNpN*jbfuSE-B?nvCWCvu0d4P zHbP%fiQ$bq966N@NKt1)m7NRHpF@?EgX9b~*xKNkb&f)-oy)p=hvDk#M_y6s6N;hE zAP>D|p@$CXNI$>ER3b2YI6Hb#>U2X}W`SeoB8S$|f&^7MKR=at7#LT4Y8u$u)Y@Ad z>UKxfybSC+HX#XY&DK56k(pP3f|3f7cfs8~gu32gA*(>Y%kp!NPe=OBk-SjT z*++bnur;@X@(THSBce2Ah}K#VqbY?_Qw*iH0`Yn)l8lv5l^o%7Y%Ru6#gR#R=NFej zUtWpwntG7E1d3~c)db?>wTRV-Y^_0X_Y4Uvwj8ZK7%kN(&>4|xZA5ah6B>sXCElYj zcTB+K8HBO1ANJu>u=rkrYvd%X{qux5sMNX0H5S2Ou7au3&i-AnHna#4Q40SaUkT;s zj;YEaHVsXP?w(DuOjIuDq>=Hh>zD@(sifE<`nCCM?@Ac)`nIX zEcAa`Et)7V?)>uixb(r#vG~qsSbg|4)*k&9=RSIj<##{9#`Z4!4tFboJxlB^k@7%vb@sv0)`ij| zZtnAJodJ5w5tR4M@c4|0Pk=(HL{v;HU`7ViU-J0?R!XpR88W9CGx9aQa5!U3{JYdu(D7qLuN8ij4)u0F>$3 z$SSoFM>?jydIt0Q1Nxshq*84-Y%FHAR5)xX5~$w<Wk}KbPAmFDsxrtV2qc2I284NMn-_CX=K4(Qjb6`T(+s2q=@1k(Q$Y z>o19E=>p|=Fdt+r-xaaSUB=gcatWj-SUqB#%qBgjE}(w;JhB`e=s&lG{_}65@%R$T zJYmS2)_ZO(W|Co=No($oKylN? z^Jske3P#r7L6)@{y|4N)cI_@EE^fl)YQ?ob{vB7p{Trr!^*gxke+k$7Uts0gcUb-A z&sh7zUqJm(p!o0~qMEtK_q<+He|^$7zlaIqY(Mrg9NsQ&)A^0JFn;46^mVYeuN~- z!3<44(y|W+$aYKY>^(ku@rQHMS|R<*rlF!TFm?V4X3nmnWq1O|FW$uY`#(cb(-2;H zV;ft$zs9XcU!juvU(Mig49qT3?Q-DCw}0h!R2S$#y($n!y_=m$4EuH4qx|O_`O(fe za}0%n-q|ylSXjj7_CuV0`%|QpHDGb;L;UpFpRoJQcj!5J0mW^jIJ$BTedKeE(M0iB zM7C4~NT*H058Wq%ocz8-`%Kg`mgx@jlww9$URe~Tf3zaF8|#J6u1?Y0-YT}Xdqt0@ zK`ggb3*LcYVf5&Tkf$>UQL)OWB)?30{jd8{kdy1qI7v?*@%qXCyHqa(UAa{#u6FWz z$Z8^uMV4RWFCjvq*d-Z1liA0`&U%q2Xm56}VY%XAJ(8VA*r9I@_D$>T&N;{S?8W?Z w*%u-Dw>?ZYcu(iOlE(Y*^6Wb}AKdpsI(4@DYP%Xb8d_TnJ?@6)T4TsR07o~<6#xJL literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index a68c54fd..c982d2aa 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -111,18 +111,25 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_great_council" + texturefile = "gfx/objectives/obj_great_council.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } spriteType = { name = "GFX_obj_go_crusade" texturefile = "gfx/objectives/obj_go_crusade.dds" noOfFrames = 1 - norefcount = yes + noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } spriteType = { name = "GFX_obj_go_jihad" texturefile = "gfx/objectives/obj_go_jihad.tga" noOfFrames = 1 - norefcount = yes + noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index 5055dc02..54154543 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -53,8 +53,11 @@ obj_befriend_relhead_title;Befriend [This.RelHead.GetTitledFirstName];;;;;;;;;;; obj_break_out_of_prison_desc;[This.GetTitledFirstName] wants [This.GetHerHis] freedom back.;;;;;;;;;;;;;x obj_break_out_of_prison_title;Get Out of Prison;;;;;;;;;;;;;x +obj_great_council_desc;[This.GetTitledFirstName] wants to unite the greatest minds in the known world, and have them serve on [This.GetHerHis] council.;;;;;;;;;;;;;x +obj_great_council_title;Assemble a Great Council;;;;;;;;;;;;;x + obj_go_crusade_desc;[This.GetTitledFirstName] wants to join the Crusade against the infidels.;;;;;;;;;;;;;x obj_go_crusade_title;Take the Cross;;;;;;;;;;;;;x obj_go_jihad_desc;[This.GetTitledFirstName] wants to join the Jihad against the infidels.;;;;;;;;;;;;;x -obj_go_jihad_title;Join the Jihad;;;;;;;;;;;;;x \ No newline at end of file +obj_go_jihad_title;Join the Jihad;;;;;;;;;;;;;x From b8205c902d8bbc3d52da7c4ea8346384b3217437 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Sun, 29 Mar 2020 10:57:56 +0200 Subject: [PATCH 19/23] Added 'have_X_children' ambitions --- .../nicknames/000_CK2Plus_nicknames.txt | 10 + .../objectives/000_CK2Plus_ambitions.txt | 502 ++++++++++++++++++ .../gfx/objectives/obj_have_fifteen_kids.dds | Bin 0 -> 1264 bytes CK2Plus/gfx/objectives/obj_have_five_kids.dds | Bin 0 -> 1264 bytes CK2Plus/gfx/objectives/obj_have_ten_kids.dds | Bin 0 -> 1264 bytes .../gfx/objectives/obj_have_twenty_kids.dds | Bin 0 -> 1264 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 28 + .../localisation/000_CK2Plus_ambitions.csv | 14 + .../localisation/000_CK2Plus_nicknames.csv | 2 + 9 files changed, 556 insertions(+) create mode 100644 CK2Plus/common/nicknames/000_CK2Plus_nicknames.txt create mode 100644 CK2Plus/gfx/objectives/obj_have_fifteen_kids.dds create mode 100644 CK2Plus/gfx/objectives/obj_have_five_kids.dds create mode 100644 CK2Plus/gfx/objectives/obj_have_ten_kids.dds create mode 100644 CK2Plus/gfx/objectives/obj_have_twenty_kids.dds create mode 100644 CK2Plus/localisation/000_CK2Plus_nicknames.csv diff --git a/CK2Plus/common/nicknames/000_CK2Plus_nicknames.txt b/CK2Plus/common/nicknames/000_CK2Plus_nicknames.txt new file mode 100644 index 00000000..97882b44 --- /dev/null +++ b/CK2Plus/common/nicknames/000_CK2Plus_nicknames.txt @@ -0,0 +1,10 @@ +############################################# +#Plus Nicknames: +# +#Total = 001 +############################################# + +# TRIGGERED ONLY +################ + +nick_the_quiverfull = {} \ No newline at end of file diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 26132a3d..163e6fc6 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -1753,4 +1753,506 @@ obj_go_jihad = { piety = 100 set_character_flag = obj_go_jihad } +} + +obj_have_five_children = { + type = character + + fertility = 0.1 + + potential = { + is_adult = yes + OR = { + is_married = yes + is_consort = yes + } + OR = { + is_ruler = yes + spouse = { is_ruler = yes } + } + num_of_children >= 1 + num_of_children < 5 + NOT = { has_character_flag = obj_have_child_3 } + } + + allow = { + prisoner = no + OR = { + age < 45 + is_female = no + } + age < 75 + NOT = { trait = celibate } + NOT = { trait = eunuch } + NOT = { trait = incapable } + } + chance = { + factor = 50 + + modifier = { + factor = 0.5 + is_female = no + } + modifier = { + factor = 2.0 + trait = lustful + } + modifier = { + factor = 1.5 + num_of_children >= 2 + } + modifier = { + factor = 1.5 + num_of_children >= 3 + } + modifier = { + factor = 1.5 + num_of_children >= 4 + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + num_of_children >= 5 + } + abort = { + OR = { + prisoner = yes + AND = { + age >= 45 + is_female = yes + } + AND = { + age >= 75 + is_female = no + } + is_married = no + trait = celibate + trait = eunuch + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + #if = { + # limit = { any_vassal = { leads_faction = faction_court } } + # custom_tooltip = { text = COURTFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 1 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + if = { + limit = { + religion_group = muslim + } + prestige = 50 + } + if = { + limit = { + NOT = { religion_group = muslim } + } + prestige = 100 + } + set_character_flag = obj_have_child_3 + } +} + +obj_have_ten_children = { + type = character + + fertility = 0.1 + + potential = { + is_adult = yes + is_married = yes + num_of_children >= 5 + num_of_children < 10 + OR = { + is_ruler = yes + spouse = { is_ruler = yes } + } + NOT = { has_character_flag = obj_have_child_4 } + } + + allow = { + prisoner = no + OR = { + age < 45 + is_female = no + } + age < 75 + NOT = { trait = celibate } + NOT = { trait = eunuch } + NOT = { trait = incapable } + } + chance = { + factor = 50 + + modifier = { + factor = 0.5 + is_female = no + } + modifier = { + factor = 2.0 + trait = lustful + } + modifier = { + factor = 1.5 + num_of_children >= 6 + } + modifier = { + factor = 1.5 + num_of_children >= 7 + } + modifier = { + factor = 1.5 + num_of_children >= 8 + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + num_of_children >= 10 + } + abort = { + OR = { + prisoner = yes + AND = { + age >= 45 + is_female = yes + } + AND = { + age >= 75 + is_female = no + } + is_married = no + trait = celibate + trait = eunuch + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + #if = { + # limit = { any_vassal = { leads_faction = faction_court } } + # custom_tooltip = { text = COURTFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 1 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + if = { + limit = { + religion_group = muslim + } + prestige = 50 + } + if = { + limit = { + NOT = { religion_group = muslim } + } + prestige = 100 + } + set_character_flag = obj_have_child_4 + } +} + +obj_have_fifteen_children = { + type = character + + fertility = 0.1 + + potential = { + is_adult = yes + is_married = yes + num_of_children >= 10 + num_of_children < 15 + OR = { + is_ruler = yes + spouse = { is_ruler = yes } + } + NOT = { has_character_flag = obj_have_child_5 } + } + + allow = { + prisoner = no + OR = { + age < 45 + is_female = no + } + age < 75 + NOT = { trait = celibate } + NOT = { trait = eunuch } + NOT = { trait = incapable } + } + chance = { + factor = 50 + + modifier = { + factor = 0.5 + is_female = no + } + modifier = { + factor = 2.0 + trait = lustful + } + modifier = { + factor = 1.5 + num_of_children >= 6 + } + modifier = { + factor = 1.5 + num_of_children >= 7 + } + modifier = { + factor = 1.5 + num_of_children >= 8 + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + num_of_children >= 15 + } + abort = { + OR = { + prisoner = yes + AND = { + age >= 45 + is_female = yes + } + AND = { + age >= 75 + is_female = no + } + is_married = no + trait = celibate + trait = eunuch + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + #if = { + # limit = { any_vassal = { leads_faction = faction_court } } + # custom_tooltip = { text = COURTFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 1 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + if = { + limit = { + religion_group = muslim + } + prestige = 50 + } + if = { + limit = { + NOT = { religion_group = muslim } + } + prestige = 100 + } + set_character_flag = obj_have_child_5 + } +} + +obj_have_twenty_children = { + type = character + + fertility = 0.1 + + potential = { + is_adult = yes + is_married = yes + num_of_children >= 15 + num_of_children < 20 + OR = { + is_ruler = yes + spouse = { is_ruler = yes } + } + NOT = { has_character_flag = obj_have_child_6 } + } + + allow = { + prisoner = no + OR = { + age < 45 + is_female = no + } + age < 75 + NOT = { trait = celibate } + NOT = { trait = eunuch } + NOT = { trait = incapable } + } + chance = { + factor = 50 + + modifier = { + factor = 0.5 + is_female = no + } + modifier = { + factor = 2.0 + trait = lustful + } + modifier = { + factor = 1.5 + num_of_children >= 6 + } + modifier = { + factor = 1.5 + num_of_children >= 7 + } + modifier = { + factor = 1.5 + num_of_children >= 8 + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + num_of_children >= 20 + } + abort = { + OR = { + prisoner = yes + AND = { + age >= 45 + is_female = yes + } + AND = { + age >= 75 + is_female = no + } + is_married = no + trait = celibate + trait = eunuch + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = ai_objective_timer + } + } + #if = { + # limit = { any_vassal = { leads_faction = faction_court } } + # custom_tooltip = { text = COURTFACTIONMOODPLUS } + # hidden_tooltip = { + # random_vassal = { limit = { leads_faction = faction_court } set_variable = { which = "faction_mood_increase" value = 2 } } + # character_event = { id = PlusFaction.200 days = 1 } #recalculate faction moods + # } + #} + if = { + limit = { + has_nickname = no + religion_group = christian + } + give_nickname = nick_the_quiverfull + } + if = { + limit = { + religion_group = muslim + } + prestige = 50 + } + if = { + limit = { + NOT = { religion_group = muslim } + } + prestige = 100 + } + set_character_flag = obj_have_child_6 + } } \ No newline at end of file diff --git a/CK2Plus/gfx/objectives/obj_have_fifteen_kids.dds b/CK2Plus/gfx/objectives/obj_have_fifteen_kids.dds new file mode 100644 index 0000000000000000000000000000000000000000..ab4225a4e6e05aa30222bf4e208692d8bc752fa3 GIT binary patch literal 1264 zcma)+e@t6d6vxkdkG8L`WxdPVIHG^NChZhZV7i)Mz`c^LP&NZ|eRMRlYb!A`OhW7* zBZ~S0)3Gr1tr;;hWFpQ;DHxZCMx&2uCVloS$ z$cn6Ub`0hx<)E-t#@cV}5^+&Nr@z!1c)` zZtar-Kqw>!OASuKVx0}+`xy*w-TyY~7wf0AGfamHT}AT@hGAWJ&-t6U^FqHbA5kDCo9y?V?0QT;1M2WpzfEUeU@`I(xDV{q06Og}|wgnsdU@u*l2Hp6a6igH{GZHyj%w zGF$f{wLUYQQ+O#m8sp_iH1iZ|R$+s}`Dy_Q#ayB2uNh>FQF!@uoXr2(+Nz&-VA9z6 zWO#TdT?bY~J=R4k^>K>ur%cov+PtX!N-3N9&%J72jlZ$EZfYfZ5$+PXmNodf*~wqe=W>VGqsK2{#PeGL&ObtF z%Wn^{PauC4j}Z>D`67`0+mTIePJS;k2fT`S%fDEll>dvQx19Z2&&U-7|Ks literal 0 HcmV?d00001 diff --git a/CK2Plus/gfx/objectives/obj_have_five_kids.dds b/CK2Plus/gfx/objectives/obj_have_five_kids.dds new file mode 100644 index 0000000000000000000000000000000000000000..5a996030a7be37a3c65b1070a341256f5e5faf50 GIT binary patch literal 1264 zcma)+e{54#6vxkdZ*6a1J9-IiWYIs~l6C^qu_-lK+~mEbG;5hz8~V1<%-NP{NCwMd z{{R{2%NAs0pl{6wV7GfAkMu z?vH%#Ip=%Nz3=3DJiCO$0ARvAJVa-$V~!5=GptSjdlaZ=8SS2qko&)a5ElQn%z-cA z^d-t_P5{WVVTWb@y(lQgx&f@Q?8w=CFTHLD$Yun}vutszuPH%Q9!qO>1#-65PwpuQ zT1Pc|mtvWJr+jV$=KqNgt?3Uqt9vy6K+v-AL_~ZAJ)-LqF&SW3fLk*HxHEA~$Xbet z41gjlvd)=7y3UlX*SU4{W^5w4a+62_Zi=3IUtB_+eRC7mMdi^s`#2L@%RiK})vvc~ z?qk()0mdAzxAb`TGQjg*Z=23{R|McZP}*;sX7BDU@r&O8v{f06y8kkv=M^s%@8X}h zdXZaAh5KzZPv_OY{=NnY5&hb z3xtRufJ5b5;+06`%1e5^XDg9%xouk4OZNj9O$_K<-P7!6`RX){2T|eO{2m6j+&I{2 zS*Q>{X06|9`XQ=M>qn*a>71eQI}EaHnaA8-W8^^z0gO>Q%}-Dmphi=ivD(wbj^oUQGvb%lqv zbDF!0d!|UU_oXKF&l-^#^mdhK-i$ z0ahIsVa(zFK#%t<0=(?^cj|cUt_YkD%K3I^{@&g)es&okne6oH{Dnm)PuD}nHFA?{ zkhqmZ2q4(q)lsZ-5*9}ivB6+)>-@&Ac8{` z_QssN#8sB{`Y$$_%u9qGJFq#<9acy5qD=XBdF&-pE@Cb((sQK+!x8-`3^d)Ou z(DZ|-kNu-!f4ZhIewRU(EpvoBYz#l@c)zXTvU5me1&w%yENLjx{>wlM4UkCar1TK8hkQGKkA}`iVolYZX*abxSN zp%Z)P17Jnen;UFt4KE)*-uQ=sFjXp(3_1CHZgrJf9V<*i-7oZc`NSFb7%d_hUxaI; zcf8)73!lF8fZpHv=KJ=g=+(_NQ#Zr6;Bk>_Tme(FlV8ncvq#yHv$rwgt?dBczeH){ z@6WTZApR~IAslw|Eg%PXBG&j_h&kX@gb(?JJf-|!B(>$*PlY|P$;~t7(UazaT@`Hi z>}O&TGQY64ZZ7Pd+(Ilc92z2=d4`&cwzC4h4!oil>2hNYThTu*kW9B~*Xkk^TbGn9G~Kj`&6O^zHA$-sI!7^o ztT=z18QPXry@eK;l+o2qo1_s3R#6n{4+O=OiAXzyI@d9E=$2uVY%|&GbJoj0`iIBe zy?oy1`}}y{_u=(;x};|Tpjs5*P8_vQehXLNt(3c!S}c?CHT2y~SjfNR9JY55&at5w$@ngaMTl&I|IJMT%r@_o~~ zJ&pSr_KOugr4nIrwYq)(HHq+#QChHoWv9wLWa`KKJ-yxL>_T+ZFu-Z&XT=7gE|9>g z3VUNV;^Jy5@eZA~5#^`ulpZg01i(-&GJF--WE{dyqLGD&pVzQjt>frmg5564`Yu;#N6@{rN{O)n)d;G6?&rS+l%Mv R=U-^i0Z50VEtO8E{{nd?b2I<| literal 0 HcmV?d00001 diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index c982d2aa..b1c7f763 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -132,4 +132,32 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_have_five_children" + texturefile = "gfx/objectives/obj_have_five_kids.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_have_ten_children" + texturefile = "gfx/objectives/obj_have_ten_kids.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_have_fifteen_children" + texturefile = "gfx/objectives/obj_have_fifteen_kids.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_have_twenty_children" + texturefile = "gfx/objectives/obj_have_twenty_kids.tga" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index 54154543..0ed953bb 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -61,3 +61,17 @@ obj_go_crusade_title;Take the Cross;;;;;;;;;;;;;x obj_go_jihad_desc;[This.GetTitledFirstName] wants to join the Jihad against the infidels.;;;;;;;;;;;;;x obj_go_jihad_title;Join the Jihad;;;;;;;;;;;;;x + +obj_have_five_children_desc;[This.GetTitledFirstName] wants a large family and many children to carry on [This.GetHerHis] legacy.;;;;;;;;;;;;;x +obj_have_five_children_title;Have Five Children;;;;;;;;;;;;;x + +obj_have_ten_children_desc;[This.GetTitledFirstName] wants a large family and many children to carry on [This.GetHerHis] legacy.;;;;;;;;;;;;;x +obj_have_ten_children_title;Have Ten Children;;;;;;;;;;;;;x + +obj_have_fifteen_children_desc;[This.GetTitledFirstName] wants a large family and many children to carry on [This.GetHerHis] legacy.;;;;;;;;;;;;;x +obj_have_fifteen_children_title;Have Fifteen Children;;;;;;;;;;;;;x + +obj_have_twenty_children_desc;[This.GetTitledFirstName] wants a large family and many children to carry on [This.GetHerHis] legacy.;;;;;;;;;;;;;x +obj_have_twenty_children_title;Have Twenty Children;;;;;;;;;;;;;x + + diff --git a/CK2Plus/localisation/000_CK2Plus_nicknames.csv b/CK2Plus/localisation/000_CK2Plus_nicknames.csv new file mode 100644 index 00000000..22f8d9c8 --- /dev/null +++ b/CK2Plus/localisation/000_CK2Plus_nicknames.csv @@ -0,0 +1,2 @@ +#CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x +nick_the_quiverfull;Quiverfull;Carquois Remplis;K�chervoll;;Carcaj Pleno;;;;;;;;;x \ No newline at end of file From 09cffa117a195ddc9e83c18a4db8b6e63fcb3c30 Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Sun, 29 Mar 2020 10:58:39 +0200 Subject: [PATCH 20/23] Added prefix to modifier --- .../objectives/000_CK2Plus_ambitions.txt | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 163e6fc6..716773e0 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -1814,7 +1814,7 @@ obj_have_five_children = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -1840,21 +1840,21 @@ obj_have_five_children = { trait = incapable AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { hidden_tooltip = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } #if = { @@ -1937,7 +1937,7 @@ obj_have_ten_children = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -1963,21 +1963,21 @@ obj_have_ten_children = { trait = incapable AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { hidden_tooltip = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } #if = { @@ -2060,7 +2060,7 @@ obj_have_fifteen_children = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -2086,21 +2086,21 @@ obj_have_fifteen_children = { trait = incapable AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { hidden_tooltip = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } #if = { @@ -2183,7 +2183,7 @@ obj_have_twenty_children = { if = { limit = { ai = yes } add_character_modifier = { - name = "ai_objective_timer" + name = "plus_ai_objective_timer" duration = 1825 hidden = yes } @@ -2209,21 +2209,21 @@ obj_have_twenty_children = { trait = incapable AND = { ai = yes - NOT = { has_character_modifier = ai_objective_timer } + NOT = { has_character_modifier = plus_ai_objective_timer } } } } abort_effect = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } effect = { hidden_tooltip = { if = { limit = { ai = yes } - remove_character_modifier = ai_objective_timer + remove_character_modifier = plus_ai_objective_timer } } #if = { From 25530c6c4fb4c8df0b74739ac02a210c2fb8a39d Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Sun, 29 Mar 2020 11:22:29 +0200 Subject: [PATCH 21/23] Added 'known_for_virtu' ambition --- .../objectives/000_CK2Plus_ambitions.txt | 1090 +++++++++++++++++ CK2Plus/gfx/objectives/obj_expand_demesne.dds | Bin 0 -> 1264 bytes CK2Plus/interface/000_CK2Plus_ambitions.gfx | 70 ++ .../localisation/000_CK2Plus_ambitions.csv | 28 + 4 files changed, 1188 insertions(+) create mode 100644 CK2Plus/gfx/objectives/obj_expand_demesne.dds diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 716773e0..50343a92 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -2255,4 +2255,1094 @@ obj_have_twenty_children = { } set_character_flag = obj_have_child_6 } +} + + +obj_increase_demesne_1 = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + num_of_count_titles >= 1 + demesne_size < 2 + OR = { + ai = no + NOT = { has_character_flag = obj_demesne } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + demesne_efficiency = 1.01 + } + chance = { + factor = 50 + + modifier = { + factor = 1.5 + prestige >= 100 + } + modifier = { + factor = 1.5 + prestige >= 250 + } + modifier = { + factor = 1.5 + prestige >= 400 + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 0.1 + trait = humble + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + demesne_size >= 2 + } + abort = { + OR = { + trait = incapable + is_ruler = no + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + if = { + limit = { NOT = { has_character_flag = obj_demesne } } + change_stewardship = 1 + if = { + limit = { independent = no } + liege = { + reverse_opinion = { + who = ROOT + modifier = opinion_happy + months = 120 + } + } + } + } + if = { + limit = { has_character_flag = obj_demesne } + prestige = 25 + } + set_character_flag = obj_demesne + } +} + +obj_increase_demesne_2 = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + num_of_count_titles >= 1 + demesne_size >= 2 + demesne_size < 3 + OR = { + ai = no + NOT = { has_character_flag = obj_demesne } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + demesne_efficiency = 1.01 + } + chance = { + factor = 50 + + modifier = { + factor = 1.5 + prestige = 100 + } + modifier = { + factor = 1.5 + prestige = 250 + } + modifier = { + factor = 1.5 + prestige = 400 + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 0.1 + trait = humble + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + demesne_size >= 3 + } + abort = { + OR = { + trait = incapable + is_ruler = no + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + if = { + limit = { NOT = { has_character_flag = obj_demesne } } + change_stewardship = 1 + if = { + limit = { independent = no } + liege = { + reverse_opinion = { + who = ROOT + modifier = opinion_happy + months = 120 + } + } + } + } + if = { + limit = { has_character_flag = obj_demesne } + prestige = 25 + } + set_character_flag = obj_demesne + } +} + +obj_increase_demesne_3 = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + num_of_count_titles >= 1 + demesne_size >= 3 + demesne_size < 4 + OR = { + ai = no + NOT = { has_character_flag = obj_demesne } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + demesne_efficiency = 1.01 + } + chance = { + factor = 50 + + modifier = { + factor = 1.5 + prestige >= 100 + } + modifier = { + factor = 1.5 + prestige >= 250 + } + modifier = { + factor = 1.5 + prestige >= 400 + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 0.1 + trait = humble + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + demesne_size >= 4 + } + abort = { + OR = { + trait = incapable + is_ruler = no + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + if = { + limit = { NOT = { has_character_flag = obj_demesne } } + change_stewardship = 1 + if = { + limit = { independent = no } + liege = { + reverse_opinion = { + who = ROOT + modifier = opinion_happy + months = 120 + } + } + } + } + if = { + limit = { has_character_flag = obj_demesne } + prestige = 25 + } + set_character_flag = obj_demesne + } +} + +obj_increase_demesne_4 = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + num_of_count_titles >= 1 + demesne_size >= 4 + demesne_size < 5 + OR = { + ai = no + NOT = { has_character_flag = obj_demesne } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + demesne_efficiency = 1.01 + } + chance = { + factor = 50 + + modifier = { + factor = 1.5 + prestige >= 100 + } + modifier = { + factor = 1.5 + prestige >= 250 + } + modifier = { + factor = 1.5 + prestige >= 400 + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 0.1 + trait = humble + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + demesne_size >= 5 + } + abort = { + OR = { + trait = incapable + is_ruler = no + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + if = { + limit = { NOT = { has_character_flag = obj_demesne } } + change_stewardship = 1 + if = { + limit = { independent = no } + liege = { + reverse_opinion = { + who = ROOT + modifier = opinion_happy + months = 120 + } + } + } + } + if = { + limit = { has_character_flag = obj_demesne } + prestige = 25 + } + set_character_flag = obj_demesne + } +} + +obj_increase_demesne_5 = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + num_of_count_titles >= 1 + demesne_size >= 5 + demesne_size < 6 + OR = { + ai = no + NOT = { has_character_flag = obj_demesne } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + demesne_efficiency = 1.01 + } + chance = { + factor = 50 + + modifier = { + factor = 1.5 + prestige >= 100 + } + modifier = { + factor = 1.5 + prestige >= 250 + } + modifier = { + factor = 1.5 + prestige >= 400 + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 0.1 + trait = humble + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + demesne_size >= 6 + } + abort = { + OR = { + trait = incapable + is_ruler = no + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + if = { + limit = { NOT = { has_character_flag = obj_demesne } } + change_stewardship = 1 + if = { + limit = { independent = no } + liege = { + reverse_opinion = { + who = ROOT + modifier = opinion_happy + months = 120 + } + } + } + } + if = { + limit = { has_character_flag = obj_demesne } + prestige = 25 + } + set_character_flag = obj_demesne + } +} + +obj_increase_demesne_6 = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + num_of_count_titles >= 1 + demesne_size >= 6 + demesne_size < 7 + OR = { + ai = no + NOT = { has_character_flag = obj_demesne } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + demesne_efficiency = 1.01 + } + chance = { + factor = 50 + + modifier = { + factor = 1.5 + prestige >= 100 + } + modifier = { + factor = 1.5 + prestige >= 250 + } + modifier = { + factor = 1.5 + prestige >= 400 + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 0.1 + trait = humble + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + demesne_size >= 7 + } + abort = { + OR = { + trait = incapable + is_ruler = no + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + if = { + limit = { NOT = { has_character_flag = obj_demesne } } + change_stewardship = 1 + if = { + limit = { independent = no } + liege = { + reverse_opinion = { + who = ROOT + modifier = opinion_happy + months = 120 + } + } + } + } + if = { + limit = { has_character_flag = obj_demesne } + prestige = 25 + } + set_character_flag = obj_demesne + } +} + +obj_increase_demesne_7 = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + num_of_count_titles >= 1 + demesne_size >= 7 + demesne_size < 8 + OR = { + ai = no + NOT = { has_character_flag = obj_demesne } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + demesne_efficiency = 1.01 + } + chance = { + factor = 50 + + modifier = { + factor = 1.5 + prestige >= 100 + } + modifier = { + factor = 1.5 + prestige >= 250 + } + modifier = { + factor = 1.5 + prestige >= 400 + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 0.1 + trait = humble + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + demesne_size >= 8 + } + abort = { + OR = { + trait = incapable + is_ruler = no + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + if = { + limit = { NOT = { has_character_flag = obj_demesne } } + change_stewardship = 1 + if = { + limit = { independent = no } + liege = { + reverse_opinion = { + who = ROOT + modifier = opinion_happy + months = 120 + } + } + } + } + if = { + limit = { has_character_flag = obj_demesne } + prestige = 25 + } + set_character_flag = obj_demesne + } +} + +obj_increase_demesne_8 = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + num_of_count_titles >= 1 + demesne_size >= 8 + demesne_size < 9 + OR = { + ai = no + NOT = { has_character_flag = obj_demesne } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + demesne_efficiency = 1.01 + } + chance = { + factor = 50 + + modifier = { + factor = 1.5 + prestige >= 100 + } + modifier = { + factor = 1.5 + prestige >= 250 + } + modifier = { + factor = 1.5 + prestige >= 400 + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 0.1 + trait = humble + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + demesne_size >= 9 + } + abort = { + OR = { + trait = incapable + is_ruler = no + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + if = { + limit = { NOT = { has_character_flag = obj_demesne } } + change_stewardship = 1 + if = { + limit = { independent = no } + liege = { + reverse_opinion = { + who = ROOT + modifier = opinion_happy + months = 120 + } + } + } + } + if = { + limit = { has_character_flag = obj_demesne } + prestige = 25 + } + set_character_flag = obj_demesne + } +} + +obj_increase_demesne_9 = { + type = character + + potential = { + is_ruler = yes + is_landed = yes + num_of_count_titles >= 1 + demesne_size >= 9 + demesne_size < 10 + OR = { + ai = no + NOT = { has_character_flag = obj_demesne } + } + } + + allow = { + is_adult = yes + NOT = { trait = incapable } + demesne_efficiency = 1.01 + } + chance = { + factor = 50 + + modifier = { + factor = 1.5 + prestige >= 100 + } + modifier = { + factor = 1.5 + prestige >= 250 + } + modifier = { + factor = 1.5 + prestige >= 400 + } + modifier = { + factor = 1.5 + trait = envious + } + modifier = { + factor = 0.1 + trait = humble + } + modifier = { + factor = 10.0 + trait = ambitious + } + modifier = { + factor = 0 + trait = content + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + demesne_size >= 10 + } + abort = { + OR = { + trait = incapable + is_ruler = no + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + if = { + limit = { NOT = { has_character_flag = obj_demesne } } + change_stewardship = 1 + if = { + limit = { independent = no } + liege = { + reverse_opinion = { + who = ROOT + modifier = opinion_happy + months = 120 + } + } + } + } + if = { + limit = { has_character_flag = obj_demesne } + prestige = 25 + } + set_character_flag = obj_demesne + } +} + +obj_known_for_virtue = { + type = character + + potential = { + is_ruler = yes + NOT = { religion_group = indian_group } + NOT = { has_character_flag = obj_become_paragon_of_virtue } + NOT = { has_character_flag = known_for_virtue } + } + + allow = { + is_adult = yes + piety >= 0 + piety < 500 + NOT = { trait = cruel } + NOT = { trait = impaler } + NOT = { trait = incapable } + NOT = { trait = decadent } + } + chance = { + factor = 50 + + modifier = { + factor = 1.25 + trait = patient + } + modifier = { + factor = 0.01 + NOT = { tier = king } + NOT = { tier = emperor } + } + modifier = { + factor = 0 + piety < 100 + } + modifier = { + factor = 10.0 + OR = { + trait = detached_priest + trait = martial_cleric + trait = scholarly_theologian + trait = mastermind_theologian + } + } + modifier = { + factor = 10.0 + trait = zealous + } + modifier = { + factor = 0.01 + trait = cynical + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + piety >= 500 + } + abort = { + OR = { + is_ruler = no + piety < 0 + trait = cruel + trait = impaler + trait = incapable + trait = decadent + religion_group = indian_group + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + change_learning = 1 + piety = 50 + set_character_flag = known_for_virtue + } } \ No newline at end of file diff --git a/CK2Plus/gfx/objectives/obj_expand_demesne.dds b/CK2Plus/gfx/objectives/obj_expand_demesne.dds new file mode 100644 index 0000000000000000000000000000000000000000..48fa75437717c909e033be2c6541500f67a005b2 GIT binary patch literal 1264 zcma)+Z%i9?7{{Nx>vh*Zqo<<@#J#x1f*WfGB-W(PYO8dy&E^W@y3(NXXBsnu*$d6g z>dZ0Ljc&ShY{V?V7c8RC(dZHwF_EMru$Vw`#zZiS)j-1%r5h+M3%2}xuJyJT`odrC zPd@iN&-eFx@_ci3b%%rx0ALHRh3)v3Z=S&iF1Gmk-%kNERe0C=8?FCU#PN=QeP+Pj zV{-SXs+Rynk#*^2Z?uA>uC4UQEE=;0_lKX90@N4cF*;xEez6Bt?)@ys0kVdJ6B`l- z?@Y;jLekBCwKcwt*G@VM^^HaSQ>LQ6w_bPqnHI+x&iqf@NE}06iU#;DA#fEMCQ3;0 zhW- z9@FhQM$Zfb^jZf7lzQL&N#`_^b}4L*owkJ&9YYE~e!so8GwteBxau;!qw7GTOX2UA zFrP}l@qqu8u{oHPa2J5D+3(Ho*}>CzMUmN1D5T`ilaxEevK0znSPI$lCw*rSSPB8m6ajuIBduQ-hbM51=6s2xJXUMd<61ZQ&s9S79|O`Bv;N z#BLc=_(Jks5B;EoRrvQQ;2={zc}v~$#Ai5Pd4D{ggF1dC zwLAhq$3!t-js7uRG3`e`$_~IdbPp4g8CiN?uJ5m*K!4|v{>!re3;Ok5>__eH`Nr0( z-QDNp#GkBe-u1PeLM6-i)iRNWDxyDmH6w8j?PZMn<5G~;M4&`s-V6w^p3AJ~UFF9p zbqlOc^_N*JwIyScV9?MhZ5$f*IRzAD7mL+=Q3N;it zba1qlw_65!F&`HXmeKZFX(6~tj>xR~cCmKS{JB*Ri?CB*o?8J|gOgj!W-`a=@Wm8n z$mjXtRYIOkAD}ys&kgsN=|n;nfq(r43d5waS@aa&Pxd z2&0-O8BMM Date: Sun, 29 Mar 2020 13:01:28 +0200 Subject: [PATCH 22/23] Added 'lower_decadence_X' ambitions --- .../event_modifiers/000_CK2Plus_timers.txt | 6 +- .../objectives/000_CK2Plus_ambitions.txt | 632 ++++++++++++++++++ .../on_actions/000_CK2Plus_on_actions.txt | 9 + .../000_CK2Plus_ambitions_decadence.txt | 452 +++++++++++++ CK2Plus/interface/000_CK2Plus_ambitions.gfx | 49 ++ .../localisation/000_CK2Plus_ambitions.csv | 23 +- 6 files changed, 1169 insertions(+), 2 deletions(-) create mode 100644 CK2Plus/events/000_CK2Plus_ambitions_decadence.txt diff --git a/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt b/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt index 0e6fa53b..88f81e29 100644 --- a/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt +++ b/CK2Plus/common/event_modifiers/000_CK2Plus_timers.txt @@ -1,7 +1,7 @@ ####### #Plus Timers: # -#Total = 04 +#Total = 05 ####### plus_ai_objective_timer = { @@ -19,4 +19,8 @@ plus_ai_austerity = { plus_do_not_disturb = { icon = 1 +} + +plus_lower_decadence_obj_timer={ + icon = 15 } \ No newline at end of file diff --git a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt index 50343a92..4502f61c 100644 --- a/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt +++ b/CK2Plus/common/objectives/000_CK2Plus_ambitions.txt @@ -3345,4 +3345,636 @@ obj_known_for_virtue = { piety = 50 set_character_flag = known_for_virtue } +} + +obj_lower_decadence50 = { + type = character + + potential = { + is_adult = yes + is_ruler = yes + uses_decadence = yes + } + allow = { + decadence < 55 + decadence >= 50 + NOT = { trait = incapable } + NOT = {has_character_modifier = plus_lower_decadence_obj_timer} + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = diligent + } + modifier = { + factor = 1.25 + trait = naive_appeaser + } + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 0.01 + trait = content + } + modifier = { + factor = 0.01 + trait = slothful + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + decadence < 40 + } + abort = { + OR = { + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 100 + hidden_tooltip = { + add_character_modifier = { + name = plus_lower_decadence_obj_timer + duration = 1825 #5 years + } + } + clr_character_flag = lower_decadence_success + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } +} + +obj_lower_decadence55 = { + type = character + + potential = { + is_adult = yes + is_ruler = yes + uses_decadence = yes + } + allow = { + decadence < 60 + decadence >= 55 + NOT = { trait = incapable } + NOT = {has_character_modifier = plus_lower_decadence_obj_timer} + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = diligent + } + modifier = { + factor = 1.25 + trait = naive_appeaser + } + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 0.01 + trait = content + } + modifier = { + factor = 0.01 + trait = slothful + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + decadence < 45 + } + abort = { + OR = { + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 100 + hidden_tooltip = { + add_character_modifier = { + name = plus_lower_decadence_obj_timer + duration = 1825 #5 years + } + } + clr_character_flag = lower_decadence_success + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } +} + +obj_lower_decadence60 = { + type = character + + potential = { + is_adult = yes + is_ruler = yes + uses_decadence = yes + } + allow = { + religion_group = muslim + decadence < 65 + decadence >= 60 + NOT = { trait = incapable } + NOT = { has_character_modifier = plus_lower_decadence_obj_timer } + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = diligent + } + modifier = { + factor = 1.25 + trait = naive_appeaser + } + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 0.01 + trait = content + } + modifier = { + factor = 0.01 + trait = slothful + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + decadence < 50 + } + abort = { + OR = { + trait = incapable + is_ruler = no + NOT = { religion_group = muslim } + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 100 + hidden_tooltip = { + add_character_modifier = { + name = plus_lower_decadence_obj_timer + duration = 1825 #5 years + } + } + clr_character_flag = lower_decadence_success + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } +} + +obj_lower_decadence65 = { + type = character + + potential = { + is_adult = yes + is_ruler = yes + uses_decadence = yes + } + allow = { + decadence < 70 + decadence >= 65 + NOT = { trait = incapable } + NOT = {has_character_modifier = plus_lower_decadence_obj_timer} + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = diligent + } + modifier = { + factor = 1.25 + trait = naive_appeaser + } + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 0.01 + trait = content + } + modifier = { + factor = 0.01 + trait = slothful + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + decadence < 55 + } + abort = { + OR = { + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 100 + hidden_tooltip = { + add_character_modifier = { + name = plus_lower_decadence_obj_timer + duration = 1825 #5 years + } + } + clr_character_flag = lower_decadence_success + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } +} + +obj_lower_decadence70 = { + type = character + + potential = { + is_adult = yes + is_ruler = yes + uses_decadence = yes + } + allow = { + decadence < 75 + decadence >= 70 + NOT = { trait = incapable } + NOT = {has_character_modifier = plus_lower_decadence_obj_timer} + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = diligent + } + modifier = { + factor = 1.25 + trait = naive_appeaser + } + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 0.01 + trait = content + } + modifier = { + factor = 0.01 + trait = slothful + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + decadence < 60 + } + abort = { + OR = { + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 100 + hidden_tooltip = { + add_character_modifier = { + name = plus_lower_decadence_obj_timer + duration = 1825 #5 years + } + } + clr_character_flag = lower_decadence_success + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } +} + +obj_lower_decadence75 = { + type = character + + potential = { + is_adult = yes + is_ruler = yes + uses_decadence = yes + } + allow = { + decadence < 80 + decadence >= 75 + NOT = { trait = incapable } + NOT = {has_character_modifier = plus_lower_decadence_obj_timer} + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = diligent + } + modifier = { + factor = 1.25 + trait = naive_appeaser + } + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 0.01 + trait = content + } + modifier = { + factor = 0.01 + trait = slothful + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + decadence < 65 + } + abort = { + OR = { + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 100 + hidden_tooltip = { + add_character_modifier = { + name = plus_lower_decadence_obj_timer + duration = 1825 #5 years + } + } + clr_character_flag = lower_decadence_success + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } +} + +obj_lower_decadence80 = { + type = character + + potential = { + is_adult = yes + is_ruler = yes + uses_decadence = yes + } + allow = { + decadence >= 80 + NOT = { trait = incapable } + NOT = {has_character_modifier = plus_lower_decadence_obj_timer} + } + chance = { + factor = 100 + + modifier = { + factor = 1.25 + trait = diligent + } + modifier = { + factor = 1.25 + trait = naive_appeaser + } + modifier = { + factor = 1.5 + trait = ambitious + } + modifier = { + factor = 0.01 + trait = content + } + modifier = { + factor = 0.01 + trait = slothful + } + } + creation_effect = { + if = { + limit = { ai = yes } + add_character_modifier = { + name = "plus_ai_objective_timer" + duration = 1825 + hidden = yes + } + } + } + success = { + decadence < 70 + } + abort = { + OR = { + trait = incapable + AND = { + ai = yes + NOT = { has_character_modifier = plus_ai_objective_timer } + } + } + } + abort_effect = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } + effect = { + hidden_tooltip = { + if = { + limit = { ai = yes } + remove_character_modifier = plus_ai_objective_timer + } + } + prestige = 100 + hidden_tooltip = { + add_character_modifier = { + name = plus_lower_decadence_obj_timer + duration = 1825 #5 years + } + } + clr_character_flag = lower_decadence_success + clr_character_flag = berber_life + clr_character_flag = bandit_camp + clr_character_flag = dromedary_hunt + } } \ No newline at end of file diff --git a/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt b/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt index 3d1deb4c..7c4460f7 100644 --- a/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt +++ b/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt @@ -41,6 +41,15 @@ on_yearly_pulse = { 75 = PlusAmbitions.lifestyle.0024 # Debate with a zealous courtier 75 = PlusAmbitions.lifestyle.0025 # Bookseller comes to court } + + ambition_events = { + 10 = PlusAmbitions.decadence.0000 # Lower Decadence - Berber Life + 10 = PlusAmbitions.decadence.0002 # Lower Decadence - The Bandit camp + 10 = PlusAmbitions.decadence.0006 # Lower Decadence - The Two-Headed Dromedary Hunt + 10 = PlusAmbitions.decadence.0011 # Lower Decadence - Couriers + 10 = PlusAmbitions.decadence.0012 # Lower Decadence - Palast stripped of Luxuries + 10 = PlusAmbitions.decadence.0013 # Lower Decadence - Brothels Closed + } } #character diff --git a/CK2Plus/events/000_CK2Plus_ambitions_decadence.txt b/CK2Plus/events/000_CK2Plus_ambitions_decadence.txt new file mode 100644 index 00000000..ed2b104d --- /dev/null +++ b/CK2Plus/events/000_CK2Plus_ambitions_decadence.txt @@ -0,0 +1,452 @@ +namespace = PlusAmbitions.decadence +###################### +# Decadence Ambition # +###################### + +### Berber Life + +# Berber Life +character_event = { + id = PlusAmbitions.decadence.0000 + desc = EVTDESC94170 + picture = GFX_evt_desert + border = GFX_event_normal_frame_religion + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + religion_group = muslim + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_lower_decadence50 + has_ambition = obj_lower_decadence55 + has_ambition = obj_lower_decadence60 + has_ambition = obj_lower_decadence65 + has_ambition = obj_lower_decadence70 + has_ambition = obj_lower_decadence75 + has_ambition = obj_lower_decadence80 + } + NOT = { has_character_flag = berber_life } + NOT = { has_character_flag = bandit_camp } + NOT = { has_character_flag = dromedary_hunt } + NOT = { has_character_flag = berber_life_taken } + NOT = { is_inaccessible_trigger = yes } + } + + option = { + name = EVTOPTA94170 + set_character_flag = berber_life + set_character_flag = berber_life_taken + character_event = { id = PlusAmbitions.decadence.0001 days = 15 tooltip = EVTTOOLTIP94171 } + } + option = { + name = EVTOPTB94170 + custom_tooltip = { text = lower_decadence_quit } + } +} + +# Living with Berbers +character_event = { + id = PlusAmbitions.decadence.0001 + desc = EVTDESC94171 + picture = GFX_evt_desert + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94171 + decadence = -5 + } +} + +### The Bandit Camp + +# The Bandit Camp +character_event = { + id = PlusAmbitions.decadence.0002 + desc = EVTDESC94175 + picture = GFX_evt_moors + border = GFX_event_normal_frame_religion + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + religion_group = muslim + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_lower_decadence50 + has_ambition = obj_lower_decadence55 + has_ambition = obj_lower_decadence60 + has_ambition = obj_lower_decadence65 + has_ambition = obj_lower_decadence70 + has_ambition = obj_lower_decadence75 + has_ambition = obj_lower_decadence80 + } + NOT = { has_character_flag = berber_life } + NOT = { has_character_flag = bandit_camp } + NOT = { has_character_flag = dromedary_hunt } + NOT = { has_character_flag = bandit_camp_taken } + NOT = { is_inaccessible_trigger = yes } + } + + option = { + name = EVTOPTA94175 + set_character_flag = bandit_camp + set_character_flag = bandit_camp_taken + character_event = { id = PlusAmbitions.decadence.0003 days = 3 tooltip = EVTTOOLTIP94176 } + } + option = { + name = EVTOPTB94175 + custom_tooltip = { text = lower_decadence_quit } + } + option = { + name = EVTOPTC94175 + trigger = { age = 60 } + custom_tooltip = { text = lower_decadence_quit } + } +} + +# Sneak up on Camp +character_event = { + id = PlusAmbitions.decadence.0003 + desc = EVTDESC94176 + picture = GFX_evt_bandits + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94176 + character_event = { id = PlusAmbitions.decadence.0004 tooltip = EVTTOOLTIP94177 } + } + option = { + name = EVTOPTB94176 + tooltip_info = craven + trigger = { trait = craven } + custom_tooltip = { text = lower_decadence_quit } + } +} + +# The Fight +character_event = { + id = PlusAmbitions.decadence.0004 + desc = EVTDESC94177 + picture = GFX_evt_melee + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94177 + tooltip_info = craven + trigger = { trait = craven } + character_event = { id = PlusAmbitions.decadence.0005 tooltip = EVTTOOLTIP94178 } + random = { + chance = 20 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + option = { + name = EVTOPTB94177 + tooltip_info = impaler + trigger = { trait = impaler } + character_event = { id = PlusAmbitions.decadence.0005 tooltip = EVTTOOLTIP94178 } + random = { + chance = 5 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } + option = { + name = EVTOPTC94177 + character_event = { id = PlusAmbitions.decadence.0005 tooltip = EVTTOOLTIP94178 } + trigger = { + NOT = { + trait = impaler + trait = craven + } + } + random = { + chance = 10 + add_trait = wounded + hidden_tooltip = { + character_event = { + id = 38280 #Notify Wounded + } + } + } + } +} + +# Fight Aftermath +character_event = { + id = PlusAmbitions.decadence.0005 + desc = EVTDESC94178 + picture = GFX_evt_bloody_man + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94178 + trigger = { + NOT = { trait = impaler } + } + decadence = -5 + } + option = { + name = EVTOPTB94178 + tooltip_info = impaler + trigger = { trait = impaler } + decadence = -5 + } +} + +### The Two-Headed Dromedary Hunt + +# The Hunt +character_event = { + id = PlusAmbitions.decadence.0006 + desc = EVTDESC94180 + picture = GFX_evt_hunt + border = GFX_event_normal_frame_religion + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + religion_group = muslim + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_lower_decadence50 + has_ambition = obj_lower_decadence55 + has_ambition = obj_lower_decadence60 + has_ambition = obj_lower_decadence65 + has_ambition = obj_lower_decadence70 + has_ambition = obj_lower_decadence75 + has_ambition = obj_lower_decadence80 + } + NOT = { has_character_flag = berber_life } + NOT = { has_character_flag = bandit_camp } + NOT = { has_character_flag = dromedary_hunt } + NOT = { has_character_flag = dromedary_hunt_taken } + NOT = { is_inaccessible_trigger = yes } + } + + option = { + name = EVTOPTA94180 + set_character_flag = dromedary_hunt + set_character_flag = dromedary_hunt_taken + character_event = { id = PlusAmbitions.decadence.0007 days = 6 tooltip = EVTTOOLTIP94181 } + } + option = { + name = EVTOPTB94180 + custom_tooltip = { text = lower_decadence_quit } + } +} + +# The Hunt Begins +character_event = { + id = PlusAmbitions.decadence.0007 + desc = EVTDESC94181 + picture = GFX_evt_desert + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94181 + character_event = { id = PlusAmbitions.decadence.0008 days = 6 tooltip = EVTTOOLTIP94182 } + } +} + +# No Sign of the Beast +character_event = { + id = PlusAmbitions.decadence.0008 + desc = EVTDESC94182 + picture = GFX_evt_desert + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94182 + character_event = { id = PlusAmbitions.decadence.0009 days = 6 tooltip = EVTTOOLTIP94183 } + } +} + +# Hunt is Abandoned +character_event = { + id = PlusAmbitions.decadence.0009 + desc = EVTDESC94183 + picture = GFX_evt_desert + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94183 + character_event = { id = PlusAmbitions.decadence.0010 days = 6 tooltip = EVTTOOLTIP94184 } + } +} + +# Coming Home +character_event = { + id = PlusAmbitions.decadence.0010 + desc = EVTDESC94184 + picture = GFX_evt_feast + border = GFX_event_normal_frame_religion + + hide_from = yes + + is_triggered_only = yes + + option = { + name = EVTOPTA94184 + decadence = -5 + } +} + +### Couriers +character_event = { + id = PlusAmbitions.decadence.0011 + desc = EVTDESC94185 + picture = GFX_evt_imam + border = GFX_event_normal_frame_intrigue + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + religion_group = muslim + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_lower_decadence50 + has_ambition = obj_lower_decadence55 + has_ambition = obj_lower_decadence60 + has_ambition = obj_lower_decadence65 + has_ambition = obj_lower_decadence70 + has_ambition = obj_lower_decadence75 + has_ambition = obj_lower_decadence80 + } + NOT = { has_character_flag = berber_life } + NOT = { has_character_flag = bandit_camp } + NOT = { has_character_flag = dromedary_hunt } + } + + option = { + name = EVTOPTA94185 + decadence = -3 + } +} + +### Palace Stripped of Luxuries +character_event = { + id = PlusAmbitions.decadence.0012 + desc = EVTDESC94186 + picture = GFX_evt_jugglers + border = GFX_event_normal_frame_intrigue + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + religion_group = muslim + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_lower_decadence50 + has_ambition = obj_lower_decadence55 + has_ambition = obj_lower_decadence60 + has_ambition = obj_lower_decadence65 + has_ambition = obj_lower_decadence70 + has_ambition = obj_lower_decadence75 + has_ambition = obj_lower_decadence80 + } + NOT = { has_character_flag = berber_life } + NOT = { has_character_flag = bandit_camp } + NOT = { has_character_flag = dromedary_hunt } + NOT = { is_inaccessible_trigger = yes } + } + + option = { + name = EVTOPTA94186 + decadence = -3 + } +} + +### Brothels Closed +character_event = { + id = PlusAmbitions.decadence.0013 + desc = EVTDESC94187 + picture = GFX_evt_sultan + border = GFX_event_normal_frame_intrigue + + capable_only = yes + only_rulers = yes + prisoner = no + min_age = 16 + religion_group = muslim + + is_triggered_only = yes + + trigger = { + OR = { + has_ambition = obj_lower_decadence50 + has_ambition = obj_lower_decadence55 + has_ambition = obj_lower_decadence60 + has_ambition = obj_lower_decadence65 + has_ambition = obj_lower_decadence70 + has_ambition = obj_lower_decadence75 + has_ambition = obj_lower_decadence80 + } + NOT = { has_character_flag = berber_life } + NOT = { has_character_flag = bandit_camp } + NOT = { has_character_flag = dromedary_hunt } + } + + option = { + name = EVTOPTA94187 + decadence = -3 + } +} diff --git a/CK2Plus/interface/000_CK2Plus_ambitions.gfx b/CK2Plus/interface/000_CK2Plus_ambitions.gfx index eb250ac2..03d65b46 100644 --- a/CK2Plus/interface/000_CK2Plus_ambitions.gfx +++ b/CK2Plus/interface/000_CK2Plus_ambitions.gfx @@ -230,4 +230,53 @@ spriteTypes = { noRefCount = yes effectFile = "gfx/FX/buttonstate_linear.lua" } + spriteType = { + name = "GFX_obj_lower_decadence50" + texturefile = "gfx/ambitions/obj_lower_decadence.dds" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_lower_decadence55" + texturefile = "gfx/ambitions/obj_lower_decadence.dds" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_lower_decadence60" + texturefile = "gfx/ambitions/obj_lower_decadence.dds" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_lower_decadence65" + texturefile = "gfx/ambitions/obj_lower_decadence.dds" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_lower_decadence70" + texturefile = "gfx/ambitions/obj_lower_decadence.dds" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_lower_decadence75" + texturefile = "gfx/ambitions/obj_lower_decadence.dds" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } + spriteType = { + name = "GFX_obj_lower_decadence80" + texturefile = "gfx/ambitions/obj_lower_decadence.dds" + noOfFrames = 1 + noRefCount = yes + effectFile = "gfx/FX/buttonstate_linear.lua" + } } \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_ambitions.csv b/CK2Plus/localisation/000_CK2Plus_ambitions.csv index d2fe2997..c79645cb 100644 --- a/CK2Plus/localisation/000_CK2Plus_ambitions.csv +++ b/CK2Plus/localisation/000_CK2Plus_ambitions.csv @@ -102,4 +102,25 @@ obj_increase_demesne_9_desc;[This.GetTitledFirstName] is not satisfied with the obj_increase_demesne_9_title;Increase Size of Demesne;;;;;;;;;;;;;x obj_known_for_virtue_desc;[This.GetTitledFirstName] seeks to become known for [This.GetHerHis] virtues.;;;;;;;;;;;;;x -obj_known_for_virtue_title;Become Known for Virtue;;;;;;;;;;;;;x \ No newline at end of file +obj_known_for_virtue_title;Become Known for Virtue;;;;;;;;;;;;;x + +obj_lower_decadence50_desc;[This.GetTitledFirstName] wants to lower the decadence of [This.GetHerHis] dynasty;;;;;;;;;;;;;x +obj_lower_decadence50_title;Lower Dynastic Decadence;;;;;;;;;;;;;x + +obj_lower_decadence55_desc;[This.GetTitledFirstName] wants to lower the decadence of [This.GetHerHis] dynasty;;;;;;;;;;;;;x +obj_lower_decadence55_title;Lower Dynastic Decadence;;;;;;;;;;;;;x + +obj_lower_decadence60_desc;[This.GetTitledFirstName] wants to lower the decadence of [This.GetHerHis] dynasty;;;;;;;;;;;;;x +obj_lower_decadence60_title;Lower Dynastic Decadence;;;;;;;;;;;;;x + +obj_lower_decadence65_desc;[This.GetTitledFirstName] wants to lower the decadence of [This.GetHerHis] dynasty;;;;;;;;;;;;;x +obj_lower_decadence65_title;Lower Dynastic Decadence;;;;;;;;;;;;;x + +obj_lower_decadence70_desc;[This.GetTitledFirstName] wants to lower the decadence of [This.GetHerHis] dynasty;;;;;;;;;;;;;x +obj_lower_decadence70_title;Lower Dynastic Decadence;;;;;;;;;;;;;x + +obj_lower_decadence75_desc;[This.GetTitledFirstName] wants to lower the decadence of [This.GetHerHis] dynasty;;;;;;;;;;;;;x +obj_lower_decadence75_title;Lower Dynastic Decadence;;;;;;;;;;;;;x + +obj_lower_decadence80_desc;[This.GetTitledFirstName] wants to lower the decadence of [This.GetHerHis] dynasty;;;;;;;;;;;;;x +obj_lower_decadence80_title;Lower Dynastic Decadence;;;;;;;;;;;;;x \ No newline at end of file From 5855c23ee846ff773711cdb8e3aaaed4f9fd2d3b Mon Sep 17 00:00:00 2001 From: Waschbaerkebab Date: Sun, 29 Mar 2020 15:44:32 +0200 Subject: [PATCH 23/23] Several fixes (missing Localisations etc.) --- .../000_CK2Plus_event_modifiers.txt | 8 +++++ .../on_actions/000_CK2Plus_on_actions.txt | 20 ++++++----- .../000_CK2Plus_scripted_triggers.txt | 2 +- .../000_CK2Plus_ambitions_befriendLiege.txt | 34 +++++++++---------- .../000_CK2Plus_custom_tooltips.csv | 5 ++- .../000_CK2Plus_event_modifiers.csv | 10 +++++- .../000_CK2Plus_opinion_modifiers.csv | 1 + CK2Plus/localisation/000_CK2Plus_timers.csv | 5 +++ 8 files changed, 57 insertions(+), 28 deletions(-) diff --git a/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt b/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt index f9bbe1a6..635a85d8 100644 --- a/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt +++ b/CK2Plus/common/event_modifiers/000_CK2Plus_event_modifiers.txt @@ -14,6 +14,7 @@ # plus_new_roads # plus_attentive_liege # plus_estates_1 +# plus_away_from_court # ######################################### @@ -132,3 +133,10 @@ plus_estates_1 = { monthly_character_prestige = 0.01 icon = 101 } + +#Away From Court +plus_away_from_court = { + plot_discovery_chance = -0.25 + fertility = -1.0 + icon = 19 +} diff --git a/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt b/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt index 7c4460f7..51908411 100644 --- a/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt +++ b/CK2Plus/common/on_actions/000_CK2Plus_on_actions.txt @@ -10,6 +10,10 @@ on_startup = { on_yearly_pulse = { events = { PlusTitular.001 # Destroy Dead Nations + + # MTTH events that were consuming too much time + PerformancePlus.900 # Councillor tries to befriend liege + PerformancePlus.910 # Duelist tries to befriend liege } random_events = { @@ -40,15 +44,15 @@ on_yearly_pulse = { 75 = PlusAmbitions.lifestyle.0023 # Thinking about the plot 75 = PlusAmbitions.lifestyle.0024 # Debate with a zealous courtier 75 = PlusAmbitions.lifestyle.0025 # Bookseller comes to court - } - ambition_events = { - 10 = PlusAmbitions.decadence.0000 # Lower Decadence - Berber Life - 10 = PlusAmbitions.decadence.0002 # Lower Decadence - The Bandit camp - 10 = PlusAmbitions.decadence.0006 # Lower Decadence - The Two-Headed Dromedary Hunt - 10 = PlusAmbitions.decadence.0011 # Lower Decadence - Couriers - 10 = PlusAmbitions.decadence.0012 # Lower Decadence - Palast stripped of Luxuries - 10 = PlusAmbitions.decadence.0013 # Lower Decadence - Brothels Closed + ambition_events = { + 10 = PlusAmbitions.decadence.0000 # Lower Decadence - Berber Life + 10 = PlusAmbitions.decadence.0002 # Lower Decadence - The Bandit camp + 10 = PlusAmbitions.decadence.0006 # Lower Decadence - The Two-Headed Dromedary Hunt + 10 = PlusAmbitions.decadence.0011 # Lower Decadence - Couriers + 10 = PlusAmbitions.decadence.0012 # Lower Decadence - Palast stripped of Luxuries + 10 = PlusAmbitions.decadence.0013 # Lower Decadence - Brothels Closed + } } } diff --git a/CK2Plus/common/scripted_triggers/000_CK2Plus_scripted_triggers.txt b/CK2Plus/common/scripted_triggers/000_CK2Plus_scripted_triggers.txt index 66550c94..f367643b 100644 --- a/CK2Plus/common/scripted_triggers/000_CK2Plus_scripted_triggers.txt +++ b/CK2Plus/common/scripted_triggers/000_CK2Plus_scripted_triggers.txt @@ -45,7 +45,7 @@ plus_is_abroad_trigger = { hidden_tooltip = { OR = { plus_in_command_trigger = yes - has_character_modifier = away_from_court + has_character_modifier = plus_away_from_court trait = on_hajj trait = on_pilgrimage #trait = learning_druidic_arts diff --git a/CK2Plus/events/000_CK2Plus_ambitions_befriendLiege.txt b/CK2Plus/events/000_CK2Plus_ambitions_befriendLiege.txt index acdc8226..e8ace7a0 100644 --- a/CK2Plus/events/000_CK2Plus_ambitions_befriendLiege.txt +++ b/CK2Plus/events/000_CK2Plus_ambitions_befriendLiege.txt @@ -17,16 +17,16 @@ character_event = { trigger = { OR = { - has_ambition = obj_make_a_friend + has_ambition = obj_make_friends has_ambition = obj_befriend_liege } - in_command_trigger = no + plus_in_command_trigger = no is_councillor = yes NOT = { is_inaccessible_trigger = yes } liege = { age = 16 prisoner = no - in_command_trigger = no + plus_in_command_trigger = no NOR = { trait = incapable is_friend = ROOT @@ -68,7 +68,7 @@ character_event = { } modifier = { factor = 0.5 - liege = { has_ambition = obj_make_a_friend } + liege = { has_ambition = obj_make_friends } } modifier = { factor = 0.65 @@ -93,16 +93,16 @@ character_event = { trigger = { OR = { - has_ambition = obj_make_a_friend + has_ambition = obj_make_friends has_ambition = obj_befriend_liege } - in_command_trigger = no + plus_in_command_trigger = no is_councillor = yes NOT = { is_inaccessible_trigger = yes } liege = { age = 16 prisoner = no - in_command_trigger = no + plus_in_command_trigger = no NOR = { trait = incapable is_friend = ROOT @@ -229,11 +229,11 @@ character_event = { trigger = { OR = { - has_ambition = obj_make_a_friend + has_ambition = obj_make_friends has_ambition = obj_befriend_liege - liege = { has_ambition = obj_make_a_friend } + liege = { has_ambition = obj_make_friends } } - in_command_trigger = no + plus_in_command_trigger = no OR = { trait = duelist trait = tough_soldier @@ -252,7 +252,7 @@ character_event = { liege = { age = 16 prisoner = no - in_command_trigger = no + plus_in_command_trigger = no NOT = { is_inaccessible_trigger = yes } is_female = no #OR = { @@ -303,7 +303,7 @@ character_event = { } modifier = { factor = 0.5 - liege = { has_ambition = obj_make_a_friend } + liege = { has_ambition = obj_make_friends } } modifier = { factor = 0.85 @@ -328,18 +328,18 @@ character_event = { trigger = { OR = { - has_ambition = obj_make_a_friend + has_ambition = obj_make_friends has_ambition = obj_befriend_liege - liege = { has_ambition = obj_make_a_friend } + liege = { has_ambition = obj_make_friends } } - in_command_trigger = no + plus_in_command_trigger = no OR = { trait = duelist trait = tough_soldier trait = skilled_tactician trait = brilliant_strategist } - female = no + is_female = no #OR = { # is_female = no # trait = martial_lady @@ -351,7 +351,7 @@ character_event = { liege = { age = 16 prisoner = no - in_command_trigger = no + plus_in_command_trigger = no NOT = { is_inaccessible_trigger = yes } is_female = no #OR = { diff --git a/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv b/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv index 55249d85..66f61848 100644 --- a/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv +++ b/CK2Plus/localisation/000_CK2Plus_custom_tooltips.csv @@ -19,4 +19,7 @@ plus_is_not_busy_trigger_tooltip;Is currently not involved in an important event #Ambition 'befriend_liege' make_friend_attempt_tooltip;[Root.GetFirstName] tries to make a friend.;;;;;;;;;;;;;x make_friend_sad_tooltip;[From.GetTitledFirstName] is refused.;;;;;;;;;;;;;x -make_friend_success_tooltip;A friendship is formed.;;;;;;;;;;;;;x \ No newline at end of file +make_friend_success_tooltip;A friendship is formed.;;;;;;;;;;;;;x + +IS_ABROAD_TOOLTIP;Is currently abroad\n;;;;;;;;;;;;;x +IN_COMMAND_TOOLTIP;In command of an army while at war\n;;;;;;;;;;;;;x \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_event_modifiers.csv b/CK2Plus/localisation/000_CK2Plus_event_modifiers.csv index 89c624e1..e35fa61f 100644 --- a/CK2Plus/localisation/000_CK2Plus_event_modifiers.csv +++ b/CK2Plus/localisation/000_CK2Plus_event_modifiers.csv @@ -19,4 +19,12 @@ plus_new_roads;New Roads;Nouvelles Routes;Neue Stra�en;;Nuevos Caminos;;;;;;;; plus_new_roads_desc;This province has improved roads.;Cette province a am�lior� les routes.;Diese Provinz hat Stra�en verbessert.;;Esta provincia ha mejorado las carreteras.;;;;;;;;;x plus_attentive_liege;Attentive Liege;;;;;;;;;;;;;x -plus_attentive_liege_desc;The ruler is paying attention to their lands, ensuring that nothing goes wrong--at least for a while.;;;;;;;;;;;;;x \ No newline at end of file +plus_attentive_liege_desc;The ruler is paying attention to their lands, ensuring that nothing goes wrong--at least for a while.;;;;;;;;;;;;;x + +plus_away_from_court;Away From Court;;;;;;;;;;;;;x +plus_away_from_court_desc;When someone is away from their home court leading armies, it is much more difficult for them to discover plots...and all but impossible to have more children.;;;;;;;;;;;;;x + +plus_estates_1;Minor Estates;;;;;;;;;;;;;x +plus_estates_1_desc;Provides a character with a yearly income of �G1.00�! wealth.;;;;;;;;;;;;;x + +plus_do_not_disturb;Currently busy\n;Currently busy\n;Currently busy\n;;Currently busy\n;;;;;;;;;x \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_opinion_modifiers.csv b/CK2Plus/localisation/000_CK2Plus_opinion_modifiers.csv index 83b55fa7..ebe8883e 100644 --- a/CK2Plus/localisation/000_CK2Plus_opinion_modifiers.csv +++ b/CK2Plus/localisation/000_CK2Plus_opinion_modifiers.csv @@ -1,3 +1,4 @@ #CODE;ENGLISH;FRENCH;GERMAN;;SPANISH;;;;;;;;;x plus_good_speech;Good Speech;Bon orateur;Good Speech;;Good Speech;;;;;;;;;x +plus_legitimized_me;Legitimized Me;M'a l�gitim�;Legitimiert Mich;;Legitimized Me;;;;;;;;;x \ No newline at end of file diff --git a/CK2Plus/localisation/000_CK2Plus_timers.csv b/CK2Plus/localisation/000_CK2Plus_timers.csv index c74a5415..89d91c4f 100644 --- a/CK2Plus/localisation/000_CK2Plus_timers.csv +++ b/CK2Plus/localisation/000_CK2Plus_timers.csv @@ -2,3 +2,8 @@ plus_loan_timer;Loan Taken;Emprunt Contract�;Genommenes Darlehen;;Loan Taken;;;;;;;;;x plus_loan_timer_desc;A loan will be due for repayment at the expiration date of this modifier.;Un emprunt devra estre rembours� � la date d'expiration de ce modificateur.;Ein Darlehen muss mit Ablauf dieses Modifikators zur�ckgezahlt werden;;A loan will be due for repayment at the expiration date of this modifier.;;;;;;;;;x + +plus_lower_decadence_obj_timer;Can't use the Lower Decadence Objective;Ne peult point utiliser l'Objectif de Diminution de la D�cadence;Can't use the Lower Decadence Objective;;Can't use the Lower Decadence Objective;;;;;;;;;x + +plus_ai_austerity;Austerity;Austerity;Austerity;;Austerity;;;;;;;;;x +plus_ai_austerity_desc;Austerity;Austerity;Austerity;;Austerity;;;;;;;;;x \ No newline at end of file