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

@ -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