parent
15a5108e23
commit
c4b6d9bdeb
250 changed files with 11067 additions and 16365 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -26,7 +26,7 @@ activity_feast = {
|
|||
has_character_flag = feasts_a_lot
|
||||
short_term_gold >= feast_activity_cost
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
short_term_treasury >= feast_activity_cost
|
||||
}
|
||||
}
|
||||
|
|
@ -447,8 +447,8 @@ activity_feast = {
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
short_term_treasury >= feast_activity_cost
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
short_term_treasury >= hunt_activity_base_cost
|
||||
short_term_treasury >= major_gold_value
|
||||
}
|
||||
add = {
|
||||
|
|
@ -985,7 +985,7 @@ activity_feast = {
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
government_allows = barter
|
||||
|
|
@ -1008,7 +1008,7 @@ activity_feast = {
|
|||
limit = {
|
||||
OR = {
|
||||
NAND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
AND = {
|
||||
|
|
@ -1067,7 +1067,7 @@ activity_feast = {
|
|||
OR = {
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
government_allows = barter
|
||||
|
|
@ -1091,7 +1091,7 @@ activity_feast = {
|
|||
if = {
|
||||
limit = {
|
||||
NAND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
}
|
||||
|
|
@ -3021,7 +3021,7 @@ activity_feast = {
|
|||
has_character_flag = feast_ai_override
|
||||
}
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
}
|
||||
|
|
@ -3044,7 +3044,7 @@ activity_feast = {
|
|||
limit = {
|
||||
OR = {
|
||||
NAND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
AND = {
|
||||
|
|
@ -3311,7 +3311,7 @@ activity_feast = {
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
government_allows = barter
|
||||
|
|
@ -3328,7 +3328,7 @@ activity_feast = {
|
|||
limit = {
|
||||
OR = {
|
||||
NAND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
AND = {
|
||||
|
|
@ -3405,7 +3405,7 @@ activity_feast = {
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
government_allows = barter
|
||||
|
|
@ -3422,7 +3422,7 @@ activity_feast = {
|
|||
limit = {
|
||||
OR = {
|
||||
NAND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
AND = {
|
||||
|
|
@ -3510,7 +3510,7 @@ activity_feast = {
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
government_allows = barter
|
||||
|
|
@ -3527,7 +3527,7 @@ activity_feast = {
|
|||
limit = {
|
||||
OR = {
|
||||
NAND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
AND = {
|
||||
|
|
@ -3622,7 +3622,7 @@ activity_feast = {
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
government_allows = barter
|
||||
|
|
@ -3639,7 +3639,7 @@ activity_feast = {
|
|||
limit = {
|
||||
OR = {
|
||||
NAND = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
AND = {
|
||||
|
|
@ -3741,7 +3741,7 @@ activity_feast = {
|
|||
gold = {
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
value = 0
|
||||
|
|
@ -3801,7 +3801,7 @@ activity_feast = {
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = {
|
||||
|
|
@ -3887,7 +3887,7 @@ activity_feast = {
|
|||
gold = {
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
value = 0
|
||||
|
|
@ -3947,7 +3947,7 @@ activity_feast = {
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = {
|
||||
|
|
@ -4028,7 +4028,7 @@ activity_feast = {
|
|||
gold = {
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
value = 0
|
||||
|
|
@ -4088,7 +4088,7 @@ activity_feast = {
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = feasts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = feasts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = {
|
||||
|
|
@ -4164,7 +4164,7 @@ activity_feast = {
|
|||
# PHASES
|
||||
###################
|
||||
|
||||
max_guest_arrival_delay_time = { months = 5 }
|
||||
max_guest_arrival_delay_time = { months = 8 }
|
||||
|
||||
phases = {
|
||||
# Meal.
|
||||
|
|
@ -4874,45 +4874,6 @@ activity_feast = {
|
|||
limit = { has_character_modifier = mpo_si_slaughtered_animals }
|
||||
remove_character_modifier = mpo_si_slaughtered_animals
|
||||
}
|
||||
random_knight = {
|
||||
limit = {
|
||||
can_unlock_accolade_attribute_trigger = {
|
||||
ATTRIBUTE = master_of_revels
|
||||
}
|
||||
}
|
||||
weight = {
|
||||
base = 1
|
||||
modifier = {
|
||||
add = 50
|
||||
is_acclaimed = yes
|
||||
}
|
||||
modifier = {
|
||||
add = 50
|
||||
involved_activity ?= scope:activity
|
||||
}
|
||||
}
|
||||
save_scope_as = accolade_knight
|
||||
liege = {
|
||||
save_scope_as = accolade_liege
|
||||
set_variable = {
|
||||
name = accolade_progress
|
||||
value = 0
|
||||
}
|
||||
send_interface_message = {
|
||||
type = msg_accolade_eligibility
|
||||
title = accolade_master_of_revels_unlock.t_feast
|
||||
left_icon = scope:accolade_knight
|
||||
right_icon = scope:accolade_liege
|
||||
custom_tooltip = accolade_master_of_revels_unlock.tt
|
||||
scope:accolade_knight = {
|
||||
set_variable = {
|
||||
name = master_of_revels_attribute_unlock
|
||||
value = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
# Conclusion event for guests
|
||||
else = {
|
||||
|
|
|
|||
|
|
@ -1461,7 +1461,7 @@ activity_funeral = {
|
|||
# PHASES
|
||||
###################
|
||||
|
||||
max_guest_arrival_delay_time = { months = 5 }
|
||||
max_guest_arrival_delay_time = { months = 8 }
|
||||
|
||||
phases = {
|
||||
# Mingling and socialising
|
||||
|
|
|
|||
|
|
@ -37,23 +37,6 @@
|
|||
|
||||
is_location_valid = {
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:host = {
|
||||
is_ai = no
|
||||
is_landless_adventurer = no
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = hike_province_requirement_landed
|
||||
county_controller ?= {
|
||||
OR = {
|
||||
target_is_liege_or_above = scope:host
|
||||
this = scope:host
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
scope:host = {
|
||||
is_ai = no
|
||||
|
|
@ -79,6 +62,22 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
trigger_else_if = {
|
||||
limit = {
|
||||
scope:host = {
|
||||
is_ai = no
|
||||
is_landless_adventurer = no
|
||||
}
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = hike_province_requirement_landed
|
||||
scope:host = {
|
||||
any_realm_province = {
|
||||
this = root
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
trigger_else = {
|
||||
always = yes
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
ai_has_warlike_personality = yes
|
||||
}
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
short_term_treasury >= hunt_activity_base_cost
|
||||
}
|
||||
government_has_flag = government_is_nomadic
|
||||
|
|
@ -305,7 +305,7 @@
|
|||
has_character_flag = free_hunt
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
AND = {
|
||||
|
|
@ -424,7 +424,7 @@
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = {
|
||||
|
|
@ -711,7 +711,7 @@
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
}
|
||||
|
|
@ -798,7 +798,7 @@
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = { # Base cost, scaled by era
|
||||
|
|
@ -1360,7 +1360,7 @@
|
|||
}
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
short_term_treasury >= hunt_activity_base_cost
|
||||
short_term_treasury >= major_gold_value
|
||||
|
|
@ -1508,9 +1508,11 @@
|
|||
limit = {
|
||||
any_held_title = {
|
||||
tier = tier_county
|
||||
any_county_province_epidemic = {
|
||||
count >= 1
|
||||
outbreak_intensity < apocalyptic
|
||||
any_county_province = {
|
||||
any_province_epidemic = {
|
||||
count >= 1
|
||||
outbreak_intensity < apocalyptic
|
||||
}
|
||||
}
|
||||
}
|
||||
would_follow_social_distancing_value >= -1
|
||||
|
|
@ -1523,9 +1525,11 @@
|
|||
else_if = {
|
||||
limit = {
|
||||
any_realm_county = {
|
||||
any_county_province_epidemic = {
|
||||
count >= 1
|
||||
outbreak_intensity < apocalyptic
|
||||
any_county_province = {
|
||||
any_province_epidemic = {
|
||||
count >= 1
|
||||
outbreak_intensity < apocalyptic
|
||||
}
|
||||
}
|
||||
}
|
||||
would_follow_social_distancing_value >= -1
|
||||
|
|
@ -1539,9 +1543,11 @@
|
|||
limit = {
|
||||
any_held_title = {
|
||||
tier = tier_county
|
||||
any_county_province_epidemic = {
|
||||
count >= 1
|
||||
outbreak_intensity = apocalyptic
|
||||
any_county_province = {
|
||||
any_province_epidemic = {
|
||||
count >= 1
|
||||
outbreak_intensity = apocalyptic
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1554,9 +1560,11 @@
|
|||
limit = {
|
||||
any_held_title = {
|
||||
tier = tier_county
|
||||
any_county_province_epidemic = {
|
||||
count >= 1
|
||||
outbreak_intensity = apocalyptic
|
||||
any_county_province = {
|
||||
any_province_epidemic = {
|
||||
count >= 1
|
||||
outbreak_intensity = apocalyptic
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1831,13 +1839,6 @@
|
|||
}
|
||||
desc = activity_hunt_province_desc_rainbow_mountains_major
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
has_building_or_higher = chocolate_hills_01
|
||||
NOT = { scope:special_option ?= flag:hunt_type_nerge }
|
||||
}
|
||||
desc = activity_hunt_province_desc_chocolate_hills_major
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
has_building_or_higher = visegrad_castle_01
|
||||
|
|
@ -1845,17 +1846,6 @@
|
|||
}
|
||||
desc = activity_hunt_province_desc_visegrad_castle_01_major
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
county = {
|
||||
any_county_province = {
|
||||
has_building_or_higher = legendary_hunting_lodge
|
||||
}
|
||||
}
|
||||
NOT = { scope:special_option ?= flag:hunt_type_nerge }
|
||||
}
|
||||
desc = activity_hunt_province_desc_legendary_hunting_lodge
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = {
|
||||
OR = {
|
||||
|
|
@ -3752,7 +3742,7 @@
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
}
|
||||
|
|
@ -3804,7 +3794,7 @@
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = {
|
||||
|
|
@ -4223,7 +4213,7 @@
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
}
|
||||
|
|
@ -4264,7 +4254,7 @@
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = {
|
||||
|
|
@ -4454,7 +4444,7 @@
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
}
|
||||
|
|
@ -4495,7 +4485,7 @@
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = {
|
||||
|
|
@ -4745,7 +4735,7 @@
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
}
|
||||
|
|
@ -4786,7 +4776,7 @@
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = {
|
||||
|
|
@ -4961,7 +4951,7 @@
|
|||
}
|
||||
government_has_flag = government_is_mandala
|
||||
AND = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
}
|
||||
|
|
@ -5002,7 +4992,7 @@
|
|||
treasury = { # Make sure this matches the gold cost above
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_costs_treasury }
|
||||
house ?= { has_house_power_parameter = hunts_costs_treasury }
|
||||
has_treasury = yes
|
||||
}
|
||||
add = {
|
||||
|
|
@ -5133,7 +5123,7 @@
|
|||
# PHASES
|
||||
###################
|
||||
|
||||
max_guest_arrival_delay_time = { months = 5 }
|
||||
max_guest_arrival_delay_time = { months = 8 }
|
||||
|
||||
phases = {
|
||||
hunt_phase = {
|
||||
|
|
@ -5257,7 +5247,7 @@
|
|||
# House aspiration - gain merit
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = hunts_provides_merit }
|
||||
house ?= { has_house_power_parameter = hunts_provides_merit }
|
||||
}
|
||||
scope:activity = {
|
||||
add_activity_log_entry = {
|
||||
|
|
@ -5795,49 +5785,5 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
this = scope:host
|
||||
}
|
||||
random_knight = {
|
||||
limit = {
|
||||
can_unlock_accolade_attribute_trigger = {
|
||||
ATTRIBUTE = huntsmaster
|
||||
}
|
||||
}
|
||||
weight = {
|
||||
base = 1
|
||||
modifier = {
|
||||
add = 50
|
||||
is_acclaimed = yes
|
||||
}
|
||||
modifier = {
|
||||
add = 50
|
||||
involved_activity ?= scope:activity
|
||||
}
|
||||
}
|
||||
save_scope_as = accolade_knight
|
||||
liege = {
|
||||
save_scope_as = accolade_liege
|
||||
set_variable = {
|
||||
name = accolade_progress
|
||||
value = 0
|
||||
}
|
||||
send_interface_message = {
|
||||
type = msg_accolade_eligibility
|
||||
title = accolade_huntsmaster_unlock.t
|
||||
left_icon = scope:accolade_knight
|
||||
right_icon = scope:accolade_liege
|
||||
custom_tooltip = accolade_huntsmaster_unlock.tt
|
||||
scope:accolade_knight = {
|
||||
set_variable = {
|
||||
name = huntsmaster_attribute_unlock
|
||||
value = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,6 @@
|
|||
limit = {
|
||||
faith = { has_doctrine_parameter = mandatory_hajj }
|
||||
capital_province.barony ?= title:b_makka
|
||||
is_landless_adventurer = no
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = activity_pilgrimage.is_location_valid.capital_is_mecca
|
||||
|
|
@ -127,10 +126,7 @@
|
|||
#Invalidate flag, until/unless this is fixed in code
|
||||
NOT = { has_variable = pilgrimage_invalidated_illness }
|
||||
#Don't change your capital to be the holy site destination
|
||||
trigger_if = {
|
||||
limit = { is_landless_adventurer = no }
|
||||
capital_province.barony != scope:activity.activity_location.barony
|
||||
}
|
||||
capital_province.barony != scope:activity.activity_location.barony
|
||||
}
|
||||
# Converting mid-pilgrimage is a big no-no.
|
||||
scope:activity = {
|
||||
|
|
@ -256,15 +252,10 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
#You can't pilgrimage to your own capital - Except for if you are an adventurer because then you travel around all the time anyway
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:host = { is_landless_adventurer = no }
|
||||
}
|
||||
custom_tooltip = {
|
||||
text = activity_pilgrimage.is_location_valid.capital_is_holy_site
|
||||
scope:host.capital_province != root
|
||||
}
|
||||
#You can't pilgrimage to your own capital
|
||||
custom_tooltip = {
|
||||
text = activity_pilgrimage.is_location_valid.capital_is_holy_site
|
||||
scope:host.capital_province != root
|
||||
}
|
||||
|
||||
# If you are supposed to be the realm's reserve ruler, then you can't take a multi-year foreign trip.
|
||||
|
|
@ -275,14 +266,10 @@
|
|||
custom_tooltip = {
|
||||
text = activity_pilgrimage.serving_diarch
|
||||
county.holder = {
|
||||
OR = {
|
||||
any_liege_or_above = { this = scope:host.liege }
|
||||
this = scope:host.liege
|
||||
}
|
||||
any_liege_or_above = { this = scope:host.liege }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
trigger_if = {
|
||||
limit = {
|
||||
scope:host = {
|
||||
|
|
@ -865,13 +852,13 @@
|
|||
gold = {
|
||||
add = {
|
||||
add = {
|
||||
value = pilgrimage_base_cost
|
||||
value = root.pilgrimage_base_cost
|
||||
desc = pilgrimage_base_cost
|
||||
}
|
||||
add = {
|
||||
value = pilgrimage_base_cost
|
||||
value = root.pilgrimage_base_cost
|
||||
multiply = activity_cost_scale_by_era
|
||||
subtract = pilgrimage_base_cost
|
||||
subtract = root.pilgrimage_base_cost
|
||||
desc = activity_cost_scale_by_era_desc
|
||||
}
|
||||
if = {
|
||||
|
|
@ -902,7 +889,7 @@
|
|||
dynasty ?= { has_dynasty_perk = ep2_activities_legacy_1 }
|
||||
}
|
||||
subtract = {
|
||||
value = pilgrimage_base_cost
|
||||
value = root.pilgrimage_base_cost
|
||||
multiply = ep2_activities_legacy_1_pilgrimages_discount_value
|
||||
desc = ep2_activities_legacy_track
|
||||
}
|
||||
|
|
@ -935,7 +922,7 @@
|
|||
#House Aspiration Humility
|
||||
if = {
|
||||
limit = {
|
||||
house ?= { has_house_aspiration_parameter = humility_pilgrimage_discount }
|
||||
house ?= { has_house_power_parameter = humility_pilgrimage_discount }
|
||||
}
|
||||
multiply = {
|
||||
value = 0.75
|
||||
|
|
@ -1028,12 +1015,6 @@
|
|||
}
|
||||
min = minor_gold_value
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
has_title = title:e_minister_of_revenue
|
||||
}
|
||||
multiply = 0.85
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1182,7 +1163,7 @@
|
|||
dynasty ?= { has_dynasty_perk = ep2_activities_legacy_1 }
|
||||
}
|
||||
subtract = {
|
||||
value = pilgrimage_base_cost
|
||||
value = root.pilgrimage_base_cost
|
||||
multiply = ep2_activities_legacy_1_pilgrimages_discount_value
|
||||
desc = ep2_activities_legacy_track
|
||||
}
|
||||
|
|
@ -1239,12 +1220,6 @@
|
|||
divide = 5
|
||||
ceiling = yes
|
||||
multiply = 5
|
||||
if = {
|
||||
limit = {
|
||||
has_title = title:e_minister_of_revenue
|
||||
}
|
||||
multiply = 0.85
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1387,7 +1362,6 @@
|
|||
NAND = {
|
||||
exists = capital_province
|
||||
capital_province.barony = title:b_makka
|
||||
is_landless_adventurer = no
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1932,34 +1906,6 @@
|
|||
add = 1
|
||||
}
|
||||
}
|
||||
|
||||
# Bonus wandering XP from travel_events_bp3.95
|
||||
if = {
|
||||
limit = {
|
||||
has_variable_list = holy_site_dreams
|
||||
is_target_in_variable_list = {
|
||||
name = holy_site_dreams
|
||||
target = root.location.barony
|
||||
}
|
||||
}
|
||||
send_interface_message = {
|
||||
type = send_interface_message_good
|
||||
title = travel_events_bp3.95.t
|
||||
left_icon = root
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
has_lifestyle = wanderer_lifestyle
|
||||
}
|
||||
add_wanderer_lifestyle_xp = 500
|
||||
}
|
||||
stress_impact = {
|
||||
base = major_stress_impact_loss
|
||||
zealous = medium_stress_impact_loss
|
||||
}
|
||||
add_piety = major_piety_gain
|
||||
}
|
||||
}
|
||||
|
||||
#Arrival events - where Pilgrims gain their Pilgrim trait
|
||||
#We have the Obligatory option selected - we skip the destination events
|
||||
|
|
@ -2095,10 +2041,6 @@
|
|||
|
||||
can_be_activity_guest = {
|
||||
age > 5
|
||||
OR = {
|
||||
faith.religion = scope:host.faith.religion
|
||||
current_travel_plan ?= { travel_plan_owner = scope:host } #When people join you on the way there.
|
||||
}
|
||||
}
|
||||
|
||||
max_guests = 30
|
||||
|
|
@ -2904,11 +2846,7 @@
|
|||
trigger = {
|
||||
scope:host = {
|
||||
faith.religion = {
|
||||
OR = {
|
||||
is_in_family = rf_eastern
|
||||
is_in_family = rf_sinitic
|
||||
this = religion:shintoism_religion
|
||||
}
|
||||
is_in_family = rf_eastern
|
||||
}
|
||||
culture = {
|
||||
has_graphical_east_asia_culture_group_trigger = yes
|
||||
|
|
@ -2925,19 +2863,6 @@
|
|||
environment = "environment_ep3_holysite_orthodox"
|
||||
ambience = "event:/DLC/EP3/SFX/Events/Event_Images/ep3_evn_eventimage_orthodox_holy_site"
|
||||
}
|
||||
background = {
|
||||
trigger = {
|
||||
activity_location.culture = {
|
||||
OR = {
|
||||
has_graphical_mena_culture_group_trigger = yes
|
||||
has_graphical_iranian_culture_group_trigger = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
texture = "gfx/interface/illustrations/event_scenes/ep2_holysite_mena.dds"
|
||||
environment = "environment_generic_holy_site_mena"
|
||||
ambience = "event:/SFX/Events/Backgrounds/town_market_middleeastern_day"
|
||||
}
|
||||
background = {
|
||||
trigger = {
|
||||
activity_location.culture = { has_graphical_mena_culture_group_trigger = yes }
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@
|
|||
}
|
||||
|
||||
wait_time_before_start = { days = 7 }
|
||||
max_guest_arrival_delay_time = { months = 5 }
|
||||
max_guest_arrival_delay_time = { months = 8 }
|
||||
|
||||
|
||||
###################
|
||||
|
|
|
|||
|
|
@ -228,7 +228,6 @@
|
|||
limit = {
|
||||
any_vassal = {
|
||||
count >= 5
|
||||
highest_held_title_tier >= tier_county
|
||||
}
|
||||
}
|
||||
desc = "I have many vassals"
|
||||
|
|
@ -2749,11 +2748,6 @@
|
|||
|
||||
# Scripted Modifiers
|
||||
activity_guest_shared_ai_accept_modifier = yes
|
||||
modifier = {
|
||||
is_acclaimed = yes
|
||||
add = 20
|
||||
desc = ACTIVITY_GUEST_ACCLAIMED_KNIGHT_REASON
|
||||
}
|
||||
}
|
||||
|
||||
travel_entourage_selection = {
|
||||
|
|
@ -3341,49 +3335,6 @@
|
|||
value = yes
|
||||
}
|
||||
}
|
||||
random_knight = {
|
||||
limit = {
|
||||
can_unlock_accolade_attribute_trigger = {
|
||||
ATTRIBUTE = reeve
|
||||
}
|
||||
}
|
||||
weight = {
|
||||
base = -10
|
||||
modifier = {
|
||||
add = stewardship
|
||||
factor = 1.5
|
||||
}
|
||||
modifier = {
|
||||
add = 10
|
||||
is_acclaimed = yes
|
||||
}
|
||||
modifier = {
|
||||
add = 10
|
||||
involved_activity ?= scope:activity
|
||||
}
|
||||
}
|
||||
save_scope_as = accolade_knight
|
||||
liege = {
|
||||
save_scope_as = accolade_liege
|
||||
set_variable = {
|
||||
name = accolade_progress
|
||||
value = 0
|
||||
}
|
||||
send_interface_message = {
|
||||
type = msg_accolade_eligibility
|
||||
title = accolade_reeve_unlock.t
|
||||
left_icon = scope:accolade_knight
|
||||
right_icon = scope:accolade_liege
|
||||
custom_tooltip = accolade_reeve_unlock.tt
|
||||
scope:accolade_knight = {
|
||||
set_variable = {
|
||||
name = reeve_attribute_unlock
|
||||
value = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,11 +45,9 @@
|
|||
#That someone and their betrothed are alive and adults and can marry
|
||||
var:promised_grand_wedding_marriage_countdown = {
|
||||
is_valid_grand_wedding_special_guest_trigger = { OTHER_SPOUSE = root.var:promised_grand_wedding_marriage_countdown.betrothed }
|
||||
NOT = { any_invited_activity = {} }
|
||||
}
|
||||
var:promised_grand_wedding_marriage_countdown.betrothed = {
|
||||
is_valid_grand_wedding_special_guest_trigger = { OTHER_SPOUSE = root.var:promised_grand_wedding_marriage_countdown }
|
||||
NOT = { any_invited_activity = {} }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -73,7 +71,12 @@
|
|||
scope:activity.var:spouse_2_var = {
|
||||
is_alive = no
|
||||
}
|
||||
is_bloody_wedding = yes
|
||||
scope:activity = { #you're in a murder wedding
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_bloody
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -89,7 +92,10 @@
|
|||
}
|
||||
scope:host = {
|
||||
# The host becoming unlanded will invalidate
|
||||
is_landed_or_landless_administrative = yes
|
||||
OR = {
|
||||
is_landed_or_landless_administrative = yes
|
||||
has_government = landless_minority_government
|
||||
}
|
||||
# The new host being only a baron will invalidate
|
||||
highest_held_title_tier >= tier_county
|
||||
# Incapable host will invalidate
|
||||
|
|
@ -129,7 +135,12 @@
|
|||
is_ai = no
|
||||
AND = {
|
||||
is_alive = no
|
||||
is_bloody_wedding = yes
|
||||
scope:activity = { #you're in a murder wedding
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_bloody
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -156,7 +167,7 @@
|
|||
|
||||
if = {
|
||||
limit = {
|
||||
scope:host = { is_physically_able = no }
|
||||
scope:host = { has_trait = incapable }
|
||||
}
|
||||
scope:activity = {
|
||||
activity_type = { save_scope_as = activity_type }
|
||||
|
|
@ -176,7 +187,8 @@
|
|||
scope:activity = {
|
||||
has_variable = wedding_invalidated_said_no
|
||||
}
|
||||
scope:spouse_1 ?= { is_alive = yes }
|
||||
exists = scope:spouse_1
|
||||
scope:spouse_1 = { is_alive = yes }
|
||||
}
|
||||
scope:spouse_1 = { trigger_event = ep2_wedding.0152 }
|
||||
}
|
||||
|
|
@ -245,8 +257,12 @@
|
|||
scope:activity.var:spouse_2_var ?= {
|
||||
is_alive = no
|
||||
}
|
||||
#you're not in a murder wedding
|
||||
is_bloody_wedding = no
|
||||
scope:activity = { #you're not in a murder wedding
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_normal
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -479,8 +495,8 @@
|
|||
}
|
||||
|
||||
if = {
|
||||
limit = { var:officiant ?= { is_alive = yes } }
|
||||
var:officiant = {
|
||||
limit = { exists = scope:officiant }
|
||||
scope:officiant = {
|
||||
if = {
|
||||
limit = { has_character_flag = need_priest_outfit }
|
||||
remove_character_flag = need_priest_outfit
|
||||
|
|
@ -498,9 +514,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
scope:host = {
|
||||
clean_grand_wedding_betrothal_variables = yes
|
||||
}
|
||||
}
|
||||
|
||||
on_host_death = {
|
||||
|
|
@ -509,15 +522,9 @@
|
|||
# Make the player heir the new host if attending (unless it was the host's wedding!)
|
||||
if = {
|
||||
limit = {
|
||||
scope:host.player_heir ?= {
|
||||
OR = {
|
||||
involved_activity ?= scope:activity
|
||||
AND = {
|
||||
location = scope:activity.activity_location
|
||||
is_available_allow_travelling = yes
|
||||
NOT = { exists = involved_activity }
|
||||
}
|
||||
}
|
||||
exists = scope:host.player_heir
|
||||
scope:host.player_heir = {
|
||||
involved_activity = scope:activity
|
||||
}
|
||||
scope:host = {
|
||||
NOR = {
|
||||
|
|
@ -526,27 +533,9 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
scope:host.player_heir = {
|
||||
save_scope_as = new_host
|
||||
if = {
|
||||
limit = { NOT = { exists = involved_activity } }
|
||||
add_to_activity = scope:activity
|
||||
}
|
||||
}
|
||||
scope:host.player_heir = { save_scope_as = new_host }
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:spouse_1 = { is_landed_or_landless_administrative = yes }
|
||||
}
|
||||
scope:spouse_1 = { save_scope_as = new_host }
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:spouse_2 = { is_landed_or_landless_administrative = yes }
|
||||
}
|
||||
scope:spouse_2 = { save_scope_as = new_host }
|
||||
}
|
||||
# Otherwise, spouse_1 takes over (and invalidate at once)
|
||||
# Otherwise, spouse_1 takes over
|
||||
else = {
|
||||
scope:spouse_1 = { save_scope_as = new_host }
|
||||
}
|
||||
|
|
@ -644,14 +633,6 @@
|
|||
desc = "Holy Site"
|
||||
}
|
||||
}
|
||||
#Kizuki Taisha
|
||||
if = {
|
||||
limit = { has_building = izumo_taisha_01 }
|
||||
add = {
|
||||
value = 30
|
||||
desc = "Kizuki Taisha"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
max_province_icons = 5
|
||||
|
|
@ -699,11 +680,6 @@
|
|||
limit = { barony = { is_holy_site_of = scope:host.faith } }
|
||||
add = 75
|
||||
}
|
||||
#Kizuki Taisha
|
||||
if = {
|
||||
limit = { has_building = izumo_taisha_01 }
|
||||
add = 30
|
||||
}
|
||||
}
|
||||
|
||||
province_description = {
|
||||
|
|
@ -739,10 +715,6 @@
|
|||
trigger = { has_building = pleasure_dome }
|
||||
desc = province_desc_wedding_pleasure_dome
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = { has_building = izumo_taisha_01 }
|
||||
desc = province_desc_wedding_izumo_taisha
|
||||
}
|
||||
triggered_desc = {
|
||||
trigger = { barony = { is_holy_site_of = scope:host.faith } }
|
||||
desc = province_desc_wedding_holy_site
|
||||
|
|
@ -2033,32 +2005,105 @@
|
|||
scope:host = { trigger_event = ep2_wedding.0101 }
|
||||
}
|
||||
else = { trigger_event = ep2_wedding.0100 }
|
||||
# Accolade stuff
|
||||
if = {
|
||||
limit = { this = scope:host }
|
||||
# Accolade stuff
|
||||
if = {
|
||||
limit = {
|
||||
any_active_accolade = {
|
||||
accolade_parameter = accolade_party_fertility
|
||||
}
|
||||
}
|
||||
add_character_modifier = {
|
||||
modifier = accolade_charmer_party_modifier
|
||||
limit = {
|
||||
this = scope:host
|
||||
any_active_accolade = {
|
||||
accolade_parameter = accolade_party_fertility
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
any_active_accolade = {
|
||||
accolade_parameter = accolade_party_fertility_high
|
||||
}
|
||||
}
|
||||
add_character_modifier = {
|
||||
modifier = accolade_charmer_party_high_modifier
|
||||
}
|
||||
add_character_modifier = {
|
||||
modifier = accolade_charmer_party_modifier
|
||||
}
|
||||
wedding_assign_officiant_effect = yes
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
this = scope:host
|
||||
any_active_accolade = {
|
||||
accolade_parameter = accolade_party_fertility_high
|
||||
}
|
||||
}
|
||||
add_character_modifier = {
|
||||
modifier = accolade_charmer_party_high_modifier
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
exists = scope:host.faith.religious_head
|
||||
scope:host.faith.religious_head = {
|
||||
NOR = {
|
||||
this = scope:activity.special_guest:spouse_1
|
||||
this = scope:activity.special_guest:spouse_2
|
||||
}
|
||||
}
|
||||
scope:activity = {
|
||||
any_attending_character = {
|
||||
this = scope:host.faith.religious_head
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:host.faith.religious_head = { save_scope_as = officiant }
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
scope:host != scope:activity.special_guest:spouse_1
|
||||
}
|
||||
scope:host = { save_scope_as = officiant }
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
exists = scope:host.cp:councillor_court_chaplain
|
||||
scope:activity = {
|
||||
any_attending_character = {
|
||||
this = scope:host.cp:councillor_court_chaplain
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:host.cp:councillor_court_chaplain = { save_scope_as = officiant }
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
NOT = { scope:host.faith = { has_doctrine = doctrine_theocracy_lay_clergy } }
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
NOT = {
|
||||
scope:activity = {
|
||||
any_attending_character = {
|
||||
is_ai = no
|
||||
}
|
||||
}
|
||||
}
|
||||
any_pool_character = {
|
||||
province = scope:activity.activity_location
|
||||
is_physically_able_ai_adult = yes
|
||||
faith = scope:host.faith
|
||||
can_be_clergy_due_to_gender_trigger = yes
|
||||
}
|
||||
}
|
||||
random_pool_character = {
|
||||
province = scope:activity.activity_location
|
||||
limit = {
|
||||
is_physically_able_ai_adult = yes
|
||||
faith = scope:host.faith
|
||||
can_be_clergy_due_to_gender_trigger = yes
|
||||
}
|
||||
save_scope_as = officiant
|
||||
}
|
||||
}
|
||||
else = {
|
||||
create_character = {
|
||||
template = priest_character_template
|
||||
dynasty = none
|
||||
location = scope:host.location
|
||||
save_scope_as = officiant
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:officiant ?= {
|
||||
add_character_flag = officiant
|
||||
}
|
||||
# Fires the conclusion events for every attendee, and advance to next phase, with a delay of 2 months
|
||||
trigger_event = {
|
||||
on_action = wedding_ceremony_ending_event_pulse
|
||||
|
|
@ -2100,12 +2145,17 @@
|
|||
|
||||
if = {
|
||||
limit = {
|
||||
is_bloody_wedding = yes
|
||||
scope:activity = {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_bloody
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if = { #if you have the wedding night kill we progress to that
|
||||
limit = {
|
||||
var:bloody_wedding_murder ?= flag:spouse
|
||||
has_variable = bloody_wedding_murder_spouse_var
|
||||
}
|
||||
scope:activity = { progress_activity_phase_after = { months = 2 } }
|
||||
}
|
||||
|
|
@ -2160,8 +2210,13 @@
|
|||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
is_bloody_wedding = no
|
||||
scope:host = { var:bloody_wedding_murder ?= flag:spouse }
|
||||
scope:activity = {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_normal
|
||||
}
|
||||
}
|
||||
scope:host = { has_variable = bloody_wedding_murder_spouse_var }
|
||||
}
|
||||
}
|
||||
trigger_event = ep2_wedding.0300
|
||||
|
|
@ -2176,35 +2231,58 @@
|
|||
# Bloody Wedding only has a murder event, no regular wnight
|
||||
if = {
|
||||
limit = {
|
||||
is_bloody_wedding = yes
|
||||
scope:activity = {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_bloody
|
||||
}
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
scope:host = scope:activity.special_guest:spouse_1 #if you're the spouse
|
||||
scope:host = { var:bloody_wedding_murder ?= flag:spouse } #and you've chosen to kill them during the wedding night
|
||||
scope:host = { has_variable = bloody_wedding_murder_spouse_var } #and you've chosen to kill them during the wedding night
|
||||
}
|
||||
scope:host = { trigger_event = ep2_wedding.3060 }
|
||||
}
|
||||
}
|
||||
# For a regular wedding
|
||||
else = {
|
||||
# Fires only for the spouses
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
root = scope:activity.special_guest:spouse_1
|
||||
root = scope:activity.special_guest:spouse_2
|
||||
# Fires only for the spouses
|
||||
if = {
|
||||
limit = {
|
||||
OR = {
|
||||
scope:activity = {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_normal
|
||||
}
|
||||
}
|
||||
scope:host = { has_variable = bloody_wedding_backed_down_var }
|
||||
}
|
||||
trigger_event = {
|
||||
on_action = wedding_wnight_spouse_event_pulse
|
||||
OR = {
|
||||
root = scope:activity.special_guest:spouse_1
|
||||
root = scope:activity.special_guest:spouse_2
|
||||
}
|
||||
}
|
||||
# Fires for the guests and host
|
||||
else = {
|
||||
trigger_event = { on_action = wedding_wnight_ongoing_event_pulse }
|
||||
trigger_event = {
|
||||
on_action = wedding_wnight_spouse_event_pulse
|
||||
}
|
||||
}
|
||||
# Fires for the guests
|
||||
else_if = {
|
||||
limit = {
|
||||
OR = {
|
||||
scope:activity = {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_normal
|
||||
}
|
||||
}
|
||||
scope:host = { has_variable = bloody_wedding_backed_down_var }
|
||||
}
|
||||
}
|
||||
trigger_event = { on_action = wedding_wnight_ongoing_event_pulse }
|
||||
}
|
||||
}
|
||||
|
||||
ai_will_do = {
|
||||
|
|
@ -2735,8 +2813,11 @@
|
|||
# Remove the wedding reward for Bloody Weddings
|
||||
if = {
|
||||
limit = {
|
||||
is_bloody_wedding = yes
|
||||
scope:activity = {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_bloody
|
||||
}
|
||||
activity_location.county = {
|
||||
has_county_modifier = ruler_married_here_county_modifier
|
||||
}
|
||||
|
|
@ -2749,7 +2830,19 @@
|
|||
# Clean up for murder host / guests
|
||||
if = {
|
||||
limit = {
|
||||
is_successful_bloody_wedding = yes
|
||||
scope:activity = {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_bloody
|
||||
}
|
||||
}
|
||||
scope:host = {
|
||||
#You haven't failed/backed down
|
||||
NOR = {
|
||||
has_variable = bloody_wedding_backed_down_var
|
||||
has_variable = bloody_murder_fail
|
||||
}
|
||||
}
|
||||
}
|
||||
scope:activity.special_guest:spouse_1 = {
|
||||
save_scope_as = spouse_1
|
||||
|
|
@ -2795,56 +2888,21 @@
|
|||
}
|
||||
remove_character_modifier = accolade_charmer_party_high_modifier
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
this = scope:host
|
||||
}
|
||||
random_knight = {
|
||||
limit = {
|
||||
can_unlock_accolade_attribute_trigger = {
|
||||
ATTRIBUTE = politicker
|
||||
}
|
||||
}
|
||||
weight = {
|
||||
base = 1
|
||||
modifier = {
|
||||
add = 50
|
||||
is_acclaimed = yes
|
||||
}
|
||||
modifier = {
|
||||
add = 50
|
||||
involved_activity ?= scope:activity
|
||||
}
|
||||
}
|
||||
save_scope_as = accolade_knight
|
||||
liege = {
|
||||
save_scope_as = accolade_liege
|
||||
set_variable = {
|
||||
name = accolade_progress
|
||||
value = 0
|
||||
}
|
||||
send_interface_message = {
|
||||
type = msg_accolade_eligibility
|
||||
title = accolade_politicker_unlock.t_wedding
|
||||
left_icon = scope:accolade_knight
|
||||
right_icon = scope:accolade_liege
|
||||
custom_tooltip = accolade_politicker_unlock.tt
|
||||
scope:accolade_knight = {
|
||||
set_variable = {
|
||||
name = politicker_attribute_unlock
|
||||
value = yes
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Rewards for Bloody Weddings given out in event ep2_wedding.0955
|
||||
|
||||
# Rewards for Normal Weddings
|
||||
if = {
|
||||
limit = {
|
||||
is_bloody_wedding = no
|
||||
OR = {
|
||||
scope:activity = {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_normal
|
||||
}
|
||||
}
|
||||
scope:host = { has_variable = bloody_wedding_backed_down_var } #you've backed down from a Red Wedding
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -2949,7 +3007,16 @@
|
|||
limit = {
|
||||
exists = global_var:started_black_dinner_achievement
|
||||
is_ai = no
|
||||
is_successful_bloody_wedding = yes
|
||||
scope:activity = {
|
||||
has_activity_option = {
|
||||
category = special_type
|
||||
option = wedding_type_bloody
|
||||
}
|
||||
}
|
||||
NOR = {
|
||||
has_variable = bloody_murder_fail
|
||||
has_variable = bloody_wedding_backed_down_var
|
||||
}
|
||||
}
|
||||
set_global_variable = {
|
||||
name = finished_black_dinner_achievement
|
||||
|
|
@ -2960,12 +3027,17 @@
|
|||
}
|
||||
# Free the officiant!
|
||||
if = {
|
||||
limit = { has_character_flag = officiant }
|
||||
if = {
|
||||
limit = { has_character_flag = need_priest_outfit }
|
||||
remove_character_flag = need_priest_outfit
|
||||
limit = { exists = scope:officiant }
|
||||
scope:officiant = {
|
||||
if = {
|
||||
limit = { has_character_flag = need_priest_outfit }
|
||||
remove_character_flag = need_priest_outfit
|
||||
}
|
||||
if = {
|
||||
limit = { has_character_flag = officiant }
|
||||
remove_character_flag = officiant
|
||||
}
|
||||
}
|
||||
remove_character_flag = officiant
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue