Bugs fixing

This commit is contained in:
Heidesommer 2026-05-24 05:01:46 -04:00
parent cb926c39aa
commit ebc206bb1c
117 changed files with 59950 additions and 11056 deletions

View file

@ -0,0 +1,204 @@
### Pray to Protective Amulet ###
pray_to_protective_amulet_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/decision_personal_religious.dds"
}
decision_group_type = nomad_minor
cooldown = { years = 1 }
sort_order = 100
is_shown = {
has_mpo_dlc_trigger = yes
any_character_artifact = {
has_variable = magic_amulet_var
}
OR = {
religion = religion:tengrism_religion
culture = { has_cultural_pillar = heritage_mongolic }
has_trait = nomadic_philosophy
}
}
is_valid = {
any_equipped_character_artifact = {
custom_tooltip = {
text = pray_to_protective_amulet_decision_valid_tt
has_variable = magic_amulet_var
}
}
}
is_valid_showing_failures_only = {
is_available_adult = yes
}
cost = {
piety = minor_piety_value
}
effect = {
send_interface_toast = {
type = event_toast_effect_good
title = pray_to_protective_amulet_decision_toast
left_icon = root
add_stress = massive_stress_loss
}
}
ai_check_interval_by_tier = {
barony = 0
county = 120
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
}
ai_potential = {
piety >= medium_piety_value
}
ai_will_do = {
base = 100
modifier = {
factor = 2
has_trait = zealous
}
modifier = {
factor = 0
has_trait = cynical
}
}
}
# Desperate Stance Decision
### Desperate Times ###
mpo_desperate_stance_decision = {
picture = {
reference = "gfx/interface/illustrations/terrain_types/mpo_season_havsarsan_zud.dds"
}
decision_group_type = nomad_major
cooldown = { years = 50 }
sort_order = 100
is_shown = {
has_mpo_dlc_trigger = yes
government_has_flag = government_is_nomadic
exists = situation:the_great_steppe
any_character_situation = {
any_participant_group = {
participant_group_type = nomad_rulers_capital
}
}
}
is_valid = {
custom_tooltip = {
text = mpo_desperate_stance_decision_tt
any_character_situation = {
any_situation_sub_region = {
has_sub_region_phase_parameter = the_great_steppe_desperate_stance_decision
any_situation_sub_region_participant_group = {
participant_group_type = nomad_rulers_capital
participant_group_has_character = root
}
}
}
}
}
is_valid_showing_failures_only = {
is_available_adult = yes
}
cost = {
prestige = monumental_prestige_value
}
effect = {
trigger_event = mpo_decisions_events.0500
show_as_tooltip = {
mpo_decisions_events_0500_effect = yes
}
}
ai_check_interval_by_tier = {
barony = 0
county = 36
duchy = 36
kingdom = 36
empire = 36
hegemony = 36
}
ai_potential = {
prestige > monumental_prestige_value
}
ai_will_do = {
base = 100
}
}
# Settle as a Nomad for an Adventurer
### Adopt the Nomadic Ways ###
adopt_nomadic_ways_decision = {
picture = {
reference = "gfx/interface/illustrations/event_story/mpo_steppe_region.dds"
}
decision_group_type = adventurer
sort_order = 100
is_shown = {
has_mpo_dlc_trigger = yes
has_ep3_dlc_trigger = yes
is_landless_adventurer = yes
}
is_valid = {
custom_tooltip = {
text = adopt_nomadic_ways_decision_herder_tt
location.county.holder = { has_government = herder_government }
}
}
is_valid_showing_failures_only = {
is_available_adult = yes
}
cost = {
prestige = massive_prestige_value
}
effect = {
show_as_tooltip = {
adopt_nomadic_ways_decision_effect = yes
}
trigger_event = mpo_decisions_events.0120
}
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 36
kingdom = 0
empire = 0
hegemony = 0
}
ai_potential = {
government_has_flag = government_is_landless_adventurer
}
ai_will_do = {
base = 100
modifier = {
factor = 2
has_trait = zealous
}
modifier = {
factor = 0
has_trait = cynical
}
}
}

View file

@ -0,0 +1,67 @@
#Divination
### Consult the Skies ###
mpo_divination_decision = {
picture = {
reference = "gfx/interface/illustrations/event_scenes/mpo_campfire_steppe.dds"
}
sort_order = 25
decision_group_type = nomad_minor
cooldown = { years = 5 }
cost = {
piety = medium_piety_value
}
is_shown = {
has_mpo_dlc_trigger = yes
government_has_flag = government_is_nomadic
has_religion = religion:tengrism_religion
}
is_valid_showing_failures_only = {
is_available_adult = yes
}
is_valid = {
employs_court_position = court_astrologer_court_position
}
effect = {
if = {
limit = {
culture ?= { has_cultural_pillar = ethos_spiritual }
}
custom_tooltip = {
text = mpo_divination_decision_tt_spiritual
trigger_event = court_astrologer_events.0001
}
}
else = {
custom_tooltip = {
text = mpo_divination_decision_tt
trigger_event = court_astrologer_events.0001
}
}
}
ai_check_interval_by_tier = {
barony = 0
county = 120
duchy = 120
kingdom = 60
empire = 60
hegemony = 60
}
ai_potential = {
is_at_war = no
ai_greed < medium_positive_ai_value
short_term_gold > ai_war_chest_desired_gold_value
war_chest_gold >= halved_ai_war_chest_gold_maximum
}
ai_will_do = {
base = 100
}
}

View file

@ -0,0 +1,631 @@
#Build Pleasure Dome
### Devise Pleasure Dome ###
mpo_pleasure_dome_decision = {
picture = {
reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds"
}
decision_group_type = nomad_minor
sort_order = 80
is_shown = {
has_mpo_dlc_trigger = yes
OR = {
government_has_flag = government_is_nomadic
has_trait = nomadic_philosophy
}
NOT = { has_global_variable = devised_pleasure_dome }
culture = {
OR = {
has_cultural_pillar = heritage_mongolic
has_cultural_pillar = heritage_turkic
}
}
}
is_valid_showing_failures_only = {
custom_tooltip = {
text = mpo_pleasure_dome_no_barony_tt
any_held_title = {
tier = tier_barony
title_province = {
has_special_building_slot = no
}
is_capital_barony = yes
holder = root
is_leased_out = no
title_province = { geographical_region = world_steppe }
}
}
}
is_valid = {
prestige_level >= very_high_prestige_level
highest_held_title_tier = tier_empire
trigger_if = {
limit = {
government_has_flag = government_is_nomadic
}
custom_tooltip = {
text = dominate_title_trigger_dominance_4
OR = {
has_realm_law = nomadic_authority_5
has_realm_law = nomadic_authority_4
}
}
}
trigger_if = {
limit = {
government_has_flag = government_is_steppe_admin
}
custom_tooltip = {
text = mpo_pleasure_dome_decision_steppe_admin
OR = {
has_realm_law = meritocratic_bureaucracy_2
has_realm_law = meritocratic_bureaucracy_3
}
}
}
}
cost = {
treasury_or_gold = {
value = massive_treasury_or_gold_value
}
prestige = massive_prestige_value
herd = {
value = 0
if = {
limit = {
government_has_flag = government_is_nomadic
}
add = 2000
}
}
influence = {
value = 0
if = {
limit = {
government_has_flag = government_is_steppe_admin
}
add = 700
}
}
}
widget = {
controller = create_holy_order
barony_valid = {
trigger_if = {
limit = { exists = this }
title_province = {
has_special_building_slot = no
}
is_capital_barony = yes
holder = scope:ruler
is_leased_out = no
}
}
}
effect = {
send_interface_toast = {
type = event_toast_effect_good
title = mpo_pleasure_dome_slot_added.toast
if = {
limit = { exists = scope:barony }
custom_tooltip = {
text = mpo_add_pleasure_dome_effect_tt
scope:barony.title_province = { add_special_building = pleasure_dome }
}
}
}
custom_description_no_bullet = { text = mpo_pleasure_dome_barony_decision_tt }
set_global_variable = {
name = devised_pleasure_dome
value = yes
}
}
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 0
empire = 60
hegemony = 60
}
ai_potential = {
is_at_war = no
gold >= 1500
}
ai_will_do = {
base = 100
}
}
##Paiza decisions
#Starting decision, establish the system
### Establish Paiza System ###
mpo_establish_paiza_system_decision = {
picture = {
reference = "gfx/interface/illustrations/event_scenes/mpo_rural_village_asian.dds"
}
decision_group_type = nomad_major
sort_order = 80
is_shown = {
has_mpo_dlc_trigger = yes
government_has_flag = government_is_nomadic
NOT = { has_character_flag = established_paiza_system }
exists = situation:the_great_steppe
any_character_situation = {
this = situation:the_great_steppe
}
OR = {
has_realm_law = nomadic_authority_2
has_realm_law = nomadic_authority_3
has_realm_law = nomadic_authority_4
has_realm_law = nomadic_authority_5
}
}
is_valid = {
culture ?= {
has_innovation = innovation_ledger
}
is_independent_ruler = yes
custom_tooltip = {
text = mpo_establish_paiza_system_decision_is_gurkhan
exists = situation:the_great_steppe
this = situation:the_great_steppe.situation_top_herd
}
OR = {
has_realm_law = nomadic_authority_4
has_realm_law = nomadic_authority_5
}
}
is_valid_showing_failures_only = {
trigger_if = {
limit = {
exists = global_var:global_established_paiza_system
}
custom_tooltip = {
text = mpo_establish_paiza_system_decision.paiza_recently_established
subject = global_var:global_established_paiza_system
NAND = {
global_var:global_established_paiza_system ?= {
is_alive = yes
has_realm_law = nomadic_authority_5
}
}
}
}
}
cost = {
gold = {
value = 0
if = {
limit = {
has_treasury = no
}
add = massive_prestige_value
}
}
treasury = {
value = 0
if = {
limit = {
has_treasury = yes
}
add = 250
}
}
herd = {
value = 2000
}
}
effect = {
add_character_flag = established_paiza_system
set_global_variable = {
name = global_established_paiza_system
value = root
years = 8
}
custom_tooltip = mpo_establish_paiza_system_decision.grant_paiza_interaction_unlocked
custom_tooltip = mpo_establish_paiza_system_decision.request_paiza_interaction_unlocked
custom_tooltip = mpo_establish_paiza_system_decision.paiza_obedient
custom_tooltip = mpo_establish_paiza_system_decision.call_for_merchants_decision_unlocked
custom_tooltip = mpo_establish_paiza_system_decision.leverage_khan_authority_unlocked
custom_tooltip = mpo_establish_paiza_system_decision.paiza_abuse_authority_unlocked
if = { #populating the world with paizas
limit = {
is_ai = yes
}
ai_paiza_giveaway_effect = yes
ai_paiza_giveaway_effect = yes
ai_paiza_giveaway_effect = yes
ai_paiza_giveaway_effect = yes
}
trigger_event = mpo_decisions_events.0099
}
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 10
empire = 10
hegemony = 10
}
ai_will_do = {
base = 100
}
}
### Summon Wealthy Visitors: Paiza ###
mpo_call_for_merchants_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/fp3_decision_tax_collector.dds"
}
decision_group_type = nomad_major
sort_order = 80
is_shown = {
has_mpo_dlc_trigger = yes
government_has_flag = government_is_nomadic
has_character_flag = established_paiza_system
}
is_valid = {
custom_tooltip = {
text = mpo_call_for_merchants_decision_is_gurkhan
exists = situation:the_great_steppe
this = situation:the_great_steppe.situation_top_herd
}
OR = {
has_realm_law = nomadic_authority_4
has_realm_law = nomadic_authority_5
}
trigger_if = {
limit = {
is_ai = no
}
domicile ?= {
has_domicile_building_or_higher = trade_yurt_04
}
}
trigger_else = {
always = yes
}
gold >= 800
}
is_valid_showing_failures_only = {
custom_tooltip = {
text = mpo_call_for_merchants_decision.robbed_merchants
NOT = {
has_character_modifier = mpo_paiza_robbed_merchants
}
}
}
cost = {
prestige = {
value = major_prestige_value
}
}
cooldown = { years = 4 }
effect = {
trigger_event = mpo_decisions_events.2139
custom_tooltip = mpo_call_for_merchants_decision.merchant_will_arrive
custom_tooltip = mpo_call_for_merchants_decision.gold_needed
custom_tooltip = mpo_call_for_merchants_decision.buildings
}
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 100
kingdom = 100
empire = 100
hegemony = 100
}
ai_will_do = {
base = 0
modifier = {
add = 8
domicile ?= {
has_domicile_building_or_higher = merchant_yurt_01
}
}
modifier = {
add = 8
domicile ?= {
has_domicile_building_or_higher = herd_trade_yurt_01
}
}
modifier = {
add = 8
domicile ?= {
has_domicile_building_or_higher = fertility_trade_yurt_01
}
}
modifier = {
add = 8
domicile ?= {
has_domicile_building_or_higher = knight_trade_yurt_01
}
}
modifier = {
add = 20
gold >= 2400
}
}
ai_potential = {
is_at_war = no
ai_greed >= medium_positive_ai_value
}
}
### Summon Wealthy Visitors: Local Offers ###
mpo_call_for_merchants_small_decision = {
picture = {
reference = "gfx/interface/illustrations/decisions/fp3_decision_tax_collector.dds"
}
decision_group_type = nomad_minor
sort_order = 80
is_shown = {
has_mpo_dlc_trigger = yes
government_has_flag = government_is_nomadic
NOT = {
has_character_flag = established_paiza_system
}
}
is_valid = {
domicile ?= {
has_domicile_building_or_higher = trade_yurt_01
}
gold >= 400
}
is_valid_showing_failures_only = {
custom_tooltip = {
text = mpo_call_for_merchants_decision.robbed_merchants
NOT = {
has_character_modifier = mpo_paiza_robbed_merchants
}
}
}
cost = {
prestige = {
value = major_prestige_value
}
}
cooldown = { years = 8 }
effect = {
trigger_event = mpo_decisions_events.2139
custom_tooltip = mpo_call_for_merchants_decision.merchant_will_arrive_smol
custom_tooltip = mpo_call_for_merchants_decision.gold_needed_smol
custom_tooltip = mpo_call_for_merchants_decision.buildings
}
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 100
kingdom = 100
empire = 100
hegemony = 100
}
ai_will_do = {
base = 0
modifier = {
add = 4
domicile ?= {
has_domicile_building_or_higher = merchant_yurt_01
}
}
modifier = {
add = 4
domicile ?= {
has_domicile_building_or_higher = herd_trade_yurt_01
}
}
modifier = {
add = 4
domicile ?= {
has_domicile_building_or_higher = fertility_trade_yurt_01
}
}
modifier = {
add = 4
domicile ?= {
has_domicile_building_or_higher = knight_trade_yurt_01
}
}
modifier = {
add = 20
gold >= 1200
}
}
ai_potential = {
is_at_war = no
ai_greed >= medium_positive_ai_value
}
}
### Abuse Gurkhan's Authority ###
mpo_abuse_authority_paiza_decision = {
picture = {
reference = "gfx/interface/illustrations/event_scenes/mpo_camp_steppe.dds"
}
decision_group_type = nomad_major
sort_order = 80
is_shown = {
has_mpo_dlc_trigger = yes
is_imprisoned = no
any_character_artifact = {
root = { can_benefit_from_artifact = prev }
exists = var:paiza_patron
NOT = {
root = var:paiza_patron
var:paiza_patron = {
is_at_war_with = root
}
}
}
}
is_valid = {
prestige_level >= 2
trigger_if = {
limit = {
has_character_flag = no_more_paiza_abuse
}
custom_tooltip = {
text = mpo_abuse_authority_paiza_decision.no_more_paiza_abuse
NOT = {
has_character_flag = no_more_paiza_abuse
}
}
}
}
is_valid_showing_failures_only = {
custom_tooltip = {
text = mpo_abuse_authority_paiza_decision.paiza_patron_not_topdog
any_character_artifact = {
root = { can_benefit_from_artifact = prev }
exists = var:paiza_patron
var:paiza_patron ?= {
is_gurkhan = yes
}
}
}
custom_tooltip = {
text = mpo_abuse_authority_paiza_decision.nothing_to_abuse
location ?= {
duchy ?= {
any_de_jure_county = {
county_ready_for_abuse_trigger = yes
}
}
}
}
}
effect = {
trigger_event = mpo_decisions_events.0110
show_as_tooltip = {
mpo_abuse_authority_county_effect = yes
random_character_artifact = {
limit = {
root = { can_benefit_from_artifact = prev }
exists = var:paiza_patron
}
var:paiza_patron ?= {
save_temporary_scope_as = paiza_patron
}
root = {
mpo_paiza_abuse_counter_effect = {
PAIZA_PATRON = scope:paiza_patron
PAIZA_ABUSER = root
}
}
}
}
}
cooldown = { years = 2 }
cost = {
prestige = {
value = major_prestige_value
}
}
ai_check_interval_by_tier = {
barony = 0
county = 100
duchy = 10
kingdom = 10
empire = 10
hegemony = 10
}
ai_will_do = {
base = -20
modifier = {
add = 10
has_trait = greedy
}
modifier = {
add = 10
has_trait = wrathful
}
modifier = {
add = 10
has_trait = ambitious
}
modifier = {
add = {
value = max_herd
subtract = herd
divide = max_herd
multiply = 20
}
domicile ?= {
herd <= max_herd
}
}
modifier = {
add = -25
var:paiza_patron ?= {
domicile ?= { has_domicile_parameter = nomad_yurt_paiza_abuse_less_likely_lvl_3 }
}
}
modifier = {
add = -15
var:paiza_patron ?= {
domicile ?= { has_domicile_parameter = nomad_yurt_paiza_abuse_less_likely_lvl_2 }
}
}
modifier = {
add = -10
var:paiza_patron ?= {
domicile ?= { has_domicile_parameter = nomad_yurt_paiza_abuse_less_likely_lvl_1 }
}
}
}
}

View file

@ -0,0 +1,136 @@
##Pax Mongolica
### Peace of the Great Khan ###
mpo_pax_mongolica_decision = {
picture = {
reference = "gfx/interface/illustrations/event_scenes/mpo_city_steppe.dds"
}
decision_group_type = nomad_major
sort_order = 120
is_shown = {
government_has_flag = government_is_nomadic
exists = situation:the_great_steppe
any_character_situation = {
this = situation:the_great_steppe
}
NOT = { has_variable = pax_mongolica_var }
}
is_valid = {
dynasty ?= { has_dynasty_perk = mpo_nomad_legacy_5 }
OR = {
has_realm_law = nomadic_authority_4
has_realm_law = nomadic_authority_5
}
}
is_valid_showing_failures_only = {
is_available_adult = yes
}
cost = {
gold = {
value = 0
if = {
limit = {
has_treasury = no
}
add = monumental_gold_value
}
}
treasury = {
value = 0
if = {
limit = {
has_treasury = yes
}
add = monumental_gold_value
}
}
prestige = {
value = massive_prestige_value
}
}
effect = {
set_variable = pax_mongolica_var
# Rewards given out in the event
show_as_tooltip = {
add_character_modifier = {
modifier = pax_mongolica_ruler_modifier # Forever
}
custom_tooltip = pax_mongolica_every_county_in_steppe_tt
every_realm_county = {
limit = {
is_landless_type_title = no
any_county_situation = { this = situation:the_great_steppe }
holder.dynasty = root.dynasty
}
random_county_province = {
limit = { has_holding = no }
set_holding_type = city_holding
}
}
if = {
limit = {
NOT = {
culture = { has_innovation = innovation_city_planning }
}
}
culture = { add_innovation = innovation_city_planning }
}
else_if = {
limit = {
NOT = {
culture = { has_innovation = innovation_development_01 }
}
}
culture = { add_innovation = innovation_development_01 }
}
else = {
culture = { add_random_innovation = culture_group_civic }
}
}
trigger_event = mpo_decisions_events.0400
}
ai_check_interval_by_tier = {
barony = 0
county = 0
duchy = 0
kingdom = 0
empire = 24
hegemony = 24
}
ai_potential = {
prestige >= massive_prestige_value
}
ai_will_do = {
base = 30
modifier = {
add = -100
NOT = {
prestige >= {
value = monumental_gold_value
multiply = 2
}
}
}
modifier = {
add = -100
NOT = {
prestige >= {
value = massive_prestige_value
multiply = 2
}
}
}
modifier = {
add = 50
highest_held_title_tier >= tier_empire
}
}
}