parent
15a5108e23
commit
c4b6d9bdeb
250 changed files with 11067 additions and 16365 deletions
|
|
@ -644,7 +644,7 @@ scripted_trigger fp1_jomsviking_raid_source_one_wales_trigger = {
|
|||
this.leader.capital_province = {
|
||||
squared_distance = {
|
||||
target = scope:target_county.title_province
|
||||
value <= squared_distance_small
|
||||
value = squared_distance_small
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -653,7 +653,7 @@ scripted_trigger fp1_jomsviking_raid_source_one_ireland_trigger = {
|
|||
this.leader.capital_province = {
|
||||
squared_distance = {
|
||||
target = scope:target_county.title_province
|
||||
value <= squared_distance_medium
|
||||
value = squared_distance_medium
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -662,7 +662,7 @@ scripted_trigger fp1_jomsviking_raid_source_one_france_trigger = {
|
|||
this.leader.capital_province = {
|
||||
squared_distance = {
|
||||
target = scope:target_county.title_province
|
||||
value <= squared_distance_large
|
||||
value = squared_distance_large
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -671,7 +671,7 @@ scripted_trigger fp1_jomsviking_raid_source_one_hre_trigger = {
|
|||
this.leader.capital_province = {
|
||||
squared_distance = {
|
||||
target = scope:target_county.title_province
|
||||
value <= squared_distance_huge
|
||||
value = squared_distance_huge
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -834,7 +834,7 @@ fp1_jomsvikings.0011 = {
|
|||
}
|
||||
}
|
||||
## About an Ireland away.
|
||||
else_if = {
|
||||
if = {
|
||||
limit = { fp1_jomsviking_raid_source_one_ireland_trigger = yes }
|
||||
random_leased_title = {
|
||||
limit = { fp1_jomsviking_raid_source_one_ireland_trigger = yes }
|
||||
|
|
@ -842,7 +842,7 @@ fp1_jomsvikings.0011 = {
|
|||
}
|
||||
}
|
||||
## About a France away.
|
||||
else_if = {
|
||||
if = {
|
||||
limit = { fp1_jomsviking_raid_source_one_france_trigger = yes }
|
||||
random_leased_title = {
|
||||
limit = { fp1_jomsviking_raid_source_one_france_trigger = yes }
|
||||
|
|
@ -850,7 +850,7 @@ fp1_jomsvikings.0011 = {
|
|||
}
|
||||
}
|
||||
## About an HRE away.
|
||||
else_if = {
|
||||
if = {
|
||||
limit = { fp1_jomsviking_raid_source_one_hre_trigger = yes }
|
||||
random_leased_title = {
|
||||
limit = { fp1_jomsviking_raid_source_one_hre_trigger = yes }
|
||||
|
|
@ -1509,7 +1509,7 @@ fp1_jomsvikings.0041 = {
|
|||
}
|
||||
trait_is_criminal_in_faith_trigger = {
|
||||
FAITH = faith
|
||||
TRAIT = trait:adulterer
|
||||
TRAIT = adulterer
|
||||
GENDER_CHARACTER = this
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1252,7 +1252,6 @@ scripted_effect fp1_1011_gib_pretty_hair_effect = {
|
|||
# Tanglehair becomes Fairhair.
|
||||
fp1_major_decisions.1011 = {
|
||||
type = character_event
|
||||
window = big_event_window
|
||||
title = fp1_major_decisions.1011.t
|
||||
desc = {
|
||||
desc = fp1_major_decisions.1011.desc.intro
|
||||
|
|
@ -1276,65 +1275,46 @@ fp1_major_decisions.1011 = {
|
|||
}
|
||||
override_background = { reference = fp1_ocean_norse }
|
||||
|
||||
trigger = {
|
||||
# This character is Harald Fairhair.
|
||||
exists = character:144000
|
||||
this = character:144000
|
||||
# The title they've acquired is Norway.
|
||||
scope:title = title:k_norway
|
||||
# Norway has been created by them.
|
||||
scope:transfer_type = flag:created
|
||||
# Norway has not been created previously.
|
||||
NOT = { exists = global_var:norway_created }
|
||||
}
|
||||
|
||||
immediate = {
|
||||
play_music_cue = "mx_cue_succession"
|
||||
# Check to see if Gyda is still around and kicking, and if so, treat this as a romance.
|
||||
character:166044 = {
|
||||
hidden_effect = {
|
||||
if = {
|
||||
limit = {
|
||||
betrothed ?= {
|
||||
NOR = {
|
||||
this = character:144000
|
||||
is_ai = no
|
||||
}
|
||||
}
|
||||
}
|
||||
break_betrothal = betrothed
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
is_adult = yes
|
||||
is_married = yes
|
||||
any_spouse = {
|
||||
NOR = {
|
||||
this = character:144000
|
||||
is_ai = no
|
||||
}
|
||||
}
|
||||
}
|
||||
every_spouse = {
|
||||
prev = {
|
||||
divorce = prev
|
||||
}
|
||||
}
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
exists = concubinist
|
||||
concubinist = {
|
||||
NOR = {
|
||||
this = character:144000
|
||||
is_ai = no
|
||||
}
|
||||
}
|
||||
}
|
||||
concubinist = {
|
||||
remove_concubine = prev
|
||||
}
|
||||
}
|
||||
if = {
|
||||
limit = {
|
||||
is_alive = yes
|
||||
could_marry_character_trigger = { CHARACTER = root }
|
||||
has_any_bad_relationship_with_root_trigger = no
|
||||
is_ai = yes
|
||||
}
|
||||
save_scope_as = gyda
|
||||
if = {
|
||||
limit = {
|
||||
is_alive = yes
|
||||
can_marry_character_trigger = { CHARACTER = root }
|
||||
has_any_bad_relationship_with_root_trigger = no
|
||||
is_ai = yes
|
||||
}
|
||||
save_scope_as = gyda
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# My vow fulfilled!
|
||||
option = {
|
||||
name = fp1_major_decisions.1011.a
|
||||
|
||||
# Apply standard haircut effects.
|
||||
fp1_1011_gib_pretty_hair_effect = yes
|
||||
|
||||
ai_chance = {
|
||||
# AI should only default to this if Gyda is unavailable.
|
||||
base = 0
|
||||
}
|
||||
}
|
||||
|
||||
# Gyda, my love!
|
||||
option = {
|
||||
|
|
@ -1343,41 +1323,13 @@ fp1_major_decisions.1011 = {
|
|||
# Gyda must have been valid.
|
||||
exists = scope:gyda
|
||||
# And, for MP, remain valid.
|
||||
could_marry_character_trigger = { CHARACTER = scope:gyda }
|
||||
}
|
||||
|
||||
if = {
|
||||
limit = {
|
||||
is_married = yes
|
||||
primary_spouse ?= {
|
||||
NOT = {
|
||||
this = character:144000
|
||||
}
|
||||
}
|
||||
}
|
||||
divorce = primary_spouse
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
betrothed ?= {
|
||||
NOT = {
|
||||
this = character:144000
|
||||
}
|
||||
}
|
||||
}
|
||||
break_betrothal = betrothed
|
||||
can_marry_character_trigger = { CHARACTER = scope:gyda }
|
||||
}
|
||||
|
||||
# Apply standard haircut effects.
|
||||
fp1_1011_gib_pretty_hair_effect = yes
|
||||
# Harald & Gyda are wed.
|
||||
if = {
|
||||
limit = {
|
||||
scope:gyda = { is_adult = no }
|
||||
}
|
||||
create_betrothal = scope:gyda
|
||||
}
|
||||
else_if = {
|
||||
limit = {
|
||||
has_ep2_dlc_trigger = yes
|
||||
}
|
||||
|
|
@ -1393,34 +1345,19 @@ fp1_major_decisions.1011 = {
|
|||
add_opinion = {
|
||||
target = scope:gyda
|
||||
modifier = love_opinion
|
||||
opinion = 150
|
||||
opinion = 50
|
||||
}
|
||||
reverse_add_opinion = {
|
||||
target = scope:gyda
|
||||
modifier = love_opinion
|
||||
opinion = 150
|
||||
opinion = 50
|
||||
}
|
||||
|
||||
add_stress = -200
|
||||
|
||||
ai_chance = {
|
||||
# AI should always select this option if it's present.
|
||||
base = 100
|
||||
}
|
||||
}
|
||||
|
||||
# My vow fulfilled!
|
||||
option = {
|
||||
name = fp1_major_decisions.1011.a
|
||||
|
||||
# Apply standard haircut effects.
|
||||
fp1_1011_gib_pretty_hair_effect = yes
|
||||
|
||||
ai_chance = {
|
||||
# AI should only default to this if Gyda is unavailable.
|
||||
base = 0
|
||||
}
|
||||
}
|
||||
|
||||
# Leave it; it is a mark of the struggles I have been through.
|
||||
option = {
|
||||
|
|
@ -1448,6 +1385,13 @@ fp1_major_decisions.1011 = {
|
|||
fp1_major_decisions.1012 = {
|
||||
hidden = yes
|
||||
|
||||
# If Norway has just been created for the first time...
|
||||
trigger = {
|
||||
scope:title = title:k_norway
|
||||
scope:transfer_type = flag:created
|
||||
NOT = { exists = global_var:norway_created }
|
||||
}
|
||||
|
||||
# ... flag that.
|
||||
immediate = {
|
||||
set_global_variable = {
|
||||
|
|
|
|||
|
|
@ -907,12 +907,6 @@ fp1_other_decisions.0003 = {
|
|||
faith = { save_scope_as = old_faith }
|
||||
# Next, we convert your faith.
|
||||
set_character_faith_with_conversion = scope:gf_faith
|
||||
if = {
|
||||
limit = {
|
||||
scope:gf_faith = { has_doctrine = doctrine_monotheist }
|
||||
}
|
||||
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
|
||||
}
|
||||
|
||||
scope:activity = {
|
||||
add_activity_log_entry = {
|
||||
|
|
@ -2236,15 +2230,7 @@ fp1_other_decisions.0101 = {
|
|||
name = fp1_other_decisions.0101.d
|
||||
|
||||
# Give 'em their deposit back.
|
||||
if = {
|
||||
limit = {
|
||||
has_treasury = yes
|
||||
}
|
||||
add_treasury = var:raise_stele_refund
|
||||
}
|
||||
else = {
|
||||
add_gold = var:raise_stele_refund
|
||||
}
|
||||
add_gold = var:raise_stele_refund
|
||||
# Clear the cooldown.
|
||||
remove_decision_cooldown = raise_stele_decision
|
||||
|
||||
|
|
|
|||
|
|
@ -890,7 +890,7 @@ fp1_shieldmaiden.0021 = {
|
|||
# Shieldmaiden saves you from murder
|
||||
fp1_shieldmaiden.0022 = {
|
||||
type = character_event
|
||||
window = scheme_conclusion_event_no_header
|
||||
window = scheme_target_event
|
||||
title = fp1_shieldmaiden.0022.t
|
||||
desc = {
|
||||
# This block is only for the setup of child_pushed.
|
||||
|
|
|
|||
|
|
@ -1684,9 +1684,7 @@ fp1_trade_events.0051 = {
|
|||
|
||||
# And again for every one that has _also_ been raided recently, since that's a good indicator of raid-density.
|
||||
if = {
|
||||
limit = {
|
||||
any_county_province = { has_province_modifier = recently_looted_modifier }
|
||||
}
|
||||
limit = { has_county_modifier = recently_looted_modifier }
|
||||
add = 1
|
||||
}
|
||||
}
|
||||
|
|
@ -2100,10 +2098,7 @@ fp1_trade_events.1131 = {
|
|||
custom_tooltip = fp1_trade_events.1131.c.tt
|
||||
remove_treasury_or_gold = monumental_treasury_or_gold_value
|
||||
# ... thereby winning the war.
|
||||
scope:sa_war = {
|
||||
set_variable = no_gold_reparations
|
||||
end_war = defender
|
||||
}
|
||||
scope:sa_war = { end_war = defender }
|
||||
reverse_add_opinion = {
|
||||
target = scope:attacker
|
||||
modifier = humiliated_opinion
|
||||
|
|
@ -2247,12 +2242,6 @@ scripted_effect fp1_trade_events_1171_marry_partner_child_effect = {
|
|||
}
|
||||
# Convert to scope:partner's faith.
|
||||
set_character_faith_with_conversion = scope:partner.faith
|
||||
if = {
|
||||
limit = {
|
||||
scope:partner.faith = { has_doctrine = doctrine_monotheist }
|
||||
}
|
||||
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
|
||||
}
|
||||
# Do so in a very public and celebrated manner, gaining piety.
|
||||
add_piety = massive_piety_gain
|
||||
# Paid a dowry by scope:partner.
|
||||
|
|
|
|||
|
|
@ -416,7 +416,7 @@ fp1_yearly.0001 = {
|
|||
scripted_trigger offensive_courtier_candidate_trigger = {
|
||||
#Filter out the basic miscs.
|
||||
is_available_ai_adult = yes
|
||||
#Have committed some genuine malfeasance, or just be irritating to at least some people.
|
||||
#Have some commited some genuine malfeasance, or just be irritating to at least some people.
|
||||
OR = {
|
||||
#Having committed murder by poison is a solid way to become a nithing; this might be a secret, but we assume local rumours about a shady buyer of poisons abound...
|
||||
has_character_flag = murdered_by_poison
|
||||
|
|
@ -2124,12 +2124,6 @@ fp1_yearly.0041 = {
|
|||
add_courtier = scope:explorer
|
||||
#Sort conversion.
|
||||
set_character_faith_with_conversion = scope:explorer.faith
|
||||
if = {
|
||||
limit = {
|
||||
scope:explorer.faith = { has_doctrine = doctrine_monotheist }
|
||||
}
|
||||
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
|
||||
}
|
||||
#Get scope:sponsoring_liege as a friend, if possible.
|
||||
if = {
|
||||
limit = {
|
||||
|
|
@ -14227,12 +14221,6 @@ fp1_yearly.1012 = {
|
|||
|
||||
#Perform the conversion.
|
||||
set_character_faith_with_conversion = scope:ms_faith
|
||||
if = {
|
||||
limit = {
|
||||
scope:ms_faith = { has_doctrine = doctrine_monotheist }
|
||||
}
|
||||
custom_description_no_bullet = { text = mandala_monotheist_warning_tt }
|
||||
}
|
||||
|
||||
#Recoup lost piety, and get paid a little extra.
|
||||
custom_tooltip = fp1_yearly.1012.a.recoup_lost_piety.tt
|
||||
|
|
@ -15004,9 +14992,8 @@ fp1_yearly.1061 = {
|
|||
# Germanic faith.
|
||||
religion = religion:germanic_religion
|
||||
# Shouldn't ever happen, but just in case, exempt sky burials so that the character is never buried twice.
|
||||
NOR = {
|
||||
NOT = {
|
||||
faith = { has_doctrine_parameter = sky_burials_active }
|
||||
has_dead_character_variable = body_has_been_disposed
|
||||
}
|
||||
# And we shouldn't really be erecting glorious mounds to long lives that were actually cut short too early.
|
||||
age >= 30
|
||||
|
|
@ -15209,10 +15196,6 @@ fp1_yearly.1062 = {
|
|||
is_available_even_at_war_adult = yes
|
||||
# Must still be the same faith as scope:ship_funeral_candidate, for ease of loc and such.
|
||||
faith = scope:ship_funeral_candidate.faith
|
||||
# Check that they haven't been buried already (e.g. via funeral activity)
|
||||
scope:ship_funeral_candidate = {
|
||||
NOT = { has_dead_character_variable = body_has_been_disposed }
|
||||
}
|
||||
}
|
||||
|
||||
# A small stone ship.
|
||||
|
|
@ -16089,11 +16072,6 @@ fp1_yearly.1063 = {
|
|||
is_available_even_at_war_adult = yes
|
||||
# Must still be the same faith as scope:ship_funeral_candidate, for ease of loc and such.
|
||||
faith = scope:ship_funeral_candidate.faith
|
||||
|
||||
# Check that they haven't been buried already (e.g. via funeral activity)
|
||||
scope:ship_funeral_candidate = {
|
||||
NOT = { has_dead_character_variable = body_has_been_disposed }
|
||||
}
|
||||
}
|
||||
|
||||
on_trigger_fail = {
|
||||
|
|
@ -16347,14 +16325,6 @@ fp1_yearly.1063 = {
|
|||
}
|
||||
|
||||
after = {
|
||||
scope:ship_funeral_candidate = {
|
||||
set_dead_character_variable = {
|
||||
name = body_has_been_disposed
|
||||
value = yes
|
||||
years = 5
|
||||
}
|
||||
}
|
||||
|
||||
# Clear up remaining values on the character.
|
||||
fp1_funeral_longship_clear_variables_effect = yes
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1912,7 +1912,7 @@ scripted_trigger fp1_yearly_2500_guest_trigger = {
|
|||
}
|
||||
}
|
||||
save_temporary_scope_as = deviant_guest
|
||||
trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = scope:deviant_guest.faith GENDER_CHARACTER = scope:deviant_guest }
|
||||
trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = scope:deviant_guest.faith GENDER_CHARACTER = scope:deviant_guest }
|
||||
}
|
||||
|
||||
scripted_trigger fp1_yearly_2500_court_target_trigger = {
|
||||
|
|
@ -1956,7 +1956,7 @@ fp1_yearly.2500 = {
|
|||
fp1_yearly_2500_guest_trigger = yes
|
||||
}
|
||||
|
||||
trait_is_criminal_in_faith_trigger = { TRAIT = trait:deviant FAITH = root.faith GENDER_CHARACTER = scope:deviant_guest }
|
||||
trait_is_criminal_in_faith_trigger = { TRAIT = deviant FAITH = root.faith GENDER_CHARACTER = scope:deviant_guest }
|
||||
|
||||
any_held_title = {
|
||||
title_tier = county
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue