fixes big evebts abd on actions plus mroe

This commit is contained in:
Greekman 2026-11-21 19:27:08 +00:00
parent c9d520e5a1
commit bce2aa31a1
207 changed files with 100377 additions and 9296 deletions

View file

@ -228,16 +228,16 @@ on_county_occupied = {
change_county_control = county_control_loss_value
random_list = {
25 = {
change_development_progress_with_overflow = -10
change_prosperity_progress_with_overflow = -10
}
25 = {
change_development_progress_with_overflow = -15
change_prosperity_progress_with_overflow = -15
}
25 = {
change_development_progress_with_overflow = -20
change_prosperity_progress_with_overflow = -20
}
25 = {
change_development_progress_with_overflow = -25
change_prosperity_progress_with_overflow = -25
}
}
}
@ -396,6 +396,7 @@ on_siege_completion = {
siege.0032 # Chance to steal an artifact from holy site
faction_demand.1010 #Reinforce populist rebels
faction_demand.1110 #Reinforce peasant rebels
gdp_burgher.0030
siege.1001 #Someone I care about was immured here...
intrigue_scheming.1804 # I had genuine/fake info about the defenses. Follows up intrigue_scheming.1801 so this won't actually trigger after every siege
}
@ -421,7 +422,7 @@ on_siege_completion = {
title = successful_sieges_give_piety_toast
left_icon = root
add_piety = minor_piety_gain
scope:barony.county = { change_development_progress_with_overflow = -2 }
scope:barony.county = { change_prosperity_progress_with_overflow = -2 }
}
}
@ -435,7 +436,7 @@ on_siege_completion = {
title = tenet_aniconism_siege_destruction_toast
left_icon = root
add_piety = minor_piety_gain
scope:barony.county = { change_development_progress_with_overflow = -3 }
scope:barony.county = { change_prosperity_progress_with_overflow = -3 }
}
}
@ -453,7 +454,7 @@ on_siege_completion = {
title = extinction_of_dharma_siege_toast
left_icon = root
add_piety = minor_piety_gain
scope:barony.county = { change_development_progress_with_overflow = -3 }
scope:barony.county = { change_prosperity_progress_with_overflow = -3 }
}
}
@ -477,7 +478,7 @@ on_siege_completion = {
if = {
limit = {
has_legend_chapter_trigger = { CHAPTER = extra_deed }
scope:barony.county.development_level >= good_development_level
scope:barony.county.prosperity_level >= good_prosperity_level
NOT = {
promoted_legend ?= {
has_legend_chapter = {
@ -687,9 +688,21 @@ on_siege_looting = {
domicile ?= { change_provisions = adventurer_siege_provisions_amount }
}
}
add_province_modifier = {
modifier = recently_looted_modifier
years = 5
trade_market = {
add_trade_market_modifier = {
modifier = gdp_market_recently_sieged_capacity_modifier
years = 5
}
}
county = {
if = {
limit = {
holder = {
NOT = { has_perk = a_mans_home_perk }
}
}
change_county_control = -5
}
}
}
@ -710,6 +723,26 @@ on_siege_looting = {
tgp_treasury_raided_effect = yes
}
}
scope:barony.trade_market = {
every_character_in_market = {
limit = { government_allows = profit_trade_routes }
send_interface_message = {
type = msg_raid_lost
title = msg_army_siege_affects_trade_title
left_icon = root
right_icon = scope:barony
desc = msg_army_siege_affects_trade_desc
show_as_tooltip = {
scope:barony.trade_market = {
add_trade_market_modifier = {
modifier = gdp_market_recently_sieged_capacity_modifier
years = 5
}
}
}
}
}
}
}
}
@ -762,6 +795,134 @@ on_army_enter_province = {
}
}
}
# Army movement damages Trade
if = {
limit = {
# Prevent same army owner affecting many markets in quick succession
NOT = { exists = var:army_movement_trade_market_cooldown }
scope:army ?= {
# Prevent same army affecting many markets in quick succession
NOT = { exists = var:army_movement_trade_market_cooldown }
# Ensure tiny armies are not messing up trade
army_size > 250
location = {
barony ?= {
# Prevent same market being affected too often
NOT = { exists = trade_market.var:army_movement_trade_market_cooldown }
# Ignore occupied land
barony_controller != scope:army_owner
}
# Prevent damaging own or allied markets directly (overlapping is fine)
county.holder ?= {
save_temporary_scope_as = county_holder
OR = {
root = { is_causing_raid_hostility_towards = scope:county_holder }
is_at_war_with = root
}
}
}
}
}
random = {
chance = 1
modifier = {
add = {
value = scope:army.army_size
multiply = 0.005
max = 10
}
}
modifier = {
factor = 0.5
scope:army.location.barony.trade_market = { has_trade_market_modifier = gdp_market_army_movement_capacity_modifier }
}
scope:army = {
location = {
save_scope_as = army_province
barony.trade_market = {
save_scope_as = trade_market
random_list = {
1 = {
trigger = {
any_trade_good_with_surplus = {}
}
random_trade_good_with_surplus = { save_scope_as = trade_good }
}
1 = {}
}
if = { # Increase price of a locally traded good
limit = { exists = scope:trade_good }
add_trade_good_price_modifier = {
type = buy_add
trade_good_type = scope:trade_good
value = 0.01
years = 5
}
every_character_in_market = {
limit = { government_allows = profit_trade_routes }
send_interface_message = {
type = msg_army_affects_trade
title = msg_army_movement_affects_trade_title
left_icon = root
right_icon = scope:army.location.barony
desc = msg_army_movement_affects_trade_desc
show_as_tooltip = {
scope:trade_market = {
add_trade_good_price_modifier = {
type = buy_add
trade_good_type = scope:trade_good
value = 0.01
years = 5
}
}
}
}
}
}
else = { # Disrupt local prices across the market
add_trade_market_modifier = {
modifier = gdp_market_army_movement_capacity_modifier
years = 5
}
every_character_in_market = {
limit = { government_allows = profit_trade_routes }
send_interface_message = {
type = msg_army_affects_trade
title = msg_army_movement_affects_trade_title
left_icon = root
right_icon = scope:army.location.barony
desc = msg_army_movement_affects_trade_desc
show_as_tooltip = {
scope:trade_market = {
add_trade_market_modifier = {
modifier = gdp_market_army_movement_capacity_modifier
years = 5
}
}
}
}
}
}
# Prevent same trade market being affected too often
set_variable = {
name = army_movement_trade_market_cooldown
months = 6
}
}
# Prevent same army affecting trade markets too often
set_variable = {
name = army_movement_trade_market_cooldown
months = 6
}
}
}
# Prevent same army owner affecting trade markets too often
set_variable = {
name = army_movement_trade_market_cooldown
months = 6
}
}
}
}
}
@ -839,6 +1000,15 @@ on_raid_action_completion = {
type = msg_raid_completed
left_icon = scope:county.holder
right_icon = scope:barony
desc = msg_raid_completed_desc
show_as_tooltip = {
scope:barony.trade_market = {
add_trade_market_modifier = {
modifier = gdp_market_recently_raided_capacity_modifier
years = 5
}
}
}
}
if = {
limit = {
@ -880,10 +1050,18 @@ on_raid_action_completion = {
}
}
}
scope:barony.title_province = {
add_province_modifier = {
modifier = recently_looted_modifier
years = 5
scope:barony = {
title_province = {
add_province_modifier = {
modifier = recently_looted_modifier
years = 5
}
}
trade_market = {
add_trade_market_modifier = {
modifier = gdp_market_recently_raided_capacity_modifier
years = 5
}
}
county = {
if = {
@ -895,16 +1073,16 @@ on_raid_action_completion = {
change_county_control = raid_county_control_loss_value
random_list = {
25 = {
change_development_progress_with_overflow = -2
change_prosperity_progress_with_overflow = -2
}
25 = {
change_development_progress_with_overflow = -3
change_prosperity_progress_with_overflow = -3
}
25 = {
change_development_progress_with_overflow = -4
change_prosperity_progress_with_overflow = -4
}
25 = {
change_development_progress_with_overflow = -5
change_prosperity_progress_with_overflow = -5
}
}
}
@ -922,6 +1100,15 @@ on_raid_action_completion = {
type = msg_raid_lost
left_icon = scope:raider
right_icon = scope:barony
desc = msg_raid_lost_desc
show_as_tooltip = {
scope:barony.trade_market = {
add_trade_market_modifier = {
modifier = gdp_market_recently_raided_capacity_modifier
years = 5
}
}
}
}
}

View file

@ -37,10 +37,18 @@ on_barter_action_completion = {
show_as_tooltip = {
add_loot = scope:value
scope:barony.title_province = {
add_province_modifier = {
modifier = recently_bartered_modifier
years = 5
scope:barony = {
title_province = {
add_province_modifier = {
modifier = recently_bartered_modifier
years = 5
}
}
trade_market = {
add_trade_market_modifier = {
modifier = gdp_market_bartering_trade_modifier
years = 5
}
}
}
}
@ -81,11 +89,18 @@ on_barter_action_completion = {
desc = msg_barter_completed_holder_desc
left_icon = scope:barterer
right_icon = scope:barony
scope:barony.title_province = {
add_province_modifier = {
modifier = recently_bartered_modifier
years = 5
scope:barony = {
title_province = {
add_province_modifier = {
modifier = recently_bartered_modifier
years = 5
}
}
trade_market = {
add_trade_market_modifier = {
modifier = gdp_market_bartering_trade_modifier
years = 5
}
}
}
}

View file

@ -183,44 +183,45 @@ on_combat_end_winner = {
any_character_artifact = {
is_equipped = yes
artifact_slot_type = primary_armament
NOT = { has_variable = artifact_battles_won_var }
}
}
}
every_side_knight = {
random_character_artifact = {
limit = {
is_equipped = yes
artifact_slot_type = primary_armament
NOT = { has_variable = artifact_battles_won_var }
if = {
limit = {
any_side_knight = {
any_character_artifact = {
is_equipped = yes
artifact_slot_type = primary_armament
NOT = { has_variable = artifact_battles_won_var }
}
}
set_variable = {
name = artifact_battles_won_var
value = 1
}
every_side_knight = {
random_character_artifact = {
limit = {
is_equipped = yes
artifact_slot_type = primary_armament
NOT = { has_variable = artifact_battles_won_var }
}
set_variable = {
name = artifact_battles_won_var
value = 1
}
}
}
}
}
else_if = {
limit = {
any_side_knight = {
any_character_artifact = {
is_equipped = yes
artifact_slot_type = primary_armament
has_variable = artifact_battles_won_var
}
}
}
every_side_knight = {
random_character_artifact = {
limit = {
is_equipped = yes
artifact_slot_type = primary_armament
has_variable = artifact_battles_won_var
}
change_variable = {
name = artifact_battles_won_var
add = 1
else = {
every_side_knight = {
random_character_artifact = {
limit = {
is_equipped = yes
artifact_slot_type = primary_armament
has_variable = artifact_battles_won_var
}
change_variable = {
name = artifact_battles_won_var
add = 1
}
}
}
}
@ -280,44 +281,45 @@ on_combat_end_winner = {
any_character_artifact = {
is_equipped = yes
artifact_slot_type = armor
NOT = { has_variable = artifact_battles_won_var }
}
}
}
every_side_knight = {
random_character_artifact = {
limit = {
is_equipped = yes
artifact_slot_type = armor
NOT = { has_variable = artifact_battles_won_var }
if = {
limit = {
any_side_knight = {
any_character_artifact = {
is_equipped = yes
artifact_slot_type = armor
NOT = { has_variable = artifact_battles_won_var }
}
}
set_variable = {
name = artifact_battles_won_var
value = 1
}
every_side_knight = {
random_character_artifact = {
limit = {
is_equipped = yes
artifact_slot_type = armor
NOT = { has_variable = artifact_battles_won_var }
}
set_variable = {
name = artifact_battles_won_var
value = 1
}
}
}
}
}
else_if = {
limit = {
any_side_knight = {
any_character_artifact = {
is_equipped = yes
artifact_slot_type = armor
has_variable = artifact_battles_won_var
}
}
}
every_side_knight = {
random_character_artifact = {
limit = {
is_equipped = yes
artifact_slot_type = armor
has_variable = artifact_battles_won_var
}
change_variable = {
name = artifact_battles_won_var
add = 1
else = {
every_side_knight = {
random_character_artifact = {
limit = {
is_equipped = yes
artifact_slot_type = armor
has_variable = artifact_battles_won_var
}
change_variable = {
name = artifact_battles_won_var
add = 1
}
}
}
}
@ -431,7 +433,7 @@ on_combat_end_winner = {
value = {
value = 0
add = root.enemy_side.side_max_army_size
divide = 100
divide = 400
min = 5
}
}
@ -465,7 +467,7 @@ on_combat_end_winner = {
value = {
value = 0
add = root.enemy_side.side_max_army_size
divide = 100
divide = 400
min = 5
}
}
@ -482,6 +484,20 @@ on_combat_end_winner = {
every_side_commander = {
commander_trait_leveling_leveling_effect = { XP = 1 }
pam_miles_christi_fulfillment_from_combat_effect = yes
if = {
limit = { can_gain_military_career_merit_trigger = yes }
send_interface_message = {
type = msg_military_merit_gain
title = msg_military_merit_battle_won
left_icon = this
right_icon = root.enemy_side.side_primary_participant
change_merit = military_career_battle_commander_merit_value
}
}
}
every_side_knight = {
limit = { can_gain_military_career_merit_trigger = yes }
change_merit = military_career_battle_knight_merit_value
}
# Miles Christi holy weapon victories
@ -525,7 +541,7 @@ on_combat_end_winner = {
on_combat_end_loser = {
events = {
combat_event.0002 # Defeated commander loses shot at getting 'The Undefeated' nickname.
almohad.0003 # Check whether Ibn Tumert should die
# NEOW 2555: event not loaded. almohad.0003 # Check whether Ibn Tumert should die
fp1_shieldmaiden.0031 # Track shieldmaiden levelling.
combat_event.2111 # Battle Lost: glory goes down.
}
@ -696,8 +712,8 @@ on_combat_end_loser = {
modifier = {
factor = accolade_progress # scales with accolade progress
}
modifier = { # must have an eligible knight
NOT = {
if = {
limit = { # must have an eligible knight
root = {
any_side_knight = {
can_unlock_accolade_attribute_trigger = {
@ -706,42 +722,41 @@ on_combat_end_loser = {
}
}
}
factor = 0
}
save_scope_as = accolade_liege
set_variable = {
name = accolade_progress
value = 0
}
root = {
random_side_knight = {
limit = {
can_unlock_accolade_attribute_trigger = {
ATTRIBUTE = disciplinarian
}
}
weight = {
base = 1
modifier = {
add = 50
is_acclaimed = yes
}
}
save_scope_as = accolade_knight
save_scope_as = accolade_liege
set_variable = {
name = accolade_progress
value = 0
}
}
send_interface_message = {
type = msg_accolade_eligibility
title = accolade_disciplinarian_unlock.t
left_icon = scope:accolade_knight
right_icon = scope:accolade_liege
custom_tooltip = accolade_disciplinarian_unlock.tt
scope:accolade_knight = {
set_variable = {
name = disciplinarian_attribute_unlock
value = yes
root = {
random_side_knight = {
limit = {
can_unlock_accolade_attribute_trigger = {
ATTRIBUTE = disciplinarian
}
}
weight = {
base = 1
modifier = {
add = 50
is_acclaimed = yes
}
}
save_scope_as = accolade_knight
}
}
}
send_interface_message = {
type = msg_accolade_eligibility
title = accolade_disciplinarian_unlock.t
left_icon = scope:accolade_knight
right_icon = scope:accolade_liege
custom_tooltip = accolade_disciplinarian_unlock.tt
scope:accolade_knight = {
set_variable = {
name = disciplinarian_attribute_unlock
value = yes
}
}
}
}
}
}

View file

@ -10,6 +10,10 @@ on_death = {
add_character_flag = { flag = about_to_die_but_not_dead_yet_flag } # Used in perk calc
merchant_inspector_clear_specialized_market_effect = yes
burgher_clear_sponsor_links_effect = yes
# Legend inheritance
if = {
limit = {
@ -2414,9 +2418,39 @@ on_death = {
if = {
limit = { is_valid_for_legitimacy_change = yes }
add_legitimacy = massive_legitimacy_loss
}
}
### GDP ###
gdp_merchant_charter_patron_death_effect = yes
# NEOW 2555: historical Italian Guelph/Ghibelline succession disabled.
#Sort out the next Guelph & Ghibelline leader
# if = {
# limit = {
# exists = situation:guelph_ghibelline
# OR = {
# exists = var:guelph_leader
# exists = var:ghibelline_leader
# }
# }
# try_set_up_new_gg_leader_effect = yes
# }
# Allow the player to pick great schism stance when dying and becoming an heir that already has one
if = {
limit = {
is_ai = no
player_heir ?= {
has_variable = pam_schism_stance
}
}
player_heir = {
remove_variable = pam_schism_stance
}
}
# # PAM - Catalysts
# NEOW 2555: previously disabled PAM short-reign catalyst kept disabled.
# PAM - Catalysts
# if = {
# limit = {
# pam_head_of_rite_had_short_reign_trigger = yes

View file

@ -0,0 +1,29 @@
#On actions relating to maintenance and effects of Inspirations.
fp2_struggle_council_toledo_organize = {
random_events = {
100 = fp2_other_decisions.0700
}
fallback = fp2_struggle_council_toledo_fallback
}
fp2_struggle_council_toledo_attend = {
random_events = {
100 = fp2_other_decisions.0701
}
fallback = fp2_struggle_council_toledo_fallback
}
fp2_struggle_council_toledo_debate = {
random_events = {
100 = fp2_other_decisions.0702
}
fallback = fp2_struggle_council_toledo_fallback
}
fp2_struggle_council_toledo_fallback = {
events = {
# NEOW 2555: event not loaded. fp2_other_decisions.0703
}
}

View file

@ -1016,6 +1016,151 @@ on_game_start = {
}
# Silk & Silver: initialize NEOW merchant and republic rulers.
every_independent_ruler = {
if = {
limit = { has_gdp_dlc_trigger = yes }
### GDP MERCHANT SETUP ###
if = {
limit = { government_has_flag = government_is_merchant }
# add_gold cannot be negative, so wipe then grant instead of (50 - gold).
if = {
limit = { gold > 0 }
remove_short_term_gold = gold
}
add_gold = 50
if = {
limit = { prestige > 25 }
add_prestige = {
value = 25
subtract = prestige
}
}
save_temporary_scope_as = merchant_scope
# Set CoA
primary_title = {
set_coa = scope:merchant_scope.house
set_variable = { name = merchant_creation_reason value = flag:historical }
set_variable = gdp_starting_merchant_company
}
random_held_title = {
limit = { is_noble_family_title = yes }
set_coa = holder.top_liege.house
}
# And tally our numbers for performance purposes.
add_to_global_variable_list = {
name = merchants_tally
target = this.primary_title
}
# Ruler-designer merchants spawn on the selected county; snap them to that market's capital.
if = {
limit = {
is_from_ruler_designer = yes
exists = location.barony.trade_market.trade_market_owner.title_province
}
location.barony.trade_market.trade_market_owner.title_province = { save_temporary_scope_as = merchant_market_capital }
random_held_title = {
limit = { is_noble_family_title = yes }
set_capital_county = scope:merchant_market_capital.county
}
domicile ?= { move_domicile = scope:merchant_market_capital }
set_location = scope:merchant_market_capital
}
start_tributary_interaction_effect = {
TRIBUTARY = this
SUZERAIN = domicile.domicile_location.county.holder # county holder
}
# Players start with a clean slate and build their company from the ground up.
if = {
limit = {
is_ai = no
}
add_character_flag = free_starting_merchant_purpose_change
if = {
limit = {
OR = {
has_realm_law = company_purpose_artisan
has_realm_law = company_purpose_caravaneer
has_realm_law = company_purpose_creditor
}
}
add_realm_law_skip_effects = company_purpose_family
merchant_company_law_remove_purpose_effect = yes
}
if = {
limit = {
OR = {
has_realm_law = company_size_medium
has_realm_law = company_size_large
has_realm_law = company_size_huge
}
}
add_realm_law_skip_effects = company_size_small
}
}
# Starting company purposes.
if = {
limit = {
is_ai = yes
NOR = {
has_realm_law = company_purpose_artisan
has_realm_law = company_purpose_caravaneer
has_realm_law = company_purpose_creditor
}
}
# Set some starting Company purposes
switch = {
trigger = highest_skill
learning = { add_realm_law_skip_effects = company_purpose_artisan }
diplomacy = { add_realm_law_skip_effects = company_purpose_caravaneer }
martial = { add_realm_law_skip_effects = company_purpose_creditor }
intrigue = { add_realm_law_skip_effects = company_purpose_creditor }
}
# Courtiers.
trigger_event = gdp_merchant.1001
}
gdp_update_usury_reputation_effect = yes
trigger_event = gdp_merchant.1003
if = {
limit = { is_ai = yes }
set_starting_company_size_effect = yes
set_starting_company_acumen_effect = yes
}
}
### GDP REPUBLIC SETUP ###
else_if = {
limit = { government_has_flag = government_is_republic }
every_noble_family = {
# Ensure Noble Family CoA match House
set_coa = holder.house
holder ?= {
# Consistent starting cash
if = {
limit = { gold > 0 }
remove_short_term_gold = gold
}
add_gold = 50
save_scope_as = nf_holder
if = {
limit = { is_landed = yes }
capital_province = { save_scope_as = domicile_location }
}
# Ensure holders of historical noble family titles are the default house heads
house ?= {
if = {
limit = { house_head != scope:nf_holder }
set_house_head = scope:nf_holder
}
}
}
}
}
}
}
# To prevent the Season Changes event from triggering on game start
situation:the_great_steppe ?= {
every_participant_group = {
@ -1033,246 +1178,54 @@ on_game_start = {
limit = {
has_cp3_dlc_trigger = yes
}
title:b_barcelona.title_province = { add_special_building_slot = drassanes_01 } #1892
title:b_merv.title_province = { add_special_building = kyz_kala_01 } #4238
if = { limit = { game_start_date >= 1178.10.1 } title:b_cluny.title_province = { add_special_building = cluny_abbey_02 } } #2304
else_if = { limit = { game_start_date >= 1066.9.15 } title:b_cluny.title_province = { add_special_building = cluny_abbey_01 } }
else = { title:b_cluny.title_province = { add_special_building_slot = cluny_abbey_01 } }
title:b_york.title_province = { add_special_building = york_walls_01 } #1595
title:b_damascus.title_province = { add_special_building = damascus_mosque_01 } #5924
title:b_lhasa.title_province = { add_special_building = jokhang_01 } #9237
if = { limit = { game_start_date >= 1178.10.1 } title:b_schmalkalden.title_province = { add_special_building = wartburg_01 } } #3010
else = { title:b_schmalkalden.title_province = { add_special_building_slot = wartburg_01 } }
title:b_lalibela.title_province = { add_special_building_slot = beta_giyorgis_01 } #8301
if = { limit = { game_start_date >= 1066.9.15 } title:b_novgorod.title_province = { add_special_building = holy_wisdom_01 } } #5137
else = { title:b_novgorod.title_province = { add_special_building_slot = holy_wisdom_01 } }
title:b_kano.title_province = { add_special_building_slot = kano_walls_01 } #6519
title:b_somapur.title_province = { add_special_building = somapura_university_01 } #848
if = { limit = { game_start_date >= 1178.10.1 } title:b_firenze.title_province = { add_special_building = duomo_florence_02 } } #2543
else = { title:b_firenze.title_province = { add_special_building = duomo_florence_01 } }
title:b_konarak.title_province = { add_special_building_slot = konark_temple_01 } #928
title:b_fes.title_province = { add_special_building = al_qarawiyyin_university_01 } #4694
title:b_kairouan.title_province = { add_special_building = kairouan_basins_01 } #4594
title:b_al-ghaba.title_province = { add_special_building = ghana_palace_01 } #6628 #NOTE: likely existed since the 8th, but earliest (only) source on palace is from 1068
title:b_visegrad_hun.title_province = { add_special_building_slot = visegrad_castle_01 } #3803
if = { limit = { game_start_date >= 1161.9.15 } title:b_leczyca.title_province = { add_special_building = wawel_cathedral_01 } } #4924 #Date of consecreation of Archcollegiate Church of St. Mary and St. Alexius in Tum
else = { title:b_leczyca.title_province = { add_special_building_slot = wawel_cathedral_01 } }
title:b_vatapi.title_province = { add_special_building = vatapi_caves_01 } #1198
if = { limit = { game_start_date >= 1178.10.1 } title:b_jaisalmer.title_province = { add_special_building = jaisalmer_fort_01 } } #3387
else = { title:b_jaisalmer.title_province = { add_special_building_slot = jaisalmer_fort_01 } } #3387
title:b_barcelona.title_province = { add_special_district_slot = drassanes_01_district } #1892
title:b_merv.title_province = { add_special_district = kyz_kala_01_district } #4238
if = { limit = { game_start_date >= 1178.10.1 } title:b_cluny.title_province = { add_special_district = cluny_abbey_01_district special_district = { add_building = cluny_abbey_02 } } } #2304
else_if = { limit = { game_start_date >= 1066.9.15 } title:b_cluny.title_province = { add_special_district = cluny_abbey_01_district } }
else = { title:b_cluny.title_province = { add_special_district_slot = cluny_abbey_01_district } }
title:b_york.title_province = { add_special_district = york_walls_01_district } #1595
title:b_damascus.title_province = { add_special_district = damascus_mosque_01_district } #5924
title:b_lhasa.title_province = { add_special_district = jokhang_01_district } #9237
if = { limit = { game_start_date >= 1178.10.1 } title:b_schmalkalden.title_province = { add_special_district = wartburg_01_district } } #3010
else = { title:b_schmalkalden.title_province = { add_special_district_slot = wartburg_01_district } }
title:b_lalibela.title_province = { add_special_district_slot = beta_giyorgis_01_district } #8301
if = { limit = { game_start_date >= 1066.9.15 } title:b_novgorod.title_province = { add_special_district = holy_wisdom_01_district } } #5137
else = { title:b_novgorod.title_province = { add_special_district_slot = holy_wisdom_01_district } }
title:b_kano.title_province = { add_special_district_slot = kano_walls_01_district } #6519
title:b_somapur.title_province = { add_special_district = somapura_university_01_district } #848
if = { limit = { game_start_date >= 1178.10.1 } title:b_firenze.title_province = { add_special_district = duomo_florence_01_district } } #2543
else = { title:b_firenze.title_province = { add_special_district = duomo_florence_01_district } }
title:b_konarak.title_province = { add_special_district_slot = konark_temple_01_district } #928
title:b_fes.title_province = { add_special_district = al_qarawiyyin_university_01_district } #4694
title:b_kairouan.title_province = { add_special_district = kairouan_basins_01_district } #4594
title:b_al-ghaba.title_province = { add_special_district = ghana_palace_01_district } #6628 #NOTE: likely existed since the 8th, but earliest (only) source on palace is from 1068
title:b_visegrad_hun.title_province = { add_special_district_slot = visegrad_castle_01_district } #3803
if = { limit = { game_start_date >= 1161.9.15 } title:b_leczyca.title_province = { add_special_district = wawel_cathedral_01_district } } #4924 #Date of consecreation of Archcollegiate Church of St. Mary and St. Alexius in Tum
else = { title:b_leczyca.title_province = { add_special_district_slot = wawel_cathedral_01_district } }
title:b_vatapi.title_province = { add_special_district = vatapi_caves_01_district } #1198
if = { limit = { game_start_date >= 1178.10.1 } title:b_jaisalmer.title_province = { add_special_district = jaisalmer_fort_01_district } } #3387
else = { title:b_jaisalmer.title_province = { add_special_district_slot = jaisalmer_fort_01_district } } #3387
}
### RELIGIOUS THINGS ###
# Set up Holy Site Buildings to be buildable in Holy Sites
religion:islam_religion = {
every_faith = {
every_holy_site = {
limit = {
title_province = {
has_special_building_slot = no
}
}
title_province = {
add_special_building_slot = holy_site_mosque_01
}
}
}
}
religion:eastern_orthodox_religion = {
every_faith = {
every_holy_site = {
limit = {
title_province = {
has_special_building_slot = no
}
}
title_province = {
add_special_building_slot = holy_site_cathedral_01
}
}
}
}
religion:catholic_religion = {
every_faith = {
every_holy_site = {
limit = {
title_province = {
has_special_building_slot = no
}
}
title_province = {
add_special_building_slot = holy_site_cathedral_01
}
}
}
}
religion:protestant_religion = {
every_faith = {
every_holy_site = {
limit = {
title_province = {
has_special_building_slot = no
}
}
title_province = {
add_special_building_slot = holy_site_cathedral_01
}
}
}
}
religion:zoroastrianism_religion = {
every_faith = {
every_holy_site = {
limit = {
title_province = {
has_special_building_slot = no
}
}
title_province = {
add_special_building_slot = holy_site_fire_temple_01
}
}
}
}
religion:buddhism_religion = {
every_faith = {
every_holy_site = {
limit = {
title_province = {
has_special_building_slot = no
}
}
title_province = {
add_special_building_slot = holy_site_buddhist_grand_temple_01
}
}
}
}
# religion:shintoism_religion = {
# every_faith = {
# every_holy_site = {
# limit = {
# title_province = {
# has_special_building_slot = no
# }
# }
# title_province = {
# add_special_building_slot = holy_site_japanese_temple_01
# }
# }
# }
# }
# religion:taoism_religion = {
# every_faith = {
# every_holy_site = {
# limit = {
# title_province = {
# has_special_building_slot = no
# }
# }
# title_province = {
# add_special_building_slot = holy_site_chinese_temple_01
# }
# }
# }
# }
# religion:confucianism_religion = {
# every_faith = {
# every_holy_site = {
# limit = {
# title_province = {
# has_special_building_slot = no
# }
# }
# title_province = {
# add_special_building_slot = holy_site_chinese_temple_01
# }
# }
# }
# }
# every_religion_global = {
# limit = {
# OR = {
# this = religion:hinduism_religion
# this = religion:jainism_religion
# this = religion:tani_religion
# this = religion:bon_religion
# }
# }
# every_faith = {
# every_holy_site = {
# limit = {
# title_province = {
# has_special_building_slot = no
# }
# }
# title_province = {
# add_special_building_slot = holy_site_indian_grand_temple_01
# }
# }
# }
# }
# every_religion_global = {
# limit = {
# OR = {
# this = religion:satsana_phi_religion
# this = religion:dayawism_religion
# this = religion:hantuism_religion
# this = religion:satsana_phi_religion
# this = religion:kaharingan_religion
# this = religion:tolotang_religion
# this = religion:aluk_religion
# this = religion:dab_qhuas_religion
# this = religion:biliku_religion
# }
# }
# every_faith = {
# every_holy_site = {
# limit = {
# title_province = {
# has_special_building_slot = no
# }
# }
# title_province = {
# add_special_building_slot = holy_site_se_asia_pagan_temple_01
# }
# }
# }
# }
every_religion_global = {
limit = {
is_in_family = rf_pagan
}
every_faith = {
every_holy_site = {
limit = {
title_province = {
has_special_building_slot = no
}
}
title_province = {
add_special_building_slot = holy_site_pagan_grand_temple_01
}
}
}
}
every_religion_global = {
every_faith = {
every_holy_site = {
save_scope_as = holy_site_faith
every_holy_site_barony = {
limit = {
title_province = {
has_special_building_slot = no
has_special_district_slot = no
}
}
title_province = {
add_special_building_slot = holy_site_other_grand_temple_01
add_holy_site_fallback_special_district_slot_effect = { FAITH = scope:holy_site_faith }
}
}
}
}
# # If your capital on game start is Mecca, you get the Hajjaj trait (since you can't Hajj to your capital)
# If your capital on game start is Mecca, you get the Hajjaj trait (since you can't Hajj to your capital)
# title:b_makka.county.holder = {
# if = {
# limit = {
@ -1372,59 +1325,59 @@ on_game_start = {
title:b_fes.title_province = {
if = {
limit = {
has_special_building_slot = no #Depends on DLC
has_special_district_slot = no #Depends on DLC
}
add_special_building_slot = generic_university
add_special_district_slot = generic_university_district
}
}
title:b_somapur.title_province = {
if = {
limit = {
has_special_building_slot = no #Depends on DLC
has_special_district_slot = no #Depends on DLC
}
add_special_building_slot = generic_university
add_special_district_slot = generic_university_district
}
}
#title:b_bologna.title_province = { add_special_building_slot = generic_university } # Added in province history
title:b_salamanca.title_province = { add_special_building_slot = generic_university }
title:b_madrid.title_province = { add_special_building_slot = generic_university }
#title:b_oxford.title_province = { add_special_building_slot = generic_university } # Added in province history
title:b_cambridge.title_province = { add_special_building_slot = generic_university }
title:b_padua.title_province = { add_special_building_slot = generic_university }
title:b_coimbra.title_province = { add_special_building_slot = generic_university }
title:b_napoli.title_province = { add_special_building_slot = generic_university }
title:b_milano.title_province = { add_special_building_slot = generic_university }
title:b_vienna.title_province = { add_special_building_slot = generic_university }
title:b_praha.title_province = { add_special_building_slot = generic_university }
title:b_perugia.title_province = { add_special_building_slot = generic_university }
title:b_malappuram.title_province = { add_special_building_slot = generic_university }
title:b_janakpur.title_province = { add_special_building_slot = generic_university }
title:b_uppsala.title_province = { add_special_building_slot = generic_university }
title:b_montlhery.title_province = { add_special_building_slot = generic_university } # Technically should be Paris, but that's occupied by Notre Dame
title:b_qartajana.title_province = { add_special_building_slot = generic_university } # Technically should be Tunis, but that's occupied by a cathedral
title:b_wazwan.title_province = { add_special_building_slot = generic_university } # Technically should be Isfahan, but that's occupied by the Friday Mosque
title:b_sarsar.title_province = { add_special_building_slot = generic_university } # Technically should be Baghdad, but that's occupied by the House of Wisdom
title:b_speyer.title_province = { add_special_building_slot = generic_university } # 1350ish, should be in Heidelberg but that's a church
title:b_krakow.title_province = { add_special_building_slot = generic_university } # 1364
title:b_pisa.title_province = { add_special_building_slot = generic_university } # 1350ish
title:b_rostock.title_province = { add_special_building_slot = generic_university } # 1400ish
title:b_turin.title_province = { add_special_building_slot = generic_university } # 1400ish
title:b_ferrara.title_province = { add_special_building_slot = generic_university } # 1400ish
title:b_leipzig.title_province = { add_special_building_slot = generic_university } # 1400ish, a city holding
title:b_messina.title_province = { add_special_building_slot = generic_university } # 1400ish, should be in Catania but that's a church
#title:b_bologna.title_province = { add_special_district_slot = generic_university_district } # Added in province history
title:b_salamanca.title_province = { add_special_district_slot = generic_university_district }
title:b_madrid.title_province = { add_special_district_slot = generic_university_district }
#title:b_oxford.title_province = { add_special_district_slot = generic_university_district } # Added in province history
title:b_cambridge.title_province = { add_special_district_slot = generic_university_district }
title:b_padua.title_province = { add_special_district_slot = generic_university_district }
title:b_coimbra.title_province = { add_special_district_slot = generic_university_district }
title:b_napoli.title_province = { add_special_district_slot = generic_university_district }
title:b_milano.title_province = { add_special_district_slot = generic_university_district }
title:b_vienna.title_province = { add_special_district_slot = generic_university_district }
title:b_praha.title_province = { add_special_district_slot = generic_university_district }
title:b_perugia.title_province = { add_special_district_slot = generic_university_district }
title:b_malappuram.title_province = { add_special_district_slot = generic_university_district }
title:b_janakpur.title_province = { add_special_district_slot = generic_university_district }
title:b_uppsala.title_province = { add_special_district_slot = generic_university_district }
title:b_montlhery.title_province = { add_special_district_slot = generic_university_district } # Technically should be Paris, but that's occupied by Notre Dame
title:b_qartajana.title_province = { add_special_district_slot = generic_university_district } # Technically should be Tunis, but that's occupied by a cathedral
title:b_wazwan.title_province = { add_special_district_slot = generic_university_district } # Technically should be Isfahan, but that's occupied by the Friday Mosque
title:b_sarsar.title_province = { add_special_district_slot = generic_university_district } # Technically should be Baghdad, but that's occupied by the House of Wisdom
title:b_speyer.title_province = { add_special_district_slot = generic_university_district } # 1350ish, should be in Heidelberg but that's a church
title:b_krakow.title_province = { add_special_district_slot = generic_university_district } # 1364
title:b_pisa.title_province = { add_special_district_slot = generic_university_district } # 1350ish
title:b_rostock.title_province = { add_special_district_slot = generic_university_district } # 1400ish
title:b_turin.title_province = { add_special_district_slot = generic_university_district } # 1400ish
title:b_ferrara.title_province = { add_special_district_slot = generic_university_district } # 1400ish
title:b_leipzig.title_province = { add_special_district_slot = generic_university_district } # 1400ish, a city holding
title:b_messina.title_province = { add_special_district_slot = generic_university_district } # 1400ish, should be in Catania but that's a church
if = {
limit = {
has_cp3_dlc_trigger = yes
}
title:b_sitges.title_province = { add_special_building_slot = generic_university } # Should be Barcelona but that location has another building now
title:b_sitges.title_province = { add_special_district_slot = generic_university_district } # Should be Barcelona but that location has another building now
}
else = {
title:b_barcelona.title_province = { add_special_building_slot = generic_university } # 1450ish, but still fun to build
title:b_barcelona.title_province = { add_special_district_slot = generic_university_district } # 1450ish, but still fun to build
}
title:b_dumbarton.title_province = { add_special_building_slot = generic_university } # 1450ish, but still fun to build
title:b_bidar.title_province = { add_special_building_slot = generic_university } # 1450ish, but still fun to build
title:b_dumbarton.title_province = { add_special_district_slot = generic_university_district } # 1450ish, but still fun to build
title:b_bidar.title_province = { add_special_district_slot = generic_university_district } # 1450ish, but still fun to build
title:b_changsha.title_province = {
add_special_building_slot = generic_university
add_special_district_slot = generic_university_district
}
### GREAT WALL OF CHINA ###
@ -2755,7 +2708,7 @@ on_game_start = {
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:sichuan_myanmar_earthquake_region }
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:south_china_coastaline_earthquake_region }
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:north_china_earthquake_region }
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:mongolia_baikal_earthquake_region }
# add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:mongolia_baikal_earthquake_region } # NEOW 2555: Mongolian region not in mod map
add_to_global_variable_list = { name = earthquake_region_list target = geographical_region:central_asian_earthquake_region }
### TGP Flood Regions
@ -2792,7 +2745,7 @@ on_game_start = {
add_to_global_variable_list = { name = flood_region_list target = geographical_region:yangtze_river_region }
add_to_global_variable_list = { name = flood_region_list target = geographical_region:yellow_river_region }
##### HISTORICAL HOUSE RELATIONS - deliberately placed above blocs
tgp_setup_historical_house_relation_effect = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. tgp_setup_historical_house_relation_effect = yes
##### TGP JAPAN #####
if = {
limit = { has_tgp_dlc_trigger = yes }
@ -2847,6 +2800,12 @@ on_game_start = {
on_game_start_after_lobby = {
effect = {
disable_succession_calculation = yes
# Silk & Silver: spawn compatible merchants around NEOW player realms.
if = {
limit = { has_gdp_dlc_trigger = yes }
every_player = { gdp_create_starting_merchants_near_player_effect = yes }
}
# To prevent the Season Changes event from triggering on game start
situation:the_great_steppe ?= {
@ -3670,7 +3629,7 @@ on_game_start_after_lobby = {
# has_trait = dull
# has_trait = intellect_bad
# location.county ?= {
# development_level <= bad_development_level
# prosperity_level <= bad_prosperity_level
# }
# }
# }
@ -15811,7 +15770,7 @@ on_game_start_after_lobby = {
}
### DYNASTY TRACKING SETUP
japan_dynasty_tracker_setup_effect = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. japan_dynasty_tracker_setup_effect = yes
### TGP NOBLE FAMILIES & DOMICILE SETUP ###
@ -16144,15 +16103,15 @@ on_game_start_after_lobby = {
# }
every_in_list = {
list = holder_to_learn_chinese
tgp_learn_chinese_effect_game_start = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. tgp_learn_chinese_effect_game_start = yes
if = {
limit = { is_independent_ruler = yes }
every_noble_family = {
holder ?= {
tgp_learn_chinese_effect_game_start = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. tgp_learn_chinese_effect_game_start = yes
house = {
every_house_member = {
tgp_learn_chinese_effect_game_start = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. tgp_learn_chinese_effect_game_start = yes
}
}
}
@ -16176,7 +16135,7 @@ on_game_start_after_lobby = {
has_holding = yes
}
generate_building = yes
brewery_counter_start_effect = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. brewery_counter_start_effect = yes
}
every_domicile = {
limit = { exists = owner }
@ -16200,9 +16159,9 @@ on_game_start_after_lobby = {
owner.culture ?= { has_innovation = innovation_city_planning }
}
add_domicile_building = japanese_manor_main_02
add_random_internal_japanese_manor_building = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. add_random_internal_japanese_manor_building = yes
}
fill_external_japanese_manor_building_effect = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. fill_external_japanese_manor_building_effect = yes
}
east_asian_estate = {
if = {
@ -16238,57 +16197,57 @@ on_game_start_after_lobby = {
generate_building = yes
if = {
limit = {
county.development_level >= 8
county.prosperity_level >= 8
}
generate_building = yes
generate_building = yes
}
if = {
limit = {
county.development_level >= 10
county.prosperity_level >= 10
}
generate_building = yes
}
if = {
limit = {
county.development_level >= 12
county.prosperity_level >= 12
}
generate_building = yes
}
if = {
limit = {
county.development_level >= 14
county.prosperity_level >= 14
}
generate_building = yes
generate_building = yes
}
if = {
limit = {
county.development_level >= 16
county.prosperity_level >= 16
}
generate_building = yes
}
if = {
limit = {
county.development_level >= 18
county.prosperity_level >= 18
}
generate_building = yes
}
if = {
limit = {
county.development_level >= 20
county.prosperity_level >= 20
}
generate_building = yes
}
if = {
limit = {
county.development_level >= 25
county.prosperity_level >= 25
}
generate_building = yes
generate_building = yes
generate_building = yes
}
brewery_counter_start_effect = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. brewery_counter_start_effect = yes
}
every_domicile = {
#if = { # Left in if we want adventurers to spawn with stuff
@ -16444,7 +16403,7 @@ on_game_start_after_lobby = {
owner.culture ?= { has_innovation = innovation_city_planning }
}
add_domicile_building = japanese_manor_main_02
add_random_internal_japanese_manor_building = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. add_random_internal_japanese_manor_building = yes
}
if = {
limit = {
@ -16455,10 +16414,10 @@ on_game_start_after_lobby = {
add_domicile_building = japanese_manor_main_03
while = {
count = 2
add_random_internal_japanese_manor_building = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. add_random_internal_japanese_manor_building = yes
}
}
fill_external_japanese_manor_building_effect = yes
# NEOW 2555: inactive; corresponding historical scripted effect was disabled. fill_external_japanese_manor_building_effect = yes
}
east_asian_estate = {
if = {
@ -16781,6 +16740,40 @@ on_game_start_after_lobby = {
}
set_global_variable = game_has_started
# Silk & Silver: finish merchant and republic setup after NEOW world initialization.
if = {
limit = { has_gdp_dlc_trigger = yes }
every_domicile = {
limit = {
is_domicile_type = merchant_company
owner ?= {
OR = {
has_realm_law = company_size_large
has_realm_law = company_size_huge
}
}
}
gdp_raise_starting_company_buildings_effect = { FROM = 01 TO = 02 }
if = {
limit = {
owner = { has_realm_law = company_size_huge }
}
gdp_raise_starting_company_buildings_effect = { FROM = 02 TO = 03 }
}
}
every_player = {
if = {
limit = {
government_has_flag = government_is_republic
}
house = {
set_house_aspiration = { type = republic_no_ambition }
}
}
gdp_trade_envoys_resume_idle_traders_effect = yes
}
}
enable_and_run_succession_calculation = yes
}
@ -16789,6 +16782,8 @@ on_game_start_after_lobby = {
historical_artifacts.0050
historical_artifacts.0023 # Historical Artifacts Generator
coronation_events.0302 # ACH crown giveaway
}
}

View file

@ -24,6 +24,49 @@ on_artifact_changed_owner = {
on_action = on_artifact_claim_gained
}
}
if = {
limit = {
gdp_menagerie_artifact_has_active_story_trigger = { CHARACTER = scope:old_owner ARTIFACT = scope:artifact }
}
scope:old_owner = {
random_owned_story = {
limit = {
story_type = story_cycle_menagerie
var:artifact_type ?= scope:artifact
}
if = {
limit = {
scope:artifact = { artifact_type = creature }
scope:owner = {
domicile ?= { is_domicile_type = merchant_company }
}
}
make_story_owner = scope:owner
}
else = {
end_story = yes
}
}
}
}
# GDP Associate promise
scope:owner = {
if = {
limit = {
var:associate_request_type ?= flag:artifact
var:associate_request_merchant ?= scope:old_owner
scope:old_owner = {
any_in_list = {
variable = associate_requests
this = scope:owner
}
}
}
scope:old_owner = {
gdp_merchant_associate_promise_completed_merchant_effect = { ASSOCIATE = scope:owner }
}
}
}
}
# Re-identify the Chad/Ironside skull whenever it changes hands.

View file

@ -0,0 +1,537 @@
#On actions directing prison-related events
#Note that prison stress events are handled through the Stress on-actions.
# Code on-action: character being imprisoned in root scope
# imprisoning character set as scope:imprisoner
on_imprison = {
effect = { # You no longer make such decisions over your life :(
# EP2: Cancel associated activity and travel plan if they exist
if = {
limit = {
exists = involved_activity
involved_activity.activity_host = root
}
invalidate_activity = root.involved_activity
}
else_if = {
limit = {
exists = involved_activity
}
remove_from_activity = involved_activity
}
current_travel_plan ?= {
if = {
limit = {
travel_plan_owner = root
}
abort_travel_plan = yes
}
else = {
remove_character = root
}
}
if = {
limit = {
has_character_flag = travel_option_added_character
}
remove_character_flag = travel_option_added_character
}
if = {
limit = { has_character_modifier = gaining_weight_modifier }
remove_character_modifier = gaining_weight_modifier
}
if = {
limit = { has_character_modifier = losing_weight_modifier }
remove_character_modifier = losing_weight_modifier
}
if = { # from event hold_court.6140
limit = {
scope:imprisoner = {
has_character_modifier = 6140_pet_modifier
OR = {
has_trait = torturer
has_trait = callous
has_trait = sadistic
}
}
}
add_character_modifier = 6140_animal_guardian_modifier
}
# Struggle Catalysts
if = {
limit = {
is_important_or_vip_struggle_character = yes
any_character_struggle = {
involvement = involved
activate_struggle_catalyst_secondary_character_involvement_involved_trigger = {
CATALYST = catalyst_imprison_important
CHAR = scope:imprisoner
}
}
}
every_character_struggle = {
involvement = involved
limit = {
activate_struggle_catalyst_secondary_character_involvement_involved_trigger = {
CATALYST = catalyst_imprison_important
CHAR = scope:imprisoner
}
}
activate_struggle_catalyst = {
catalyst = catalyst_imprison_important
character = scope:imprisoner
}
}
}
if = {
limit = {
has_trait = fp3_struggle_supporter
any_character_struggle = {
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
CATALYST = catalyst_imprison_supporter
CHAR = scope:imprisoner
}
}
}
every_character_struggle = {
limit = {
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
CATALYST = catalyst_imprison_supporter
CHAR = scope:imprisoner
}
}
activate_struggle_catalyst = {
catalyst = catalyst_imprison_supporter
character = scope:imprisoner
}
log_debug_variable_for_persian_struggle_effect = { VAR = unrest_catalyst_imprison_supporter }
}
}
if = {
limit = {
has_trait = fp3_struggle_detractor
any_character_struggle = {
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
CATALYST = catalyst_imprison_detractor
CHAR = scope:imprisoner
}
}
}
every_character_struggle = {
limit = {
activate_struggle_catalyst_secondary_character_involvement_either_trigger = {
CATALYST = catalyst_imprison_detractor
CHAR = scope:imprisoner
}
}
activate_struggle_catalyst = {
catalyst = catalyst_imprison_detractor
character = scope:imprisoner
}
log_debug_variable_for_persian_struggle_effect = { VAR = stabil_catalyst_imprison_detractor }
}
}
if = {
limit = {
has_pam_dlc_trigger = yes
any_held_title = { is_head_of_faith = yes }
scope:imprisoner = {
religion = religion:christianity_religion
any_character_situation = {
situation_type = the_christian_church
situation_top_has_catalyst = catalyst_the_christian_church_ruler_imprisons_head_of_faith
}
}
}
situation:the_christian_church = {
trigger_situation_catalyst = catalyst_the_christian_church_ruler_imprisons_head_of_faith
}
}
#Guelphs & Ghibellines
if = {
limit = {
OR = {
is_guelph_leader_trigger = yes
is_ghibelline_leader_trigger = yes
}
}
gg_triggered_catalyst_effect = {
ACTOR = scope:imprisoner
RECIPIENT = root
CATALYST = catalyst_gg_leader_imprisoned
}
}
# Memory system
create_character_memory = {
type = imprisoned
participants = { imprisoner = scope:imprisoner }
}
if = {
limit = {
is_adult = no
}
scope:new_memory = {
set_variable = childhood_memory
}
}
if = {
limit = {
has_bp2_dlc_trigger = yes
is_adult = yes
any_memory = {
memory_type = imprisoned
has_variable = childhood_memory
}
}
trigger_event = {
id = bp2_yearly.4031
days = 10
}
} #You were imprisoned as a child, and guess what? You are imprisoned as an adult. Congratulations!
if = {
limit = {
OR = {
is_of_major_interest_trigger = { CHARACTER = scope:imprisoner }
AND = {
exists = scope:imprisoner.primary_title.tier
highest_held_title_tier >= scope:imprisoner.primary_title.tier
}
highest_held_title_tier >= tier_kingdom
}
}
root = { save_scope_as = prisoner_memory }
scope:imprisoner = { # We must buffer this memory via events, otherwise the imprisonment shows up before tyranny/faction wars end
trigger_event = error_suppression.0003
}
}
if = { # Set up so you can't banish realm priests, and so that they transfer their gold to the next realm priest if possible
limit = {
is_theocratic_lessee = yes
}
add_character_flag = realm_priest
save_scope_as = realm_priest_transfer
if = {
limit = {
exists = liege
}
liege = {
trigger_event = {
days = 2 # Queued, so we can check the pulse in parallel
id = prison.8000
}
}
}
}
if = {
limit = {
has_bp2_dlc_trigger = yes
scope:imprisoner = {
any_memory = {
memory_type = relative_died
any_memory_participant = {
exists = this.killer
killer = {
is_imprisoned_by = root
}
}
has_variable = childhood_memory
}
}
}
scope:imprisoner = {
trigger_event = {
id = bp2_yearly.4001
days = 1
}
}
}
house ?= {
change_house_relation_effect = {
HOUSE = scope:imprisoner.house
VALUE = house_relation_damage_medium_value
REASON = imprisonment
CHAR = scope:imprisoner
TARGET_CHAR = root
TITLE = scope:dummy_gender
}
}
# Paiza
if = {
limit = {
reverse_has_opinion_modifier = {
target = scope:imprisoner
modifier = gravely_abused_paiza_authority
}
}
scope:imprisoner = {
add_character_flag = {
flag = paiza_abuse_punished
years = 15
}
}
}
# Charter
if = {
limit = { government_has_flag = government_is_merchant }
if = {
limit = {
reverse_has_opinion_modifier = {
target = scope:imprisoner
modifier = gravely_abused_charter_authority_opinion
}
}
scope:imprisoner = {
add_character_flag = {
flag = merchant_charter_abuse_punished
years = 50
}
}
}
if = {
limit = {
suzerain ?= scope:imprisoner
}
# Destroy charters of imprisoned merchants
merchant_charter_destroy_held_charters_effect = {
MERCHANT = this
PATRON = scope:imprisoner
}
}
}
# Partner contracts
if = {
limit = { exists = var:partner_contract }
trade_opportunity_partner_invalidated_effect = { PARTNER = this }
}
}
events = {
prison_notification.0001
stewardship_duty.1066 # You imprison your client and prevent them from working for you.
# NEOW 2555: event not loaded. bookmark.0003 # King Aella gets imprisoned by one of Ragnarr Lodbrok's sons
martial_authority.2052 # Right-Hand Person Imprisoned (by you)
martial_authority.2053 # Right-Hand Person Imprisoned (by someone else)
diarchy.0001 # You're forced into a regency
delay = {
days = { 1 180 }
}
diarchy.8021 # The AI captures their co-emperor.
}
}
# Code on-action: character released from prison in root scope. Does not fire when "released" due to dying
# imprisoning character set as scope:imprisoner
on_release_from_prison = {
effect = {
# We give you a cool chapter if you escaped from prison lol
if = {
limit = {
has_legend_chapter_trigger = { CHAPTER = extra_deed }
NOT = {
promoted_legend ?= {
has_legend_chapter = {
name = extra_deed
localization_key = legend_chapter_extra_deed_recent_imprisonment
}
}
}
}
random = {
chance = 75
send_interface_toast = {
title = legend_chapter_change_toast
left_icon = root
promoted_legend = {
set_legend_chapter = {
name = extra_deed
localization_key = legend_chapter_extra_deed_recent_imprisonment
}
}
}
}
}
if = {
limit = { # Uses flag to stop escape + release memories being created at same time
NOT = { has_character_flag = escaped_from_prison_flag }
}
create_character_memory = {
type = released_from_prison_memory
participants = {
imprisoner = scope:imprisoner
}
}
}
# No prison, no problem.
if = {
limit = { has_character_modifier = gruesome_festivals_designated_sacrifice_fp1_modifier }
remove_character_modifier = gruesome_festivals_designated_sacrifice_fp1_modifier
}
if = { #from event hold_court.6140
limit = { has_character_modifier = 6140_animal_guardian_modifier }
remove_character_modifier = 6140_animal_guardian_modifier
}
if = {
limit = { has_character_flag = realm_priest }
remove_character_flag = realm_priest
}
if = {
limit = { has_character_flag = rival_on_exit_prison }
remove_character_flag = rival_on_exit_prison
# imprisoner has to still be valid and alive
if = {
limit = {
scope:imprisoner ?= { is_alive = yes }
}
set_relation_rival_effect = {
TARGET = scope:imprisoner
REASON = rival_was_kept_in_jail
}
}
}
if = {
limit = { has_variable = imprisoned_by_diarch }
remove_variable = imprisoned_by_diarch
}
if = {
limit = { has_character_flag = being_prisonbroken_by_laamp }
remove_character_flag = being_prisonbroken_by_laamp
}
scope:imprisoner ?= {
gdp_clear_indicted_character_effect = { TARGET = root }
}
# Struggle bonus
}
events = {
prison.0001 # Remove imprisoned_me modifier, consume imprisonment reasons the imprisoner had
prison_notification.2001
intrigue_dread.4010 # Interrupts this event chain for the imprisoner when their prisoner is freed.
human_sacrifice.0003 # Is the character marked for human sacrifice?
martial_authority.2054 # Right-hand wo/man released
}
}
################
# MAINTENANCE
################
quarterly_prison_maintenance_pulse = {
trigger = {
any_prisoner = { }
}
effect = { #Fire the correct events for all prisoners
every_prisoner = {
limit = {
is_in_prison_type = house_arrest
}
trigger_event = {
days = 1 # Queued, so we can check the pulse in parallel
on_action = house_arrest_ongoing
}
}
every_prisoner = {
limit = {
is_in_prison_type = dungeon
}
trigger_event = {
days = 1 # Queued, so we can check the pulse in parallel
on_action = dungeon_ongoing
}
}
}
}
########
#Dungeon on_actions
########
dungeon_ongoing = {
trigger = {
exists = imprisoner #Don't fire if we've been released since the on_action was called.
}
random_events = {
chance_to_happen = 50
500 = 0
100 = dungeon_ongoing.0001 #Crazy neighbor bothers you
200 = dungeon_ongoing.0002 #Wait patiently - or not
100 = dungeon_ongoing.0003 #Guards threaten you with violence
200 = dungeon_ongoing.0004 #A wound becomes infected
50 = dungeon_ongoing.0005 #Infection passes
200 = dungeon_ongoing.0006 #Prison has low standards - unless you are Content
100 = dungeon_ongoing.0007 #It is terrible to be Ambitious and in prison
100 = dungeon_ongoing.0008 #Impatient, and have stayed in the dungeon "forever"
100 = dungeon_ongoing.0009 #You prison pet is there to comfort you
100 = dungeon_ongoing.0010 #Write to a relative asking for help
100 = dungeon_ongoing.0015 #A friend or relative pays your ransom
100 = dungeon_ongoing.9006 #You can't afford ransom and barter for release
#Long-term imprisonment events:
500 = dungeon_ongoing.9001 #Become ill
500 = dungeon_ongoing.9002 #Become pneumonic
500 = dungeon_ongoing.9003 #Gain stress
500 = dungeon_ongoing.9004 #Gain stress
500 = dungeon_ongoing.9005 #Prison Pet Dies
}
}
#######
# House Arrest on_actions
#######
house_arrest_ongoing = {
trigger = {
exists = imprisoner #Don't fire if we've been released since the on_action was called.
}
random_events = {
100 = house_arrest_ongoing.0001 #To be ambitious is terrible
100 = house_arrest_ongoing.0002 #To be arrogant is terrible
100 = house_arrest_ongoing.0003 #Missing love ones
100 = house_arrest_ongoing.0004 #Friend at court helps you
100 = house_arrest_ongoing.0005 #Rival at court is a nuisance
100 = dungeon_ongoing.0010 #Write to a relative asking for help
100 = dungeon_ongoing.0015 #A friend or relative pays your ransom
}
}
#########
# Escape from prison (attempt)
#########
escape_from_prison = {
events = {
prison.9000
}
}
escape_from_prison_success = {
random_events = {
1 = prison.9001 #You escaped!
100 = prison.9002 #You escaped thanks to your prison pet
100 = prison.9003 #You escape with friend or close family member
}
}
escape_from_prison_failure = {
random_events = {
10 = prison.9501 #You're still stuck, buttercup... :(
100 = prison.9502 #You and your prison pet failed
100 = prison.9503 #Your friend or close family member leave you behind
200 = fp1_shieldmaiden.0011 #Your imprisoner's shieldmaiden stymies your escape.
50 = prison.9504 #Rival sabotages escape
5 = prison.9505 #Become wounded
}
}

View file

@ -2,6 +2,32 @@
# scope:character: The character that paid for the construction, if available
on_building_completed = {
effect = {
# Notify the merchant who sponsored this construction, if any
if = {
limit = { has_variable = merchant_construction_sponsor }
if = {
limit = {
var:merchant_construction_sponsor ?= { is_alive = yes }
}
barony = { save_scope_as = barony }
var:merchant_construction_sponsor = {
send_interface_message = {
type = msg_sponsored_building_done
title = merchant_sponsor_construction_complete_title
desc = merchant_sponsor_construction_complete_desc
right_icon = scope:barony
add_trait_xp = {
trait = lifestyle_merchant
track = artisan
value = merchant_sponsor_construction_xp_value
}
}
}
}
remove_variable = merchant_construction_sponsor
remove_variable = merchant_construction_cost
}
# Bonus only come with buildings acctually constructed by you
scope:character ?= {
if = {
@ -50,7 +76,7 @@ on_building_completed = {
title = building_temples_gives_development_toast
left_icon = root.county
root.county = {
change_development_progress_with_overflow = minor_development_progress_gain
change_prosperity_progress_with_overflow = minor_prosperity_progress_gain
set_variable = {
name = dev_gain_cooldown
value = yes
@ -73,7 +99,7 @@ on_building_completed = {
title = tenet_pentarchy_development_growth_in_holy_sites_toast
left_icon = scope:character
root.county = {
change_development_progress_with_overflow = medium_development_progress_gain
change_prosperity_progress_with_overflow = medium_prosperity_progress_gain
set_variable = {
name = dev_gain_cooldown
value = yes
@ -91,7 +117,7 @@ on_building_completed = {
NOT = { county = { has_variable = dev_gain_cooldown } }
}
county = {
change_development_progress_with_overflow = 25
change_prosperity_progress_with_overflow = 25
set_variable = {
name = dev_gain_cooldown
value = yes
@ -244,14 +270,14 @@ on_building_completed = {
random = {
chance = 10
modifier = {
add = county.development_level
add = county.prosperity_level
}
set_variable = {
name = number_prestigious_new_guests
value = 1
}
if = {
limit = { county.development_level >= max_development_level }
limit = { county.prosperity_level >= max_prosperity_level }
set_variable = {
name = holding_quality
@ -259,28 +285,28 @@ on_building_completed = {
}
}
else_if = {
limit = { county.development_level >= great_development_level }
limit = { county.prosperity_level >= great_prosperity_level }
set_variable = {
name = holding_quality
value = 3
}
}
else_if = {
limit = { county.development_level >= good_development_level }
limit = { county.prosperity_level >= good_prosperity_level }
set_variable = {
name = holding_quality
value = 2
}
}
else_if = {
limit = { county.development_level >= medium_development_level }
limit = { county.prosperity_level >= medium_prosperity_level }
set_variable = {
name = holding_quality
value = 2
}
}
else_if = {
limit = { county.development_level >= bad_development_level }
limit = { county.prosperity_level >= bad_prosperity_level }
set_variable = {
name = holding_quality
value = 1
@ -317,7 +343,7 @@ on_building_completed = {
}
}
}
county = { change_development_progress_with_overflow = 10 }
county = { change_prosperity_progress_with_overflow = 10 }
}
if = {
@ -552,7 +578,7 @@ on_building_completed = {
}
}
}
county = { change_development_progress = minor_development_progress_gain }
county = { change_prosperity_progress = minor_prosperity_progress_gain }
if = {
limit = {
scope:character ?= { has_character_modifier = the_city_builder_modifier }
@ -903,6 +929,21 @@ on_building_cancelled = {
limit = { has_variable = pam_temple_holding_under_construction }
remove_variable = pam_temple_holding_under_construction
}
if = {
limit = { has_variable = merchant_construction_sponsor }
barony = { save_scope_as = barony }
var:merchant_construction_sponsor = {
send_interface_toast = {
type = event_toast_effect_neutral
title = merchant_sponsor_construction_cancel_title
left_icon = scope:character
right_icon = scope:barony
add_short_term_gold = root.var:merchant_construction_cost
}
}
remove_variable = merchant_construction_sponsor
remove_variable = merchant_construction_cost
}
}
}
@ -916,17 +957,17 @@ on_holding_razed = {
left_icon = scope:province.barony
add_gold = {
value = minor_gold_value
add = scope:province.county.development_level
add = scope:province.county.prosperity_level
}
scope:province = {
if = {
limit = {
this = county.title_province
county.development_level >= 1
county.prosperity_level >= 1
}
county = {
change_development_progress_with_overflow = {
value = scope:province.county.development_level
change_prosperity_progress_with_overflow = {
value = scope:province.county.prosperity_level
multiply = 10
multiply = -1
}

View file

@ -58,6 +58,7 @@ on_faith_created = {
limit = { faith = root }
pam_on_conversion_effect = yes
remove_character_modifier = religious_reformer_modifier
gdp_update_usury_reputation_effect = yes
# If you have a legend maybe we change it?
if = {
limit = {
@ -260,7 +261,7 @@ on_faith_created = {
# if = {
# limit = {
# exists = situation:the_christian_church
# religion = religion:christianity_religion
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
# }
# root.main_rite.head_of_rite ?= { recalculate_participant_group = situation:the_christian_church }
# }
@ -777,6 +778,7 @@ on_faith_conversion = {
pam_on_conversion_effect = yes
pam_remove_forbidden_personal_tenet_secret_if_invalid_effect = yes
update_syncretism_personal_tenet_effect = yes
gdp_update_usury_reputation_effect = yes
# EP3 - State Faith
if = {
limit = {
@ -1144,9 +1146,9 @@ on_rite_change = {
# limit = {
# highest_held_title_tier >= tier_county
# scope:old_faith ?= {
# religion = religion:christianity_religion
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
# }
# religion != religion:christianity_religion
# NOR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
# situation:the_christian_church ?= {
# situation_top_has_catalyst = catalyst_the_christian_church_ruler_converted_from_christianity
# }
@ -1159,9 +1161,9 @@ on_rite_change = {
# limit = {
# highest_held_title_tier >= tier_county
# scope:old_faith ?= {
# religion != religion:christianity_religion
# NOR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
# }
# religion = religion:christianity_religion
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
# situation:the_christian_church ?= {
# situation_top_has_catalyst = catalyst_the_christian_church_ruler_converted_to_christianity
# }
@ -1590,7 +1592,7 @@ pagan_conversion_pulse = {
}
}
capital_province.county = {
development_level >= 7 #lower than the regular requirement to make sure some rulers can convert
prosperity_level >= 7 #lower than the regular requirement to make sure some rulers can convert
}
}
trigger_else_if = {
@ -1598,12 +1600,12 @@ pagan_conversion_pulse = {
current_date <= 1000.1.1
}
capital_province.county = {
development_level >= 6 #lower than the regular requirement to make sure some rulers can convert
prosperity_level >= 6 #lower than the regular requirement to make sure some rulers can convert
}
}
trigger_else = {
capital_province.county = {
development_level >= 5 #lower than the regular requirement to make sure some rulers can convert
prosperity_level >= 5 #lower than the regular requirement to make sure some rulers can convert
}
}
@ -1629,7 +1631,7 @@ pagan_conversion_pulse = {
}
events = {
global_religion.0001 #Pagan reformed by neighbor, spouse, soulmate, friend, or geographic location
# NEOW 2555: event not loaded. global_religion.0001 #Pagan reformed by neighbor, spouse, soulmate, friend, or geographic location
}
}
@ -2027,3 +2029,156 @@ on_character_holy_site_created = {
}
}
}
on_rite_updated = {
events = {
}
effect = {
root = {
save_scope_as = rite
}
every_in_global_list = {
variable = merchants_tally
limit = {
holder ?= {
rite = scope:rite
}
}
holder = {
gdp_update_usury_reputation_effect = yes
}
}
if = { # slient it for EC since EC has unique event to inform
limit = {
exists = scope:changed_tenets_or_doctrines
OR = {
NOT = {
faith = { has_variable = ecumenical_council_ongoing }
}
exists = scope:consume_rite_edit_token
}
}
# The message icon slot must never be left unset, hence the fall-through to the rite itself
if = {
limit = { any_in_list = { list = added_tenets count >= 1 } }
every_in_list = {
list = added_tenets
save_scope_as = rite_change_icon
}
}
else_if = {
limit = { any_in_list = { list = added_doctrines count >= 1 } }
every_in_list = {
list = added_doctrines
save_scope_as = rite_change_icon
}
}
else_if = {
limit = { any_in_list = { list = removed_tenets count >= 1 } }
every_in_list = {
list = removed_tenets
save_scope_as = rite_change_icon
}
}
else_if = {
limit = { any_in_list = { list = removed_doctrines count >= 1 } }
every_in_list = {
list = removed_doctrines
save_scope_as = rite_change_icon
}
}
else_if = {
limit = { any_in_list = { list = changed_tenet_status count >= 1 } }
every_in_list = {
list = changed_tenet_status
save_scope_as = rite_change_icon
}
}
else = {
root = { save_scope_as = rite_change_icon }
}
every_player = {
limit = {
OR = {
rite = root
AND = {
faith = root.faith
root.faith.main_rite = root
}
}
}
send_interface_message = {
type = msg_rite_updated
title = msg_rite_updated
left_icon = scope:rite_change_icon
show_as_tooltip = {
every_in_list = {
list = removed_doctrines
root = { remove_rite_doctrine = prev }
}
every_in_list = {
list = added_doctrines
root = { add_rite_doctrine = prev }
}
every_in_list = {
list = removed_tenets
root = { remove_rite_tenet = prev }
}
every_in_list = {
list = added_tenets
root = { add_rite_tenet = prev }
}
every_in_list = {
list = changed_tenet_status
save_temporary_scope_as = tenet
root = {
if = {
limit = { has_tenet_status = { tenet = scope:tenet status = permitted } }
faith = { set_tenet_status = { tenet = scope:tenet status = permitted } }
}
else_if = {
limit = { has_tenet_status = { tenet = scope:tenet status = prohibited } }
faith = { set_tenet_status = { tenet = scope:tenet status = prohibited } }
}
else_if = {
limit = { has_tenet_status = { tenet = scope:tenet status = known } }
faith = { set_tenet_status = { tenet = scope:tenet status = known } }
}
else_if = {
limit = { has_tenet_status = { tenet = scope:tenet status = unknown } }
faith = { set_tenet_status = { tenet = scope:tenet status = unknown } }
}
}
}
pam_personal_tenet_rite_update_fulfillment_effect = yes
}
}
}
}
head_of_rite ?= {
trigger_event = faith_creation.0004 # Update HoF succession law
trigger_event = faith_creation.0001 # Temporal rel head setup
trigger_event = faith_creation.0002 # Spiritual rel head setup
trigger_event = faith_creation.0011 # Restore Temporal rel head
trigger_event = faith_creation.0012 # Restore Spiritual rel head
trigger_event = faith_creation.1100 # Destroy HoF title if no longer valid
if = {
limit = {
exists = scope:changed_tenets_or_doctrines
exists = scope:consume_rite_edit_token
}
set_variable = {
name = has_edited_a_rite
}
}
}
}
}

View file

@ -0,0 +1,39 @@
#On actions handling the Roman Restoration notification events.
on_action_roman_restoration_pulse = {
trigger = {
roman_restoration_is_valid_roman_empire_trigger = yes
NOT = { has_ep3_dlc_trigger = yes }
}
events = {
#Restored Roman Provinces events.
# NEOW 2555: event not loaded. roman_restoration.0010
# NEOW 2555: event not loaded. roman_restoration.0011
# NEOW 2555: event not loaded. roman_restoration.0012
# NEOW 2555: event not loaded. roman_restoration.0013
# NEOW 2555: event not loaded. roman_restoration.0014
# NEOW 2555: event not loaded. roman_restoration.0015
# NEOW 2555: event not loaded. roman_restoration.0016
# NEOW 2555: event not loaded. roman_restoration.0017
# NEOW 2555: event not loaded. roman_restoration.0018
# NEOW 2555: event not loaded. roman_restoration.0019
# NEOW 2555: event not loaded. roman_restoration.0020
# NEOW 2555: event not loaded. roman_restoration.0021
# NEOW 2555: event not loaded. roman_restoration.0022
# NEOW 2555: event not loaded. roman_restoration.0023
# NEOW 2555: event not loaded. roman_restoration.0024
}
}
on_action_orthodox_pentarchy_pulse = {
trigger = {
NOT = { has_ep3_dlc_trigger = yes }
}
events = {
#Byzantines restoring the Pentarchy.
# NEOW 2555: event not loaded. roman_restoration.0104
# NEOW 2555: event not loaded. roman_restoration.0105
# NEOW 2555: event not loaded. roman_restoration.0106
# NEOW 2555: event not loaded. roman_restoration.0107
}
}

View file

@ -239,7 +239,7 @@ on_title_destroyed = {
# limit = {
# scope:landed_title = {
# has_clerical_region = yes
# root = { religion = religion:christianity_religion }
# root = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
# }
# }
# situation:the_christian_church.situation_sub_region:core = {
@ -254,6 +254,10 @@ on_title_destroyed = {
# scope:title = the title that changes hands
# scope:previous_holder = previous holder. Might be dead
on_title_gain = {
on_actions = {
gdp_league_focus_on_title_gain
}
effect = {
if = {
limit = {
@ -305,23 +309,48 @@ on_title_gain = {
if = {
limit = { clerical_elector_title ?= scope:title }
pam_strip_illegal_cardinalate_effect = yes
if = {
limit = { clerical_elector_title ?= scope:title }
add_character_flag = cardinal_flag
situation:the_christian_church ?= {
add_manual_participant = prev
}
}
# Also catches a sitting Head of Faith who is handed a cardinalate
pam_vacate_head_of_faith_cardinalate_effect = yes
}
# A cardinal handed the Church seat must vacate the cardinalate
else_if = {
limit = {
scope:title = {
OR = {
is_head_of_faith = yes
this = title:k_papal_state
}
}
}
pam_vacate_head_of_faith_cardinalate_effect = yes
}
if = {
limit = {
exists = clerical_elector_title
scope:title = clerical_elector_title
}
add_character_flag = cardinal_flag
situation:the_christian_church ?= {
add_manual_participant = prev
}
}
# Unconditional: also catches a sitting Head of Faith who is handed a cardinalate
pam_vacate_head_of_faith_cardinalate_effect = yes
limit = {
scope:transfer_type = flag:election
government_has_flag = government_is_republic
}
scope:title = {
every_full_assembly_member = {
if = {
limit = {
has_character_modifier = gdp_popular_mandate_modifier
}
remove_character_modifier = gdp_popular_mandate_modifier
}
}
}
}
if = {
limit = {
scope:title = { has_clerical_region = yes }
religion = religion:christianity_religion
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
}
situation:the_christian_church ?= {
add_manual_participant = prev
@ -334,7 +363,7 @@ on_title_gain = {
scope:transfer_type = flag:inheritance
scope:transfer_type = flag:appointment_succession
}
religion = religion:christianity_religion
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
OR = {
scope:title = { has_clerical_region = yes }
scope:title = { has_title_law = clerical_appointment_law }
@ -359,7 +388,7 @@ on_title_gain = {
if = {
limit = {
pam_government_is_religious_playable_trigger = yes
religion != religion:christianity_religion
NOR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
NOT = { exists = primary_heir }
}
pam_seed_monk_courtiers_effect = yes
@ -443,7 +472,7 @@ on_title_gain = {
# The challenger registers only after the title change
if = {
limit = {
religion = religion:christianity_religion
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
pam_title_is_church_seat_trigger = { TITLE = scope:title }
}
pam_family_becomes_prelate_effect = {
@ -453,7 +482,7 @@ on_title_gain = {
}
else_if = {
limit = {
religion = religion:christianity_religion
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
scope:title = { has_clerical_region = yes }
NOT = {
any_held_title = {
@ -472,7 +501,7 @@ on_title_gain = {
pam_the_christian_church_clergy_gained_landed_title_catalyst_effect = yes
#if = {
# limit = {
# religion = religion:christianity_religion
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
# scope:title = { has_clerical_region = yes }
# exists = scope:previous_holder
# }
@ -2489,7 +2518,10 @@ on_title_gain = {
if = {
limit = {
is_governor = yes
NOT = { has_trait = governor }
NOR = {
has_trait = governor
has_character_flag = gdp_founding_republic
}
scope:title = {
tier >= root.main_administrative_tier
}
@ -2919,6 +2951,41 @@ on_title_gain = {
scope:title = { update_dynamic_coa = yes }
### MEMORIES - SHOULD STAY AT BOTTOM ###
# Creation effects stash these on the character, as on_title_gain fires before they can set them on the title
if = {
limit = {
exists = var:pending_adventurer_flavor_char
scope:title = { is_landless_type_title = yes }
NOT = { exists = scope:title.var:adventurer_flavor_char }
}
scope:title = {
set_variable = {
name = adventurer_creation_reason
value = root.var:pending_adventurer_creation_reason
}
set_variable = {
name = adventurer_flavor_char
value = root.var:pending_adventurer_flavor_char
}
}
}
else_if = {
limit = {
exists = var:pending_merchant_flavor_char
scope:title = { gdp_merchant_company_title_trigger = yes }
NOT = { exists = scope:title.var:merchant_flavor_char }
}
scope:title = {
set_variable = {
name = merchant_creation_reason
value = root.var:pending_merchant_creation_reason
}
set_variable = {
name = merchant_flavor_char
value = root.var:pending_merchant_flavor_char
}
}
}
# Ascended to the throne
if = {
limit = {
@ -2968,6 +3035,45 @@ on_title_gain = {
}
}
}
else_if = {
limit = { exists = scope:title.var:merchant_flavor_char }
create_character_memory = {
type = became_merchant_memory
participants = {
flavor_character = scope:title.var:merchant_flavor_char
}
}
#Only children should get childhood memories
if = {
limit = { is_adult = no }
scope:new_memory = { set_variable = childhood_memory }
}
scope:new_memory = {
save_scope_as = became_merchant_memory
set_variable = {
name = landless_title
value = scope:title
}
set_variable = {
name = reason
value = scope:transfer_type
}
set_variable = {
name = merchant_creation_reason
value = scope:title.var:merchant_creation_reason
}
if = {
limit = { exists = scope:lost_primary_title }
set_variable = {
name = old_primary_title
value = scope:lost_primary_title
}
}
if = { # Error suppression
limit = { exists = var:landless_title }
}
}
}
else = {
# Overwrite if there is a more specific Reason
root = {
@ -3324,9 +3430,9 @@ on_title_gain = {
# if = {
# limit = {
# scope:title = title:c_jerusalem
# religion = religion:christianity_religion
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
# scope:previous_holder ?= {
# NOT = { religion = religion:christianity_religion }
# NOT = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
# }
# NOR = {
# scope:transfer_type = flag:created
@ -3345,9 +3451,9 @@ on_title_gain = {
# limit = {
# scope:title.tier = tier_county
# NOT = { scope:title = title:c_jerusalem }
# religion = religion:christianity_religion
# OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
# scope:previous_holder ?= {
# NOT = { religion = religion:christianity_religion }
# NOT = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
# }
# NOR = {
# scope:transfer_type = flag:created
@ -3409,22 +3515,72 @@ on_title_gain = {
}
}
}
#########
# GDP #
#########
if = {
limit = {
scope:title = { gdp_merchant_company_title_trigger = yes }
NOT = { has_trait = lifestyle_merchant }
government_has_flag = government_is_merchant # exclude patricians
}
add_trait = lifestyle_merchant
}
if = {
limit = {
has_gdp_dlc_trigger = yes
}
if = {
limit = { scope:title = { is_noble_family_title = yes } }
hanseatic_sync_family_head_benefits_effect = { CHARACTER = root }
scope:previous_holder ?= {
hanseatic_sync_family_head_benefits_effect = { CHARACTER = this }
}
}
if = {
limit = {
scope:title = {
tier = tier_county
is_noble_family_title = no
}
}
hanseatic_sync_county_benefits_effect = { COUNTY = scope:title }
}
if = {
limit = {
scope:title = { is_landless_type_title = no }
}
if = {
limit = { has_trait = dealbreaker }
remove_trait = dealbreaker
}
every_secret = {
type = secret_dealbreaker
remove_secret = yes
}
}
}
}
events = {
roman_restoration.0005 #New Roman Emperor gets Augustus trait. (old holder, if still alive, loses it)
roman_restoration.0199 #Restoring the Pentarchy.
title_event.0021 # Rename/recolor Britannia based on founder's culture; applied immediately on creation
# NEOW 2555: event not loaded. roman_restoration.0005 #New Roman Emperor gets Augustus trait. (old holder, if still alive, loses it)
# NEOW 2555: event not loaded. roman_restoration.0199 #Restoring the Pentarchy.
# NEOW 2555: event not loaded. title_event.0021 # Rename/recolor Britannia based on founder's culture; applied immediately on creation
delay = { days = 1 }
NEOW_grant_title.001
# NEOW 2555: event not loaded. NEOW_grant_title.001
realm_maintenance.2001 #Big notification about inheriting emperor tier title
british_isles.1032 # Danelaw-England partition calc.
title_event.0001 # Rename West Francia to France
title_event.0002 # Rename East Francia to Germany
title_event.0011 # Asturias becomes Leon upon emergence of Castille
# NEOW 2555: event not loaded. british_isles.1032 # Danelaw-England partition calc.
# NEOW 2555: event not loaded. title_event.0001 # Rename West Francia to France
# NEOW 2555: event not loaded. title_event.0002 # Rename East Francia to Germany
# NEOW 2555: event not loaded. title_event.0011 # Asturias becomes Leon upon emergence of Castille
# If we weren't already in a diarchy but should be, put us in one.
diarchy.0011
ep3_emperor_yearly.2020 # EP3: The Patriarch refuses to crown you as new emperor because you have a criminal trait
empire_faith_gate.0001 # Empire Faith Gate: contested-empire legitimacy on empire gain
gdp_merchant_family.9010 # Merhcant child
}
}
@ -3475,30 +3631,22 @@ on_title_gain_inheritance = {
becomes_independent = { change = scope:change }
}
}
# if = {
# limit = {
# scope:title = {
# OR = {
# this = title:e_mongol_empire
# AND = {
# exists = global_var:greatest_of_khans_title
# this = global_var:greatest_of_khans_title
# }
# }
# }
# has_character_flag = gain_mongol_succession_dread
# }
# add_dread = 50
# }
# else_if = {
# limit = {
# OR = {
# scope:title = title:h_roman_empire
# scope:title = title:h_eastern_roman_empire
# }
# }
# set_variable = uses_custom_caesar_flavourization
# }
#########
# GDP #
#########
gdp_merchant_patron_change_on_title_transfer_effect = yes
# CE3 achievement: Where There's a Will — inherited from the murdered cleric
if = {
limit = {
exists = var:ce3_will_victim
scope:previous_holder ?= var:ce3_will_victim
}
add_achievement_global_variable_effect = {
VARIABLE = ce3_13_where_theres_a_will_achievement_unlocked
VALUE = yes
}
}
}
}
@ -3622,7 +3770,11 @@ on_title_gain_usurpation = {
# scope:new_holder = new holder.
on_title_lost = {
events = {
british_isles.1033 # Danelaw-England partition calc.
# NEOW 2555: event not loaded. british_isles.1033 # Danelaw-England partition calc.
}
on_actions = {
gdp_league_focus_on_title_lost
}
effect = {
@ -3874,6 +4026,31 @@ on_title_lost = {
# EP3 LAAMP SUPPORTER INVALIDATION
ep3_laamp_supporter_invalidated_effect = yes
# GDP REPUBLIC DESTRUCTION - last landed county lost
if = {
limit = {
gdp_holds_republic_title_trigger = yes # title loser is a republic leader
scope:title = { # lost title is landed county
tier = tier_county
is_landless_type_title = no
is_noble_family_title = no
}
NOT = { # lost title is last held landed county
any_held_county = {
is_landless_type_title = no
is_noble_family_title = no
NOT = { this = scope:title }
}
}
}
random_held_title = {
limit = { gdp_is_republic_title_trigger = yes }
save_scope_as = republic_title
}
# Destroy title - this triggers on_title_destroyed and on_vassal_change
scope:new_holder = { destroy_title = scope:republic_title }
}
# EP3 - Handle admin estates when they end up outside the realm
if = {
limit = {
@ -4198,61 +4375,62 @@ on_title_lost = {
# BP3 - Inspector perks cleanup effect
landless_inspector_cleanup_modifier = yes
#End Greatest of Khans story if title was lost
if = {
limit = {
any_owned_story = {
story_type = story_greatest_of_khans
}
global_var:greatest_of_khans_title ?= {
this = scope:title
}
OR = {
NOT = {
exists = scope:new_holder
}
scope:new_holder = {
NOR = {
AND = {
exists = dynasty
dynasty ?= root.dynasty
}
is_grandchild_of = root
is_child_of = root
}
}
}
}
if = {
limit = {
is_alive = yes
}
trigger_event = {
id = mpo_greatest_of_khans.0040
days = 1
}
}
else_if = {
limit = {
exists = root.player_heir
exists = root.dynasty
player_heir.dynasty ?= root.dynasty
}
player_heir ?= {
trigger_event = {
id = mpo_greatest_of_khans.0040
days = 1
}
}
}
else = {
every_owned_story = {
limit = { story_type = story_greatest_of_khans }
end_story = yes
}
remove_character_modifier = the_great_khan_modifier
}
}
# NEOW 2555: disabled Great Khan event has no live title-transfer hook.
#End Greatest of Khans story if title was lost
# if = {
# limit = {
# any_owned_story = {
# story_type = story_greatest_of_khans
# }
# global_var:greatest_of_khans_title ?= {
# this = scope:title
# }
# OR = {
# NOT = {
# exists = scope:new_holder
# }
# scope:new_holder = {
# NOR = {
# AND = {
# exists = dynasty
# dynasty ?= root.dynasty
# }
# is_grandchild_of = root
# is_child_of = root
# }
# }
# }
# }
# if = {
# limit = {
# is_alive = yes
# }
# trigger_event = {
# id = mpo_greatest_of_khans.0040
# days = 1
# }
# }
# else_if = {
# limit = {
# exists = root.player_heir
# exists = root.dynasty
# player_heir.dynasty ?= root.dynasty
# }
# player_heir ?= {
# trigger_event = {
# id = mpo_greatest_of_khans.0040
# days = 1
# }
# }
# }
# else = {
# every_owned_story = {
# limit = { story_type = story_greatest_of_khans }
# end_story = yes
# }
# remove_character_modifier = the_great_khan_modifier
# }
# }
#Coronation loyalty modifier
if = {
limit = {
@ -4402,6 +4580,26 @@ on_title_lost = {
}
}
}
else_if = { # Liegeless Patricians become Merchants or go to the pool
limit = {
government_has_flag = government_is_republic
NOT = { has_character_flag = government_republic_conversion_protection }
}
if = {
limit = { exists = var:republic_destroyer }
var:republic_destroyer = { save_scope_as = destroyer }
}
else = {
# due to effect order we cannot be sure this is the destroyer
scope:new_holder = { save_scope_as = destroyer }
set_variable = {
name = republic_destroyer
value = scope:destroyer
weeks = 1
}
}
gdp_destroyed_republic_patrician_effect = { DESTROYER = scope:destroyer }
}
}
else_if = {
limit = {
@ -4440,18 +4638,79 @@ on_title_lost = {
#########
# PAM #
#########
if = {
limit = {
scope:title = {
has_clerical_region = yes
root = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
scope:new_holder = { NOT = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } } }
}
}
situation:the_christian_church.situation_sub_region:core = {
remove_clerical_realm_from_sub_region = scope:title
}
}
#########
# GDP #
#########
# NEOW 2555: 1178 Guelph/Ghibelline title changes remain disabled.
#GG: Account for custom-made HRE and Popes in 1178
# if = {
# limit = {
# scope:title = {
# has_clerical_region = yes
# root = { religion = religion:christianity_religion }
# scope:new_holder = { NOT = { religion = religion:christianity_religion } }
# }
# game_start_date = 1178.10.1
# scope:new_holder = { is_from_ruler_designer = yes }
# }
# situation:the_christian_church.situation_sub_region:core = {
# remove_clerical_realm_from_sub_region = scope:landed_title
# #Ghibellines/HRE
# if = {
# limit = {
# scope:title = { this = title:e_hre }
# }
# remove_variable = ghibelline_leader
# scope:new_holder = { set_variable = ghibelline_leader }
# recalculate_participant_group = situation:guelph_ghibelline
# }
# #Guelphs
# if = {
# limit = {
# scope:title = { this = title:d_commune_verona }
# }
# remove_variable = guelph_leader
# scope:new_holder = { set_variable = guelph_leader }
# recalculate_participant_group = situation:guelph_ghibelline
# }
# }
# #GG: You don't get to be a leader as landless, sorry
# if = {
# limit = {
# exists = situation:guelph_ghibelline
# OR = {
# has_variable = guelph_leader
# has_variable = ghibelline_leader
# }
# is_landed = no
# }
# try_set_up_new_gg_leader_effect = yes
# }
gdp_merchant_patron_change_on_title_transfer_effect = yes
burgher_broken_charter_effect = yes
if = {
limit = { scope:title = { is_noble_family_title = yes } }
hanseatic_sync_family_head_benefits_effect = { CHARACTER = root }
scope:new_holder ?= {
hanseatic_sync_family_head_benefits_effect = { CHARACTER = this }
}
}
if = {
limit = {
scope:title = {
tier = tier_county
is_noble_family_title = no
}
}
hanseatic_sync_county_benefits_effect = { COUNTY = scope:title }
}
}
}
@ -5180,6 +5439,54 @@ on_vassal_change = {
resolve_title_and_vassal_change = scope:change
}
}
### If a republic family becomes independent or part of a non-Republic...
if = {
limit = {
government_has_flag = government_is_republic
NOT = { has_character_flag = gdp_becoming_patrician }
NOT = { has_character_flag = government_republic_conversion_protection }
is_landed = no
any_held_title = { is_noble_family_title = yes }
liege = {
OR = {
this = root # independent
NOT = { government_has_flag = government_is_republic }
}
}
}
# Become a Merchant or go to the pool
if = {
limit = { exists = var:republic_destroyer }
var:republic_destroyer = { save_scope_as = destroyer }
}
else = {
# due to effect order we cannot be sure this is the destroyer
scope:old_liege = { save_scope_as = destroyer }
set_variable = {
name = republic_destroyer
value = scope:destroyer
weeks = 1
}
}
gdp_destroyed_republic_patrician_effect = { DESTROYER = scope:destroyer }
}
### A landed republic governor becomes independent to form a new republic
if = {
limit = {
government_has_flag = government_is_republic
is_landed = yes
this = highest_liege_matching_rule:uses_assembly
NOT = { has_character_flag = gdp_recently_founded_republic }
scope:old_liege = {
government_has_flag = government_is_republic
is_alive = yes
is_landed = yes
this = highest_liege_matching_rule:uses_assembly
this != root
}
}
gdp_found_a_republic_effect = yes
}
# Empire Faith Gate: sync the empire-holders list when an empire-tier ruler gains or loses independence.
if = {
limit = {
@ -5530,9 +5837,58 @@ on_realm_capital_change = {
if = {
limit = {
is_landed = no
is_in_army = no
is_travelling = no
NOT = { exists = involved_activity }
should_in_default_location_trigger = yes
}
set_location_to_default = yes
}
}
}
# In republics - move patricians to realm capital
if = {
limit = { gdp_is_assembly_head_trigger = yes }
capital_province = { save_scope_as = capital_province }
# Move the ruler's capital and domicile
if = {
limit = {
any_held_title = { is_noble_family_title = yes }
}
every_held_title = {
limit = {
is_noble_family_title = yes
}
set_capital_county = scope:capital_province.county
}
domicile ?= {
move_domicile = scope:capital_province
}
if = {
limit = {
is_landed = no
should_in_default_location_trigger = yes
}
set_location_to_default = yes
}
}
# And the same for all patrician vassals
every_vassal = {
limit = {
exists = domicile
domicile = { is_domicile_type = merchant_company }
}
every_held_title = {
limit = {
is_noble_family_title = yes
}
set_capital_county = scope:capital_province.county
}
domicile ?= {
move_domicile = scope:capital_province
}
if = {
limit = {
is_landed = no
should_in_default_location_trigger = yes
}
set_location_to_default = yes
}
@ -5548,3 +5904,68 @@ on_realm_capital_change = {
# Not called if new primary title is the same as the previous primary title
on_primary_title_change = {
}
on_term_ended_events = {
effect = {
if = {
limit = { scope:previous_holder = scope:new_holder }
# Re-elected (root)
scope:title ?= {
every_full_assembly_member = {
limit = {
is_ai = no
}
trigger_event = republic_event.0051
}
}
}
else = {
# Elected (root = winner)
scope:title ?= {
every_full_assembly_member = {
limit = {
is_ai = no
}
trigger_event = republic_event.0050
}
}
}
}
}
on_term_ended = {
on_actions = { on_term_ended_events }
effect = {
if = {
limit = { scope:previous_holder = scope:new_holder }
every_player = {
limit = {
OR = {
this = root
is_vassal_or_below_of = root
}
}
if = {
limit = { this = root }
send_interface_toast = {
type = event_toast_effect_good
title = term_ended_reelected_toast_self
left_icon = scope:title
custom_tooltip = term_ended_reelected_toast_self.desc
}
}
else = {
send_interface_toast = {
type = event_toast_effect_neutral
title = term_ended_reelected_toast
left_icon = scope:new_holder
right_icon = scope:title
custom_tooltip = term_ended_reelected_toast.desc
}
}
}
}
}
}

View file

@ -22,6 +22,7 @@ on_travel_plan_movement = {
events = {
mpo_special_flavor_events.0001
gdp_travel_events.2000
}
# Increment the count of how many provinces the character has passed through
@ -32,6 +33,12 @@ on_travel_plan_movement = {
passive_rite_learning_travel_province_effect = yes
# Wandering Lifestyle XP
wandering_lifestyle_exp_post_travel_effect = yes
# Merchant Power at Home replacement
merchant_market_familiarity_travel_effect = yes
# Merchant Souvenirs Aplenty replacement
merchant_souvenirs_aplenty_travel_effect = yes
# Merchant Travel Logs bonus
merchant_travel_logs_danger_xp_effect = yes
# Increase xp for traveler trait
traveler_progress_point_gain_effect = { CHANGE = 1 RANDOM_CHANGE = 1 }
# Increment the count of how many provinces the character has passed through
@ -595,6 +602,41 @@ on_travel_plan_movement = {
}
trigger_event = travel_events.2310
}
# Merchant capstone
if = {
limit = {
current_travel_plan.current_location = {
any_province_domicile = {
has_domicile_parameter = company_curiosity_visitors
owner = {
NOT = {
is_target_in_variable_list = {
name = gdp_merchant_8020_cooldown
target = root
}
}
}
}
}
}
save_scope_as = visitor
current_travel_plan.current_location = {
random_province_domicile = {
limit = {
has_domicile_parameter = company_curiosity_visitors
owner = {
NOT = {
is_target_in_variable_list = {
name = gdp_merchant_8020_cooldown
target = root
}
}
}
}
owner = { trigger_event = gdp_merchant.8021 }
}
}
}
}
}
@ -751,6 +793,12 @@ travel_danger_events_on_action = {
# TGP Travel Danger Events
100 = tgp_travel_danger_events.0001 # Encounter an orphan in an area struck by natural disaster.
# GDP Travel Danger Events
100 = gdp_travel_events.1000 # Your Caravan is stuck in the desert during a heatwave
100 = gdp_travel_events.1040 # Unmaintained Well - Party stops at an icky well
100 = gdp_travel_events.1050 # Toppled Timber - The road is blocked by fallen trees
100 = gdp_travel_events.1060 # Rats in the Hold - The hold of the ship is filled with rats
# Simple Danger Events
100 = travel_danger_events.9030 # Rain: delay
100 = travel_danger_events.9040 # Rainstorm, someone is lost & gone forever!
@ -1001,6 +1049,10 @@ travel_events_on_action = {
50 = tgp_japan_yearly_events.1120 # 1120 - You meet a warrior monk
50 = tgp_japan_yearly_events.1140 # 1140 - You are stopped in Soryo lands as a Ritsuryo ruler
#GDP Travel Events
100 = gdp_travel_events.1010 # 1010 - Lost Travelers - A family of travelers is asking to shelter with you.
100 = gdp_travel_events.1020 # 1020 - Tidbits on the Road - Your associate has something interesting to share
100 = gdp_travel_events.1030 # 1030 - Vile Whispers - An associate has a secret to share concerning you partner
# PAM Travel Events
100 = pam_theocratic_ruler_events.0012 # Theocratic ruler: sacred grove in the forest while traveling through realm
@ -1104,6 +1156,9 @@ on_travel_plan_arrival = {
100 = 0
100 = travel_events.3020 #A warm welcome
}
events = {
gdp_travel_events.2000
}
effect = {
# Achievements.
if = {
@ -1167,6 +1222,8 @@ on_travel_plan_arrival = {
# Visited Points of Interest tracker, currently only for Adventurers
points_of_interest_tracker_effect = yes
gdp_merchant_legacy_4_visit_entrepot_effect = yes
}
}
@ -1217,6 +1274,29 @@ on_travel_plan_start = {
value = 1
}
}
if = {
limit = {
government_has_flag = government_is_merchant
has_perk = travel_logs_perk
has_variable_list = merchant_travel_logs_markets
}
clear_variable_list = merchant_travel_logs_markets
}
if = {
limit = {
government_has_flag = government_is_merchant
has_perk = know_your_land_know_your_people_perk
current_travel_plan = {
has_travel_option = tutor_child_option
}
player_heir ?= {
has_variable_list = reading_the_market_markets
}
}
player_heir = {
clear_variable_list = reading_the_market_markets
}
}
# Add Court Physician and Bodyguard if they aren't already in the entourage
if = {
limit = {
@ -1460,6 +1540,8 @@ on_travel_plan_start = {
diarchy.0002 # Do we need to enter a regency or not?
ep3_laamp_flavour_ewan.1102 #Adventurer's child helps them pack
ep3_laamp_flavour_ewan.1103 #Follow-up events for adventurer's child helping with packing
gdp_travel_events.0001 #Merchants travel with their associates, household and potential contract agents
}
}
@ -1470,14 +1552,15 @@ on_travel_plan_complete = {
is_ruler = yes
}
first_valid = {
pilgrimage.9010 #Bury the old host after finishing the Pilgrimage
pilgrimage.9001 #Nice Spiritual Journey
# NEOW 2555: event not loaded. pilgrimage.9010 #Bury the old host after finishing the Pilgrimage
# NEOW 2555: event not loaded. pilgrimage.9001 #Nice Spiritual Journey
ep3_laamps.8000 # You arrive at a place you have a claim on
tgp_east_asia_mandala_events.8496 #You are due for a Mandala Succession?
travel_completion_event.1000
}
events = {
ep3_laamps.9971
gdp_travel_events.2000
}
effect = {
@ -1578,6 +1661,13 @@ on_travel_plan_complete = {
# Roaming flag
remove_character_flag = roaming_character
if = {
limit = {
has_character_flag = gdp_trade_opportunity_visit_holding_on_arrival
}
remove_character_flag = gdp_trade_opportunity_visit_holding_on_arrival
}
# Give us fresh contracts if necessary.
if = {
limit = {
@ -1589,6 +1679,30 @@ on_travel_plan_complete = {
left_icon = root
right_icon = root.location.barony
}
if = {
limit = { has_government = merchant_government }
if = {
limit = { exists = location.county.holder }
suzerain ?= { save_scope_as = old_patron }
location.county.holder = { save_scope_as = new_patron }
start_tributary_interaction_effect = {
TRIBUTARY = root
SUZERAIN = scope:new_patron
}
# Mingle with Patron only when a player move assigns a different patron.
if = {
limit = {
is_ai = no
trigger_if = {
limit = { exists = scope:old_patron }
NOT = { scope:old_patron = scope:new_patron }
}
trigger_else = { always = yes }
}
trigger_event = { on_action = gdp_patron_hobnob }
}
}
}
# Set up additional firing contracts.
player_adventurer_contract_generation_on_wait_in_place_effect = yes
# Generate contracts if you are far away from your previous location.
@ -1814,6 +1928,8 @@ on_travel_plan_abort = {
of_the_people_effect = yes
# Wayfarer Stress Loss
wayfarer_the_home_away_from_home_modifier_effect = yes
# Merchant Souvenirs Aplenty cleanup
merchant_souvenirs_aplenty_clear_effect = yes
# Remove Excursion modifier
destination_remove_excursion_modifier_effect = yes
# Roaming flag
@ -1822,6 +1938,13 @@ on_travel_plan_abort = {
remove_character_flag = roaming_character
}
if = {
limit = {
has_character_flag = gdp_trade_opportunity_visit_holding_on_arrival
}
remove_character_flag = gdp_trade_opportunity_visit_holding_on_arrival
}
if = {
limit = {
current_travel_plan = { is_travel_with_domicile = yes }
@ -1883,6 +2006,9 @@ on_travel_plan_abort = {
#Invalidate Mandala Contracts
mandala_invalidate_contracts_effect = yes
#Invalidate merchant trade opportunities the trip never reached
merchant_trade_opportunity_travel_cancelled_effect = yes
#Hit absentee Tributary with Tribute Mission penalty
requested_tribute_mission_penalty_effect = yes
tribute_mission_clean_up_variables_effect = yes
@ -1908,6 +2034,7 @@ on_travel_plan_abort = {
# People in the travel plan were removed from associated activities.
on_travel_plan_cancel = {
effect = {
merchant_souvenirs_aplenty_clear_effect = yes
if = {
limit = { has_variable = ep3_laamp_decision_1000_is_excavating }
remove_variable = ep3_laamp_decision_1000_is_excavating
@ -2053,6 +2180,9 @@ on_travel_plan_cancel = {
#Invalidate Mandala Contracts
mandala_invalidate_contracts_effect = yes
#Invalidate merchant trade opportunities the trip never reached
merchant_trade_opportunity_travel_cancelled_effect = yes
#Hit absentee Tributary with Tribute Mission penalty
requested_tribute_mission_penalty_effect = yes
tribute_mission_clean_up_variables_effect = yes

View file

@ -1162,7 +1162,7 @@ on_war_started = {
scope:attacker = {
has_pam_dlc_trigger = yes
highest_held_title_tier >= tier_kingdom
religion = religion:christianity_religion
OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion }
faith = scope:defender.faith
}
scope:war = { # They have their own catalysts
@ -1208,7 +1208,7 @@ on_war_started = {
}
}
scope:attacker = {
NOT = { religion = religion:christianity_religion }
NOT = { OR = { religion = religion:catholic_religion religion = religion:protestant_religion religion = religion:eastern_orthodox_religion religion = religion:oriental_orthodox_religion } }
}
scope:defender = {
has_pam_dlc_trigger = yes
@ -1973,6 +1973,8 @@ on_war_won_attacker = { # As in, won BY attacker. Only one of the two on_actions
mpo_save_potential_blood_brother_war_allies_effect = yes
pam_pursuit_of_power_war_victory_fulfillment_effect = yes
burgher_resume_pending_leaders_on_war_end_effect = yes
}
}
@ -2388,6 +2390,8 @@ on_war_won_defender = {
#Save variables for blood brothers
mpo_save_potential_blood_brother_war_allies_effect = yes
burgher_resume_pending_leaders_on_war_end_effect = yes
}
}
@ -2526,6 +2530,8 @@ on_war_white_peace = {
mpo_save_potential_blood_brother_war_allies_effect = yes
pam_miles_christi_white_peace_effect = yes
burgher_resume_pending_leaders_on_war_end_effect = yes
}
}
@ -2587,5 +2593,7 @@ on_war_invalidated = {
#Save variables for blood brothers
mpo_save_potential_blood_brother_war_allies_effect = yes
burgher_resume_pending_leaders_on_war_end_effect = yes
}
}

View file

@ -434,6 +434,7 @@ pam_christian_yearly_events = {
religion = religion:protestant_religion
}
NOT = { has_character_flag = recently_got_pam_christian_event }
pam_secular_faith_clergy_ok_actor_trigger = yes
}
weight_multiplier = {
base = 1

View file

@ -298,6 +298,7 @@ yearly_global_pulse = {
on_actions = {
inspiration_maintenance_global_pulse
natural_disaster_maintenance_global_pulse
gdp_merchant_population_global_pulse
}
}
@ -556,6 +557,8 @@ yearly_playable_pulse = {
if = {
limit = {
has_treasury = yes
# We exclude republics here - they are a bit different and require separate handling (see republic_event.0020)
NOT = { government_has_flag = government_is_republic }
}
trigger_event = tgp_china_ministry.0100
}
@ -916,6 +919,127 @@ yearly_playable_pulse = {
}
ai_attempt_to_host_activity = activity_imperial_examination
}
# MERCHANTS
if = {
limit = { government_has_flag = government_is_merchant }
# AI Associate handling
if = {
limit = {
is_available_quick = {
ai = yes
adult = yes
imprisoned = no
alive = yes
}
is_house_head = yes
exists = location.county
NOT = { has_character_flag = gdp_merchant_ai_market_recruit_cooldown }
short_term_gold >= gdp_merchant_ai_market_recruit_gold_value
any_courtier = {
gdp_can_be_trader_trigger = yes
count < root.num_trade_routes
}
}
gdp_merchant_ai_market_recruit_effect = yes
}
# Contracts
if = {
limit = {
house ?= { # Trade opportunities only spawn yearly with high unity
OR = {
has_house_unity_stage = grasping_cs
has_house_unity_stage = ennobled_cs
}
}
trigger_if = {
limit = { is_ai = yes }
is_available = yes
}
}
# Trade opportunities
random = {
chance = {
value = 50
if = {
limit = { has_character_flag = trade_opportunity_frequency_cooldown }
subtract = 35
}
else_if = {
limit = {
house ?= { has_house_unity_stage = ennobled_cs }
}
add = 25
}
}
trigger_event = {
on_action = spawn_trade_opportunity_contract_on_action
}
}
# Luxury contracts
random = {
chance = {
value = 70
if = {
limit = { has_character_flag = luxury_contract_frequency_cooldown }
subtract = 50
}
if = {
limit = {
NOT = { has_realm_law = company_purpose_caravaneer }
}
subtract = 50
}
}
trigger_event = {
on_action = spawn_luxury_contract_on_action
}
}
# Unity contracts
if = {
limit = {
house ?= { # Unity contracts do not spawn yearly with high unity
OR = {
has_house_unity_stage = rapacious_cs
has_house_unity_stage = opportunistic_cs
}
}
}
random = {
chance = {
value = 25
if = {
limit = {
house ?= { has_house_unity_stage = opportunistic_cs }
}
add = 25
}
if = {
limit = { has_character_flag = unity_contract_frequency_cooldown }
multiply = 0
}
}
trigger_event = { on_action = spawn_unity_contract_on_action }
}
}
}
# Passive XP
if = {
limit = {
is_adult = yes # children never learn anything
any_trade_route = { gdp_merchant_trade_route_grants_caravaneer_xp_trigger = yes }
}
send_interface_message = {
type = event_trade_good
title = caravaneer_passive_xp_title
add_trait_xp = {
trait = lifestyle_merchant
track = caravaneer
value = gdp_merchant_yearly_caravaneer_xp_value
}
}
}
}
# Scalable Modifiers which needs to be reapplied
hidden_effect = {
@ -1936,7 +2060,7 @@ yearly_playable_pulse = {
weight = {
base = 1
modifier = {
divide = development_level
divide = prosperity_level
}
modifier = {
divide = county_control
@ -1977,12 +2101,22 @@ yearly_playable_pulse = {
events = {
court_maintenance.0012 # Dynasty banner improves with renown
court_maintenance.0013 # Remove duplicate dynasty banners
gdp_purpose_events.0001 # You're in debt, a merchant offers a way out
gdp_merchant.9020 # Commission trade route
gdp_merchant.1200 # Merchant associate promise
vassal.2205 # Loan reminder
}
on_actions = {
ai_character_pulse
delay = { days = 75 }
pagan_conversion_pulse
# GDP
gdp_republic_popular_opinion_pulse
gdp_merchant_ai_trade_monopoly_pulse
gdp_republic_ai_trade_monopoly_pulse
gdp_trade_league_ai_trade_monopoly_pulse
}
}
@ -1991,6 +2125,11 @@ yearly_playable_pulse = {
three_year_playable_pulse = {
events = {
adultery.0001 #Suspected spouse/soulmate of cheating (increased chance when there is a lover, but can also trigger otherwise)
gdp_merchant.8020 # Domicile visitor
ep2_accolade_events.0100
ep2_accolade_events.0200
ep2_accolade_events.0300
ach_maintenance_events.0002
}
# random_events = {
# 800 = 0
@ -2277,6 +2416,31 @@ three_year_playable_pulse = {
}
}
pam_christian_situation_hof_incite_holy_war_effect = yes
# Republic maintenance
if = {
limit = {
gdp_is_assembly_head_trigger = yes
}
# Effect to add more patricians as needed
gdp_adjust_number_of_patrician_families_effect = yes
# Update the treasury budget
trigger_event = republic_event.0020
# Read by gdp_merchant_company_keep_trigger if the republic falls
add_character_flag = {
flag = gdp_notable_republic_family
years = 4
}
if = {
limit = { highest_held_title_tier >= tier_kingdom }
every_vassal = {
limit = { government_has_flag = government_is_republic }
add_character_flag = {
flag = gdp_notable_republic_family
years = 4
}
}
}
}
}
}
@ -2537,6 +2701,13 @@ quarterly_playable_pulse = {
# MPO
mpo_tributary_check_pulse
# GDP
gdp_merchant_company_debt_pulse
gdp_trade_route_maturity_pulse
gdp_trade_envoys_resume_pulse
ep5_09_wearer_of_many_hats_achievement_pulse
}
random_on_action = {
chance_to_happen = 50
@ -2591,11 +2762,12 @@ random_yearly_playable_pulse = {
#2 = bp1_yearly_events # Retired on purpose; contents are all in on_yearly_events
6 = ep3_yearly_events_admin
6 = NEOW_yearly_flavor_events
6 = tgp_japan_yearly_events
6 = tgp_china_yearly_events
3 = tgp_mandala_yearly_events
# 6 = tgp_japan_yearly_events # NEOW 2555: removed East/South Asian regions
# 6 = tgp_china_yearly_events # NEOW 2555: removed East/South Asian regions
# 3 = tgp_mandala_yearly_events # NEOW 2555: removed East/South Asian regions
6 = ongoing_house_feud_events
10 = mpo_yearly_events_nomads
6 = gdp_merchant_yearly_events
}
effect = {
# Special Holy Seeds drops
@ -2729,9 +2901,9 @@ random_yearly_everyone_pulse = {
house_feud_ai_scheme_pulse
}
events = {
holy_order.0206 #To increment the years passed since loan
# NEOW 2555: event not loaded. holy_order.0206 #To increment the years passed since loan
marriage_interaction.0007 #One of the betrothed became part of clergy that doesn't allow marriage
tgp_silk_road_events.0100 #Culture adopts controlled Silk Road market innovation
# NEOW 2555: event not loaded. tgp_silk_road_events.0100 #Culture adopts controlled Silk Road market innovation
}
random_events = {
500 = 0
@ -2912,6 +3084,10 @@ three_year_pool_pulse = {
}
100 = courtier_guest_management.4001 # Wanderer becomes an adventurer
}
on_actions = {
gdp_merchant_pool_pulse
gdp_minority_merchant_pool_pulse
}
}
#Only triggered if you actually have prisoners
@ -2980,14 +3156,7 @@ on_yearly_common_events = {
}
# Accolades yearly events
three_year_playable_pulse = {
events = {
ep2_accolade_events.0100 #Huntsmaster gives you or heir Hunter trait event
ep2_accolade_events.0200 #Blademaster gives you or heir Blademaster trait event
ep2_accolade_events.0300 #Master of Revels gives you or heir Reveler trait event
ach_maintenance_events.0002 # ACH Oath synergy culture rewards
}
}
on_yearly_invisible_events = {
random_events = {
@ -3833,43 +4002,43 @@ on_yearly_events = {
# 200 = tgp_dynastic_cycle_events.0050 # Debate the Favoured Movement and get ahead of them
# TGP - Confucianism Events
250 = tgp_china_yearly.0001 # Charitable Acts
250 = tgp_china_yearly.0005 # Child mourns the loss of a father
250 = tgp_china_yearly.0010 # Hack poet peddles "lucky" poems
250 = tgp_china_yearly.0015 # Settle merchant dispute
250 = tgp_china_yearly.0020 # County has unpaid back-taxes
# 250 = tgp_china_yearly.0001 # Charitable Acts
# 250 = tgp_china_yearly.0005 # Child mourns the loss of a father
# 250 = tgp_china_yearly.0010 # Hack poet peddles "lucky" poems
# 250 = tgp_china_yearly.0015 # Settle merchant dispute
# 250 = tgp_china_yearly.0020 # County has unpaid back-taxes
100 = tgp_japan_yearly_events.0001 # 0001 - Spreading Joy - furoshiki
10 = tgp_japan_yearly_events.0021 # 0021 - Among the Blossoms - Hanami (Cherry Blossoms)
20 = tgp_japan_yearly_events.0026 # 0026 - Tales of the Tengu - Tengu
10 = tgp_japan_yearly_events.0036 # 0036 - Green Thumb
50 = tgp_japan_yearly_events.1010 # 1010 - Two buddhist sects are fighting, and ask you to pick a side
5 = tgp_japan_yearly_events.1020 # 1020 - Your senses are playing tricks on you, and you encounter a new Yokai
100 = tgp_japan_yearly_events.1030 # 1030 - You pray at a shrine for future success
20 = tgp_japan_yearly_events.1050 # 1050 - You are accused of violating a dumb rule
5 = tgp_japan_yearly_events.1060 # 1060 - A prisoner requests to be mercy killed
20 = tgp_japan_yearly_events.1070 # 1070 - A temple in your realm has burned down
100 = tgp_japan_yearly_events.1080 # 1080 - Someone is fishing in the tsuri-dono
10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
20 = tgp_japan_yearly_events.1100 # 1100 - You contract Guilt Fever
100 = tgp_japan_yearly_events.1110 # 1110 - An animal is seen near the shrine of a God
# 100 = tgp_japan_yearly_events.0001 # 0001 - Spreading Joy - furoshiki
# 10 = tgp_japan_yearly_events.0021 # 0021 - Among the Blossoms - Hanami (Cherry Blossoms)
# 20 = tgp_japan_yearly_events.0026 # 0026 - Tales of the Tengu - Tengu
# 10 = tgp_japan_yearly_events.0036 # 0036 - Green Thumb
# 50 = tgp_japan_yearly_events.1010 # 1010 - Two buddhist sects are fighting, and ask you to pick a side
# 5 = tgp_japan_yearly_events.1020 # 1020 - Your senses are playing tricks on you, and you encounter a new Yokai
# 100 = tgp_japan_yearly_events.1030 # 1030 - You pray at a shrine for future success
# 20 = tgp_japan_yearly_events.1050 # 1050 - You are accused of violating a dumb rule
# 5 = tgp_japan_yearly_events.1060 # 1060 - A prisoner requests to be mercy killed
# 20 = tgp_japan_yearly_events.1070 # 1070 - A temple in your realm has burned down
# 100 = tgp_japan_yearly_events.1080 # 1080 - Someone is fishing in the tsuri-dono
# 10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
# 20 = tgp_japan_yearly_events.1100 # 1100 - You contract Guilt Fever
# 100 = tgp_japan_yearly_events.1110 # 1110 - An animal is seen near the shrine of a God
#5 = tgp_japan_yearly_events.1070 # 1070 A temple in your realm has burned down
10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
20 = tgp_japan_yearly_events.1100 # 1100 - You contract Guilt Fever
100 = tgp_japan_yearly_events.1110 # 1110 - An animal is seen near the shrine of a God
50 = tgp_japan_yearly_events.1130 # 1130 - Your daughter expresses an interest in poetry
50 = tgp_japan_yearly_events.1150 # 1150 - The emperor is passing in your lands
100 = tgp_japan_yearly_events.1160 # 1160 - You are offered a concubine from a rival house
100 = tgp_japan_yearly_events.1170 # 1170 - The prose that you're reading is of an unknown language
50 = tgp_japan_yearly_events.1180 # 1180 - You've been gifted a Bonsai tree for your garden
20 = tgp_japan_yearly_events.1190 # 1190 - You have a bad trait and you're making some decisions at night
200 = tgp_japan_yearly_events.1200 # 1200 - Congestion in the Capital
200 = tgp_japan_yearly_events.1210 # 1210 - Fit to Lead
200 = tgp_japan_yearly_events.1225 # 1225 - A Poetic Life
25 = tgp_japan_yearly_events.1220 # 1220 - You've witnessed a miracle made by a Buddhist monk
25 = tgp_japan_yearly_events.1230 # 1230 - Fear of a low durability artifact coming to life (Yokai)
100 = tgp_japan_yearly_events.1240 # 1240 - A traveler poet visits court and can't read from right to left
100 = tgp_japan_yearly_events.1260 #1260 - Begin a journey of poetic discovery
# 10 = tgp_japan_yearly_events.1090 # 1090 - Growing old with no heir
# 20 = tgp_japan_yearly_events.1100 # 1100 - You contract Guilt Fever
# 100 = tgp_japan_yearly_events.1110 # 1110 - An animal is seen near the shrine of a God
# 50 = tgp_japan_yearly_events.1130 # 1130 - Your daughter expresses an interest in poetry
# 50 = tgp_japan_yearly_events.1150 # 1150 - The emperor is passing in your lands
# 100 = tgp_japan_yearly_events.1160 # 1160 - You are offered a concubine from a rival house
# 100 = tgp_japan_yearly_events.1170 # 1170 - The prose that you're reading is of an unknown language
# 50 = tgp_japan_yearly_events.1180 # 1180 - You've been gifted a Bonsai tree for your garden
# 20 = tgp_japan_yearly_events.1190 # 1190 - You have a bad trait and you're making some decisions at night
# 200 = tgp_japan_yearly_events.1200 # 1200 - Congestion in the Capital
# 200 = tgp_japan_yearly_events.1210 # 1210 - Fit to Lead
# 200 = tgp_japan_yearly_events.1225 # 1225 - A Poetic Life
# 25 = tgp_japan_yearly_events.1220 # 1220 - You've witnessed a miracle made by a Buddhist monk
# 25 = tgp_japan_yearly_events.1230 # 1230 - Fear of a low durability artifact coming to life (Yokai)
# 100 = tgp_japan_yearly_events.1240 # 1240 - A traveler poet visits court and can't read from right to left
# 100 = tgp_japan_yearly_events.1260 #1260 - Begin a journey of poetic discovery
# TGP- Mandala Events
10000 = tgp_east_asia_mandala_events.9000 #Freak accident makes you seem inclined to divinity
@ -3907,6 +4076,41 @@ on_yearly_events = {
1200 = elder_events.1500 # Faltering heart - Chance to kill your spouse if you're young and they are old
1600 = elder_events.1600 # Faltering heart/Fragile bones/Infirm - Lose athletic
# GDP - Merchant Events
300 = gdp_merchant.0010 #Associate asks to be adopted
300 = gdp_merchant.0020 #Associates struggle for empty/ineffectual Partner position
300 = gdp_merchant.1100 # Merchant overcrowded
300 = gdp_merchant.0025 # Artisan Purpose Recruitment Opportunity
300 = gdp_merchant.0030 # Creditor Purpose Recruitment Opportunity
300 = gdp_merchant.0035 # Caravaneer Purpose Recruitment Opportunity
300 = gdp_merchant.3000 # Translator court position boon
300 = gdp_merchant.3010 # Fixer court position boon
300 = gdp_merchant.3020 # Bailiff court position boon
300 = gdp_merchant.3030 # Market Agent court position boon
300 = gdp_merchant.3040 # Antiquarian court position boon
300 = gdp_merchant.4000 # You are a Silk Road Merchant in China/Korea who isn't Confucian
300 = gdp_merchant.4010 # You're a Merchant in China/Korea who hasn't taken the exam
300 = gdp_merchant.4030 # You're a Merchant outside of the Silk Road hearing about it
# GDP - Republic Events
300 = yearly_republic.1001 #Spouse ask you to stop working late and come to bed.
300 = yearly_republic.1002 #Spouse's bad opinion of you cause friction with her house.
300 = yearly_republic.1003 #Young relative has been in a fight that might cause friction with another house.
300 = yearly_republic.1005 #The masses have grown tired of the feud between two houses and demand change.
300 = yearly_republic.1008 # A patrician has hired a bandit for ill-deeds.
300 = yearly_republic.1009 # A spouse has set up a salon to spy on her peers.
300 = yearly_republic.1010 # An ambassador will report secrets in the palace and you can spy on them from the roof.
300 = yearly_republic.1011 # A summons from the council gives opportunity to shirk your duties.
10000 = yearly_republic.1012 #Doge's procession (Once Per life. Blocked by Character Flag)
1000 = yearly_republic.1013 #Marriage to the sea (Once Per life. Blocked by Character Flag)
# 300 = yearly_republic.1014 #Patrician with the same house ambition meet to align their interests.
300 = yearly_republic.1015 #A patrician offers to sell you their vote at the next assembly
300 = yearly_republic.1016 #You get the chance to threaten a patrician to have them give you their next vote.
300 = yearly_republic.1017 #Three wise patricians have gathered for a debate. Influence them for the next vote using logic and reason!
400 = yearly_republic.1018 #Get an artifact from a friend.
300 = yearly_republic.1019 #Get some trade category experience.
300 = yearly_republic.1020 #Get a modifier from a friendly house.
# BFJ
300 = blotsven.0001 # Blot-Sven starter event, gives you a chance at getting a claim for the kingdom of Sweden.
@ -4007,3 +4211,41 @@ on_yearly_tutorial_events = {
1 = tutorial.1001
}
}
gdp_minority_merchant_pool_pulse = {
trigger = {
exists = global_var:gdp_minority_merchant_spawn_quota
global_var:gdp_minority_merchant_spawn_quota > 0
is_pool_character = yes
is_ai = yes
gdp_minority_merchant_candidate_trigger = yes
}
events = {
gdp_merchant.4002
}
}
gdp_merchant_pool_pulse = {
trigger = {
is_pool_character = yes
gdp_should_spawn_new_merchant_company_trigger = yes
}
random_events = {
chance_to_happen = 25
100 = gdp_merchant.4001 # Pool character becomes a merchant company
}
}
lifestyle_progress_pulse = {
first_valid_on_action = {
stewardship_lifestyle_progress_pulse
intrigue_lifestyle_progress_pulse
diplomacy_lifestyle_progress_pulse
martial_lifestyle_progress_pulse
learning_lifestyle_progress_pulse
wanderer_lifestyle_progress_pulse
}
}