fixes big evebts abd on actions plus mroe
This commit is contained in:
parent
c9d520e5a1
commit
bce2aa31a1
207 changed files with 100377 additions and 9296 deletions
|
|
@ -7,52 +7,6 @@
|
|||
# by Mathilda Bjarnehed
|
||||
##################################################
|
||||
|
||||
# Deprecated decision of yore.
|
||||
#convert_to_feudalism_decision = {
|
||||
#picture = {
|
||||
#reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
#}
|
||||
#decision_group_type = major
|
||||
#desc = convert_to_feudalism_decision_desc
|
||||
#
|
||||
#ai_check_interval = 36
|
||||
#
|
||||
#is_shown = {
|
||||
#government_has_flag = government_is_tribal
|
||||
#}
|
||||
#
|
||||
#is_valid = {
|
||||
#has_realm_law = tribal_authority_3
|
||||
#custom_description = {
|
||||
#text = faith_is_reformed
|
||||
#subject = root
|
||||
#faith = { NOT = { has_doctrine_parameter = unreformed } }
|
||||
#}
|
||||
#prestige_level = 5
|
||||
#}
|
||||
#
|
||||
#cost = {
|
||||
#prestige = 150
|
||||
#}
|
||||
#
|
||||
#effect = {
|
||||
#change_government = feudal_government
|
||||
#trigger_event = major_decisions.0001
|
||||
#add_realm_law_skip_effects = crown_authority_0
|
||||
#}
|
||||
#
|
||||
#ai_potential = {
|
||||
##always = yes
|
||||
#}
|
||||
#
|
||||
#ai_will_do = {
|
||||
#base = 100
|
||||
#modifier = { #Go for the more lenient decision if this is the case
|
||||
#add = -100
|
||||
#liege = { government_has_flag = government_is_feudal }
|
||||
#}
|
||||
#}
|
||||
#}
|
||||
|
||||
##################################################
|
||||
# Convert Realm to Feudalism/Clan through Liege
|
||||
|
|
@ -83,6 +37,7 @@ convert_to_feudalism_liege_converted_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 100
|
||||
desc = convert_to_feudalism_liege_converted_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -134,12 +89,47 @@ convert_to_feudalism_liege_converted_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = 150
|
||||
prestige = 250
|
||||
}
|
||||
|
||||
effect = {
|
||||
trigger_event = major_decisions.0001
|
||||
save_scope_as = actor
|
||||
# Bonus Cities and Temples only when the liege's culture is in a later era than ours
|
||||
save_scope_value_as = {
|
||||
name = feudalize_bonus_holdings
|
||||
value = no
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
liege ?= {
|
||||
OR = {
|
||||
AND = {
|
||||
culture = { has_cultural_era_or_later = culture_era_early_medieval }
|
||||
root.culture = {
|
||||
NOT = { has_cultural_era_or_later = culture_era_early_medieval }
|
||||
}
|
||||
}
|
||||
AND = {
|
||||
culture = { has_cultural_era_or_later = culture_era_high_medieval }
|
||||
root.culture = {
|
||||
NOT = { has_cultural_era_or_later = culture_era_high_medieval }
|
||||
}
|
||||
}
|
||||
AND = {
|
||||
culture = { has_cultural_era_or_later = culture_era_late_medieval }
|
||||
root.culture = {
|
||||
NOT = { has_cultural_era_or_later = culture_era_late_medieval }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
save_scope_value_as = {
|
||||
name = feudalize_bonus_holdings
|
||||
value = yes
|
||||
}
|
||||
}
|
||||
convert_whole_realm_to_feudalism_effect = yes
|
||||
hidden_effect = {
|
||||
every_vassal = {
|
||||
|
|
@ -166,7 +156,8 @@ convert_clan_to_feudalism_through_liege_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
sort_order = 40
|
||||
desc = convert_clan_to_feudalism_through_liege_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -211,7 +202,7 @@ convert_clan_to_feudalism_through_liege_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = 150
|
||||
prestige = 250
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
@ -233,7 +224,7 @@ convert_clan_to_feudalism_through_liege_decision = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
prestige >= 150
|
||||
prestige >= 250
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
|
|
@ -255,7 +246,8 @@ convert_feudalism_to_clan_through_liege_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
sort_order = 40
|
||||
desc = convert_feudalism_to_clan_through_liege_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -300,7 +292,7 @@ convert_feudalism_to_clan_through_liege_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = 150
|
||||
prestige = 250
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
@ -322,7 +314,7 @@ convert_feudalism_to_clan_through_liege_decision = {
|
|||
}
|
||||
|
||||
ai_potential = {
|
||||
prestige >= 150
|
||||
prestige >= 250
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
|
|
@ -359,6 +351,7 @@ convert_whole_realm_to_feudalism_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 100
|
||||
desc = convert_whole_realm_to_feudalism_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -384,38 +377,70 @@ convert_whole_realm_to_feudalism_decision = {
|
|||
}
|
||||
}
|
||||
}
|
||||
trigger_if = {
|
||||
limit = {
|
||||
government_has_flag = government_is_wanua
|
||||
is_ai = yes
|
||||
}
|
||||
faith = { has_doctrine = doctrine_monotheist }
|
||||
}
|
||||
}
|
||||
|
||||
is_valid = {
|
||||
has_realm_law = tribal_authority_3
|
||||
custom_description = {
|
||||
text = faith_is_reformed
|
||||
subject = root
|
||||
faith = { NOT = { has_doctrine_parameter = unreformed } }
|
||||
trigger_if = {
|
||||
limit = {
|
||||
faith = { has_doctrine_parameter = unreformed }
|
||||
faith_qualifies_for_west_african_pagan_feudalisation_trigger = yes
|
||||
}
|
||||
OR = {
|
||||
custom_description = {
|
||||
text = faith_is_reformed
|
||||
subject = root
|
||||
faith = { NOT = { has_doctrine_parameter = unreformed } }
|
||||
}
|
||||
calc_true_if = {
|
||||
amount >= 2
|
||||
realm_size >= minor_realm_size
|
||||
highest_held_title_tier >= tier_kingdom
|
||||
custom_tooltip = {
|
||||
text = convert_whole_realm_to_feudalism_west_african_pagan_decision.tt.vassal_count
|
||||
any_vassal = { count >= convert_whole_realm_to_feudalism_west_african_pagan_decision_vassal_count_value }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
custom_description = {
|
||||
text = faith_is_reformed
|
||||
subject = root
|
||||
faith = { NOT = { has_doctrine_parameter = unreformed } }
|
||||
}
|
||||
}
|
||||
prestige_level >= 2
|
||||
capital_province.county = {
|
||||
development_level >= convert_to_feudalism_development_requirement
|
||||
capital_province = {
|
||||
province_size_level >= 2
|
||||
}
|
||||
custom_description = { #You need to have 70% of all (non-regional/unique) tribal innovations!
|
||||
text = has_all_tribal_innovations
|
||||
subject = root.culture
|
||||
culture = {
|
||||
calc_true_if = {
|
||||
amount >= 9
|
||||
amount >= 10
|
||||
has_innovation = innovation_motte
|
||||
has_innovation = innovation_catapult
|
||||
has_innovation = innovation_barracks
|
||||
has_innovation = innovation_mustering_grounds
|
||||
has_innovation = innovation_bannus
|
||||
has_innovation = innovation_quilted_armor
|
||||
has_innovation = innovation_pattern_welding
|
||||
has_innovation = innovation_gavelkind
|
||||
has_innovation = innovation_crop_rotation
|
||||
has_innovation = innovation_city_planning
|
||||
has_innovation = innovation_casus_belli
|
||||
has_innovation = innovation_plenary_assemblies
|
||||
has_innovation = innovation_ledger
|
||||
has_innovation = innovation_development_01
|
||||
has_innovation = innovation_prosperity_01
|
||||
has_innovation = innovation_currency_01
|
||||
}
|
||||
}
|
||||
|
|
@ -437,7 +462,7 @@ convert_whole_realm_to_feudalism_decision = {
|
|||
}
|
||||
|
||||
cost = {
|
||||
prestige = 200
|
||||
prestige = 500
|
||||
}
|
||||
|
||||
effect = {
|
||||
|
|
@ -476,7 +501,8 @@ convert_to_tribalism_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
sort_order = 40
|
||||
desc = convert_to_tribalism_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -540,25 +566,28 @@ convert_to_tribalism_decision = {
|
|||
# by Ewan Cowhig Croft
|
||||
##################################################
|
||||
|
||||
# A decision for West African pagans to feudalise without reforming.
|
||||
|
||||
###### DEPRECATED ###### (merged the functionality into regular feudal/clan adopting)
|
||||
### Adopt [ROOT.Char.Custom('GetTribalReformGovernment')|U] Ways: #weak (West African Pagan)#! ###
|
||||
convert_whole_realm_to_feudalism_west_african_pagan_decision = {
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_realm.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 100
|
||||
desc = convert_whole_realm_to_feudalism_west_african_pagan_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 72
|
||||
duchy = 36
|
||||
kingdom = 36
|
||||
empire = 36
|
||||
hegemony = 36
|
||||
county = 0
|
||||
duchy = 0
|
||||
kingdom = 0
|
||||
empire = 0
|
||||
hegemony = 0
|
||||
}
|
||||
|
||||
is_shown = {
|
||||
always = no
|
||||
# Only tribals need formalise.
|
||||
government_has_flag = government_is_tribal
|
||||
# Unreformed West African Pagans are our targets.
|
||||
|
|
@ -584,9 +613,9 @@ convert_whole_realm_to_feudalism_west_african_pagan_decision = {
|
|||
prestige_level >= high_prestige_level
|
||||
piety_level >= high_piety_level
|
||||
custom_tooltip = {
|
||||
text = convert_whole_realm_to_feudalism_west_african_pagan_decision.tt.wa_capital_development
|
||||
text = convert_whole_realm_to_feudalism_west_african_pagan_decision.tt.wa_capital_prosperity
|
||||
capital_county = {
|
||||
development_level >= convert_whole_realm_to_feudalism_west_african_pagan_decision_wa_capital_development_value
|
||||
prosperity_level >= convert_whole_realm_to_feudalism_west_african_pagan_decision_wa_capital_prosperity_value
|
||||
title_province = { geographical_region = world_africa_west }
|
||||
}
|
||||
}
|
||||
|
|
@ -597,20 +626,21 @@ convert_whole_realm_to_feudalism_west_african_pagan_decision = {
|
|||
subject = root.culture
|
||||
culture = {
|
||||
calc_true_if = {
|
||||
amount >= 9
|
||||
amount >= 10
|
||||
has_innovation = innovation_motte
|
||||
has_innovation = innovation_catapult
|
||||
has_innovation = innovation_barracks
|
||||
has_innovation = innovation_mustering_grounds
|
||||
has_innovation = innovation_bannus
|
||||
has_innovation = innovation_quilted_armor
|
||||
has_innovation = innovation_pattern_welding
|
||||
has_innovation = innovation_gavelkind
|
||||
has_innovation = innovation_crop_rotation
|
||||
has_innovation = innovation_city_planning
|
||||
has_innovation = innovation_casus_belli
|
||||
has_innovation = innovation_plenary_assemblies
|
||||
has_innovation = innovation_ledger
|
||||
has_innovation = innovation_development_01
|
||||
has_innovation = innovation_prosperity_01
|
||||
has_innovation = innovation_currency_01
|
||||
}
|
||||
}
|
||||
|
|
@ -680,6 +710,7 @@ declare_bloodline_holy_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_family_tree.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 20
|
||||
desc = declare_bloodline_holy_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -799,6 +830,7 @@ strengthen_bloodline_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
sort_order = 20
|
||||
desc = strengthen_bloodline_decision_desc
|
||||
|
||||
ai_check_interval_by_tier = {
|
||||
|
|
@ -913,6 +945,7 @@ dynasty_of_many_crowns_decision = {
|
|||
}
|
||||
desc = dynasty_of_many_crowns_decision_desc
|
||||
decision_group_type = major
|
||||
sort_order = 20
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -1012,7 +1045,8 @@ found_kingdom_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
sort_order = 50
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -1147,7 +1181,8 @@ found_empire_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_dynasty_house.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
sort_order = 50
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -1171,6 +1206,7 @@ found_empire_decision = {
|
|||
has_game_rule = off_custom_kingdoms
|
||||
}
|
||||
is_landed_or_landless_administrative = yes
|
||||
NOT = { government_has_flag = government_is_republic }
|
||||
is_confederation_member = no
|
||||
}
|
||||
|
||||
|
|
@ -2244,36 +2280,61 @@ found_witch_coven_decision = {
|
|||
|
||||
### Repay Loan ###
|
||||
repay_loan_decision = {
|
||||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds"
|
||||
}
|
||||
picture = { reference = "gfx/interface/illustrations/decisions/decision_spend_money.dds" }
|
||||
decision_group_type = major
|
||||
|
||||
desc = repay_loan_decision_decision_desc
|
||||
selection_tooltip = repay_loan_decision_decision_tooltip
|
||||
|
||||
ai_check_interval = 0
|
||||
ai_check_interval = 24
|
||||
|
||||
is_shown = {
|
||||
var:loan_holder ?= {
|
||||
any_in_list = {
|
||||
variable = owes_me_money
|
||||
this = root
|
||||
any_owned_story = {
|
||||
story_type = story_cycle_loan
|
||||
exists = var:amount_owed
|
||||
var:lender ?= {
|
||||
any_in_list = {
|
||||
variable = owes_me_money
|
||||
this = root
|
||||
}
|
||||
}
|
||||
}
|
||||
exists = var:loan_amount_owed
|
||||
}
|
||||
|
||||
is_valid_showing_failures_only = {
|
||||
is_available = yes
|
||||
gold >= var:loan_amount_owed
|
||||
is_available_quick = {
|
||||
adult = yes
|
||||
incapable = no
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = repay_loan_decision_afford_any_tt
|
||||
any_owned_story = {
|
||||
story_type = story_cycle_loan
|
||||
exists = var:amount_owed
|
||||
var:amount_owed <= prev.gold
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
effect = {
|
||||
var:loan_holder ?= { save_scope_as = recipient }
|
||||
pay_short_term_gold = {
|
||||
gold = var:loan_amount_owed
|
||||
target = scope:recipient
|
||||
scope:selected_item ?= { save_scope_as = recipient }
|
||||
ordered_owned_story = {
|
||||
limit = {
|
||||
story_type = story_cycle_loan
|
||||
exists = var:amount_owed
|
||||
var:lender = {
|
||||
this = scope:recipient
|
||||
any_in_list = {
|
||||
variable = owes_me_money
|
||||
this = root
|
||||
}
|
||||
}
|
||||
}
|
||||
order_by = { # repay smallest first
|
||||
value = 0
|
||||
subtract = var:amount_owed
|
||||
}
|
||||
save_scope_as = repaid_loan
|
||||
}
|
||||
clear_loanee_variables_effect = yes
|
||||
scope:recipient = {
|
||||
|
|
@ -2282,14 +2343,37 @@ repay_loan_decision = {
|
|||
target = root
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ai_potential = {
|
||||
always = no
|
||||
ai_select_item = {
|
||||
scope:actor = {
|
||||
ordered_owned_story = {
|
||||
limit = {
|
||||
story_type = story_cycle_loan
|
||||
exists = var:amount_owed
|
||||
var:lender ?= {
|
||||
any_in_list = {
|
||||
variable = owes_me_money
|
||||
this = scope:actor
|
||||
}
|
||||
}
|
||||
var:amount_owed < scope:actor.short_term_gold
|
||||
}
|
||||
order_by = {
|
||||
value = 0
|
||||
add = var:years_since
|
||||
if = {
|
||||
limit = { var:lender = { is_ai = no } }
|
||||
add = 2
|
||||
}
|
||||
}
|
||||
var:lender = { save_scope_as = selected_item }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
base = 0
|
||||
base = 25
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2500,7 +2584,8 @@ found_duchy_decision = {
|
|||
picture = {
|
||||
reference = "gfx/interface/illustrations/decisions/decision_found_kingdom.dds"
|
||||
}
|
||||
decision_group_type = major
|
||||
decision_group_type = realm
|
||||
sort_order = 50
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 60
|
||||
|
|
@ -2606,6 +2691,7 @@ expand_duchy_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/decision_destiny_goal.dds"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 20
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -2671,6 +2757,7 @@ expand_duchy_decision = {
|
|||
has_game_rule = on_custom_duchies
|
||||
}
|
||||
is_landed_or_landless_administrative = yes
|
||||
NOT = { government_has_flag = government_is_republic }
|
||||
trigger_if = {
|
||||
limit = {
|
||||
highest_held_title_tier = tier_duchy
|
||||
|
|
@ -2821,7 +2908,7 @@ expand_duchy_decision = {
|
|||
}
|
||||
scope:barony.duchy = {
|
||||
ordered_de_jure_county = {
|
||||
order_by = development_level
|
||||
order_by = prosperity_level
|
||||
limit = { NOT = { this = scope:barony.county } }
|
||||
save_scope_as = new_duchy_capital
|
||||
}
|
||||
|
|
@ -2880,6 +2967,7 @@ set_de_jure_capital_decision = {
|
|||
reference = "gfx/interface/illustrations/decisions/ep3_decision_city.dds"
|
||||
}
|
||||
decision_group_type = realm
|
||||
sort_order = 20
|
||||
ai_check_interval_by_tier = {
|
||||
barony = 0
|
||||
county = 0
|
||||
|
|
@ -3147,7 +3235,6 @@ set_de_jure_capital_decision = {
|
|||
scope:current_de_jure_scope ?= {
|
||||
set_capital_county = root.capital_county
|
||||
}
|
||||
# A bit of an ugly script hack, to make sure the Duchy Building slot is properly moved, which happens when a duchy capital is moved out of the duchy de jure. We temporarily move them out of the duchy de jure, and back again, to force this effect. Remove when Code gets a chance to have a look at it
|
||||
if = {
|
||||
limit = {
|
||||
scope:set_duchy_capital = yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue