on actions updated files
This commit is contained in:
parent
707660e545
commit
6fe43fad95
13 changed files with 3892 additions and 965 deletions
|
|
@ -28,6 +28,8 @@ on_travel_plan_movement = {
|
|||
# Used for loc in the travel completion event
|
||||
# Variable cleanup in the completion event (travel_completion_event.1000)
|
||||
effect = {
|
||||
# Passive learning from foreign-rite provinces/locals.
|
||||
passive_rite_learning_travel_province_effect = yes
|
||||
# Wandering Lifestyle XP
|
||||
wandering_lifestyle_exp_post_travel_effect = yes
|
||||
# Increase xp for traveler trait
|
||||
|
|
@ -409,7 +411,7 @@ on_travel_plan_movement = {
|
|||
province = root.current_travel_plan.current_location
|
||||
is_physically_able_adult = yes
|
||||
NOR = {
|
||||
faith = root.faith
|
||||
rite = root.rite
|
||||
has_relation_rival = root
|
||||
has_character_flag = ai_will_not_convert
|
||||
has_trait = zealous
|
||||
|
|
@ -427,7 +429,7 @@ on_travel_plan_movement = {
|
|||
limit = {
|
||||
is_physically_able_adult = yes
|
||||
NOR = {
|
||||
faith = root.faith
|
||||
rite = root.rite
|
||||
has_relation_rival = root
|
||||
has_character_flag = ai_will_not_convert
|
||||
has_trait = zealous
|
||||
|
|
@ -445,7 +447,7 @@ on_travel_plan_movement = {
|
|||
left_icon = scope:wanderer_to_convert
|
||||
add_piety = miniscule_piety_value
|
||||
scope:wanderer_to_convert = {
|
||||
set_character_faith = root.faith
|
||||
set_character_rite = root.rite
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -484,13 +486,27 @@ on_travel_plan_movement = {
|
|||
}
|
||||
}
|
||||
}
|
||||
# PAM Scholasticism personal tenet - the travelling studium
|
||||
if = {
|
||||
limit = {
|
||||
has_personal_tenet_flag = tenet_scholasticism_travelling_studium
|
||||
current_travel_plan ?= {
|
||||
any_entourage_character = {
|
||||
NOT = { this = root }
|
||||
is_physically_able_ai_adult = yes
|
||||
ep1_is_valid_character_for_inspiration_trigger = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
pam_tenet_scholasticism_studium_effect = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_perk = church_and_state_perk
|
||||
has_government = landless_adventurer_government
|
||||
location = { has_holding_type = church_holding }
|
||||
}
|
||||
add_piety = miniscule_piety_gain
|
||||
add_piety = adventurer_church_and_state_perk_2_value
|
||||
}
|
||||
# laamp_base_1041/Ambush Travellers task contract minigame.
|
||||
current_travel_plan ?= {
|
||||
|
|
@ -509,6 +525,8 @@ on_travel_plan_movement = {
|
|||
}
|
||||
else_if = {
|
||||
limit = { var:encounters_tally < var:encounters_max }
|
||||
# 1782 picks its victim through the contract's previous_victims_list
|
||||
save_scope_as = task_contract
|
||||
root = { trigger_event = laamp_base_contract_schemes.1782 }
|
||||
set_variable = {
|
||||
name = event_ratio_tracker
|
||||
|
|
@ -550,6 +568,33 @@ on_travel_plan_movement = {
|
|||
}
|
||||
trigger_event = migration_events.1051
|
||||
}
|
||||
#Christians get the opportunity to acquire pilgrim badges from other Christian faiths, if out traveling
|
||||
if = {
|
||||
limit = {
|
||||
faith.religion = religion:catholic_religion
|
||||
religion:catholic_religion = {
|
||||
any_faith = {
|
||||
any_holy_site_barony = {
|
||||
title_province = { this = root.current_travel_plan.current_location }
|
||||
}
|
||||
}
|
||||
}
|
||||
NOR = {
|
||||
#Not if you already have a badge originating from this place
|
||||
any_character_artifact = {
|
||||
has_variable = is_pilgrim_badge
|
||||
var:pilgrim_badge_location.title_province ?= root.current_travel_plan.current_location
|
||||
}
|
||||
#Nor if you can go on a pilgrimage here, sheesh
|
||||
faith = {
|
||||
any_holy_site_barony = {
|
||||
title_province = { this = root.current_travel_plan.current_location }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_event = travel_events.2310
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -724,6 +769,8 @@ travel_events_on_action = {
|
|||
effect = {
|
||||
#Invalidate Tribute Missions
|
||||
tribute_mission_invalidation_effect = yes
|
||||
# Invalidate Petition Head of Faith travel
|
||||
petition_head_of_faith_invalidation_effect = yes
|
||||
# Invalidate travelling hostages
|
||||
hostage_travel_invalidation_effect = yes
|
||||
# Invalidate travelling wards
|
||||
|
|
@ -777,6 +824,7 @@ travel_events_on_action = {
|
|||
100 = travel_events.2037 #Visit some hunting grounds - Sadistic province owner is manhunting
|
||||
150 = travel_events.2038 #Visit some hunting grounds - Friendly competition with an entourage member
|
||||
100 = travel_events.2200 #A local knight wants to fight someone
|
||||
100 = travel_events.2300 #Thieves stole your pilgrim badge (and other things) in the night!
|
||||
100 = travel_events.3000 #Rumours about grotesque creatures
|
||||
100 = travel_events.3010 #Lost pet
|
||||
200 = travel_events.3030 #Infatuated knight
|
||||
|
|
@ -907,6 +955,9 @@ travel_events_on_action = {
|
|||
100 = legend_spread_events.8010 #Someone challenges you to a duel
|
||||
100 = travel_events.5001 #You come across a local legend
|
||||
|
||||
# PAM Travel Events
|
||||
50 = pam_generic_events.0010 # Meet a same-faith ruler hunting in their holding
|
||||
|
||||
#EP3 Travel Events
|
||||
1000 = ep3_travel_events.3000 #Waters of the Jordan
|
||||
300 = ep3_travel_events.3002 #Where Armenians Govern
|
||||
|
|
@ -949,6 +1000,13 @@ travel_events_on_action = {
|
|||
50 = tgp_japan_yearly_events.1040 # 1040 - You come across a red bridge
|
||||
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
|
||||
|
||||
# PAM Travel Events
|
||||
100 = pam_theocratic_ruler_events.0012 # Theocratic ruler: sacred grove in the forest while traveling through realm
|
||||
|
||||
#Passive Rite Learning travel events
|
||||
150 = rite_travel_events.1000 # Fascinating Stranger - full rite learn
|
||||
150 = rite_travel_events.2000 # Revelation - resonant core tenet
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1351,7 +1409,7 @@ on_travel_plan_start = {
|
|||
title = wanderer_restlessness_removal_title
|
||||
right_icon = root
|
||||
add_wanderer_lifestyle_xp = 250
|
||||
stress_impact = { base = -25 }
|
||||
stress_and_fulfillment_impact = { base = -25 }
|
||||
remove_character_modifier = wanderer_restlessness_modifier
|
||||
}
|
||||
}
|
||||
|
|
@ -1362,13 +1420,18 @@ on_travel_plan_start = {
|
|||
has_variable = prepare_travels_value
|
||||
var:prepare_travels_value >= 1
|
||||
}
|
||||
current_travel_plan = {
|
||||
set_variable = {
|
||||
name = prepare_travels_modifier_value
|
||||
value = root.var:prepare_travels_value
|
||||
}
|
||||
add_travel_plan_modifier = prepare_travels_modifier
|
||||
#current_travel_plan = {
|
||||
# set_variable = {
|
||||
# name = prepare_travels_modifier_value
|
||||
# value = root.var:prepare_travels_value
|
||||
# }
|
||||
# add_travel_plan_modifier = prepare_travels_modifier
|
||||
#}
|
||||
set_variable = {
|
||||
name = prepare_travels_modifier_value
|
||||
value = root.var:prepare_travels_value
|
||||
}
|
||||
add_character_modifier = prepare_travels_character_modifier
|
||||
remove_variable = prepare_travels_value
|
||||
}
|
||||
}
|
||||
|
|
@ -1701,6 +1764,14 @@ on_travel_plan_complete = {
|
|||
|
||||
#Remove characters added by travel options at the start of travel plan
|
||||
remove_travel_option_added_character_effect = yes
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
has_character_modifier = prepare_travels_character_modifier
|
||||
}
|
||||
remove_character_modifier = prepare_travels_character_modifier
|
||||
remove_variable = prepare_travels_modifier_value
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1718,6 +1789,21 @@ on_travel_plan_abort = {
|
|||
limit = { has_variable = ep3_laamp_decision_1000_is_excavating }
|
||||
remove_variable = ep3_laamp_decision_1000_is_excavating
|
||||
}
|
||||
#PAM Holy Myron: a landed chaplain's journey was interrupted
|
||||
#Unlanded chaplains never reach this on_action
|
||||
#Death and cancel hooks plus thirty-year variable lifetimes cover them instead
|
||||
if = {
|
||||
limit = { has_variable = pam_holy_myron_journey_tier }
|
||||
var:pam_holy_myron_liege ?= {
|
||||
send_interface_toast = {
|
||||
type = event_toast_effect_bad
|
||||
title = pam_holy_myron_journey_abandoned_toast
|
||||
left_icon = root
|
||||
remove_decision_cooldown = pam_prepare_holy_myron_decision
|
||||
}
|
||||
}
|
||||
pam_holy_myron_journey_cleanup_effect = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
exists = var:travel_plan_start_date
|
||||
|
|
@ -1803,6 +1889,17 @@ on_travel_plan_abort = {
|
|||
|
||||
#Remove characters added by travel options at the start of travel plan
|
||||
remove_travel_option_added_character_effect = yes
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
has_character_modifier = prepare_travels_character_modifier
|
||||
}
|
||||
remove_character_modifier = prepare_travels_character_modifier
|
||||
remove_variable = prepare_travels_modifier_value
|
||||
}
|
||||
}
|
||||
on_actions = {
|
||||
petition_head_of_faith_travel_planner_exit
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1815,6 +1912,19 @@ on_travel_plan_cancel = {
|
|||
limit = { has_variable = ep3_laamp_decision_1000_is_excavating }
|
||||
remove_variable = ep3_laamp_decision_1000_is_excavating
|
||||
}
|
||||
#PAM - Holy Myron: the herb-gathering journey was called off; tell the sender and clean up
|
||||
if = {
|
||||
limit = { has_variable = pam_holy_myron_journey_tier }
|
||||
var:pam_holy_myron_liege ?= {
|
||||
send_interface_toast = {
|
||||
type = event_toast_effect_bad
|
||||
title = pam_holy_myron_journey_abandoned_toast
|
||||
left_icon = root
|
||||
remove_decision_cooldown = pam_prepare_holy_myron_decision
|
||||
}
|
||||
}
|
||||
pam_holy_myron_journey_cleanup_effect = yes
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_character_flag = petition_liege_character_flag
|
||||
|
|
@ -1947,6 +2057,9 @@ on_travel_plan_cancel = {
|
|||
requested_tribute_mission_penalty_effect = yes
|
||||
tribute_mission_clean_up_variables_effect = yes
|
||||
}
|
||||
on_actions = {
|
||||
petition_head_of_faith_travel_planner_exit
|
||||
}
|
||||
}
|
||||
|
||||
# If the travel is due to an activity and the activity is now complete, this will trigger.
|
||||
|
|
@ -2015,17 +2128,8 @@ on_visited_ep3_monument = {
|
|||
}
|
||||
|
||||
#Used in the debug interaction debug_move_domicile_interaction
|
||||
# handled in ep3_contract_event.0002
|
||||
on_travel_relocation_start = {
|
||||
effect = {
|
||||
every_courtier_or_guest = { #take everyone you have with you
|
||||
limit = {
|
||||
NOT = { exists = current_travel_plan }
|
||||
}
|
||||
root.current_travel_plan = {
|
||||
add_companion = prev
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#Used in the debug interaction debug_move_domicile_interaction
|
||||
|
|
@ -2115,4 +2219,4 @@ zone_rouge_death_event = {
|
|||
85 = 0
|
||||
15 = NEOW_travel_event.0001
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue