revert Alignment
This commit is contained in:
Vannifar 2026-04-25 10:02:11 +02:00
parent 15a5108e23
commit c4b6d9bdeb
250 changed files with 11067 additions and 16365 deletions

View file

@ -85,113 +85,43 @@ ep2_wedding.0001 = {
lower_center_portrait = scope:spouse_2
trigger = {
var:promised_grand_wedding_marriage_countdown ?= {
is_alive = yes
is_available_allow_travelling = yes
age >= 19
save_temporary_scope_as = spouse_1
betrothed = {
is_alive = yes
is_available_allow_travelling = yes
age >= 19
can_marry_character_trigger = { CHARACTER = scope:spouse_1 }
}
}
exists = var:promised_grand_wedding_marriage_countdown
has_variable = promised_grand_wedding_marriage_countdown
var:promised_grand_wedding_marriage_countdown = { is_alive = yes }
exists = var:promised_grand_wedding_marriage_countdown.betrothed
NOT = {
involved_activity ?= {
has_activity_type = activity_wedding
activity_host = root
}
}
var:promised_grand_wedding_marriage_countdown = { age >= 19 }
var:promised_grand_wedding_marriage_countdown.betrothed = { age >= 19 }
}
# This event shouldn't trigger unless the spouses have been adult and marriable for at least 3 years in any case, but to prevent edge cases, we check that they are adult, and if they are not or have not been for at least 3 years, we try again one year later
on_trigger_fail = {
if = {
limit = {
# you are not in this GW
NOT = {
involved_activity ?= {
has_activity_type = activity_wedding
activity_host = root
}
}
}
var:promised_grand_wedding_marriage_countdown ?= {
save_scope_as = spouse_1
betrothed ?= { save_scope_as = spouse_2 }
}
if = {
limit = {
exists = scope:spouse_1
exists = scope:spouse_2
}
if = {
limit = {
# no longer valid marriage, e.g. devoted
scope:spouse_1 ?= {
NOT = {
can_marry_character_trigger = { CHARACTER = scope:spouse_2 }
}
}
}
# TODO informing event
clean_grand_wedding_betrothal_variables = yes
}
else_if = {
limit = {
scope:spouse_1 ?= {
OR = {
age < 19
scope:spouse_2.age < 19
# grace period for illness
AND = {
is_available_allow_travelling = no
age < 25
}
scope:spouse_2 = {
is_available_allow_travelling = no
age < 25
}
}
}
}
trigger_event = {
id = ep2_wedding.0001
days = 365
}
set_variable = {
name = promised_grand_wedding_marriage_countdown
value = scope:spouse_1
years = grand_wedding_timeout
}
}
# both adult, but can't attend for a reallly long time
else_if = {
limit = {
scope:spouse_1 ?= {
age >= 25
scope:spouse_2.age >= 25
OR = {
is_available_allow_travelling = no
scope:spouse_2 = {
is_available_allow_travelling = no
}
}
}
}
# TODO: add an event
clean_grand_wedding_betrothal_variables = yes
}
else_if = {
limit = {
has_variable = promised_grand_wedding_marriage_countdown
}
clean_grand_wedding_betrothal_variables = yes
}
}
}
}
if = {
limit = {
has_variable = promised_grand_wedding_marriage_countdown
}
if = {
limit = { exists = var:promised_grand_wedding_marriage_countdown }
trigger_event = {
id = ep2_wedding.0001
days = 365
}
set_variable = {
name = promised_grand_wedding_marriage_countdown
value = var:promised_grand_wedding_marriage_countdown
years = grand_wedding_timeout
}
}
else = {
remove_variable = promised_grand_wedding_marriage_countdown
}
}
}
immediate = {
var:promised_grand_wedding_marriage_countdown = {
@ -228,7 +158,7 @@ ep2_wedding.0002 = {
option = {
name = ep2_wedding.0002.a
clean_grand_wedding_betrothal_variables = yes
remove_variable = promised_grand_wedding_marriage_countdown
}
}
@ -272,10 +202,8 @@ ep2_wedding.0100 = {
root = scope:spouse_2
}
}
desc = {
desc = ep2_wedding.0100.desc_host
desc = ep2_wedding.0100.desc_host_outro
}
desc = ep2_wedding.0100.desc_host
desc = ep2_wedding.0100.desc_host_outro
}
triggered_desc = {
trigger = {
@ -461,8 +389,12 @@ ep2_wedding.0150 = {
scope:activity.special_guest:spouse_2 = {
save_scope_as = spouse_2
}
check_officiant_effect = yes
scope:activity.var:officiant ?= { save_scope_as = officiant }
if = {
limit = {
exists = scope:activity.special_guest:officiant
}
scope:activity.special_guest:officiant = { save_scope_as = officiant }
}
scope:spouse_1 = {
show_as_tooltip = {
marry = scope:spouse_2
@ -506,7 +438,13 @@ ep2_wedding.0151 = {
first_valid = {
triggered_desc = {
trigger = {
is_bloody_wedding = yes
scope:activity = {
has_activity_option = {
category = special_type
option = wedding_type_bloody
}
}
scope:host = { NOT = { has_variable = bloody_wedding_backed_down_var } }
}
desc = ep2_wedding.0151.desc.murder
}
@ -771,8 +709,10 @@ ep2_wedding.0151 = {
}
}
}
scope:spouse_1 = { remove_variable = promised_grand_wedding_by }
scope:spouse_2 = { remove_variable = promised_grand_wedding_by }
scope:host = {
clean_grand_wedding_betrothal_variables = yes
remove_variable = promised_grand_wedding_marriage_countdown
}
# The marriage should not be consummated before the Wedding Night!
hidden_effect = {
@ -889,7 +829,12 @@ ep2_wedding.0200 = {
triggered_desc = {
trigger = { #spouse and bloody wedding
this = scope:host
is_bloody_wedding = yes
scope:activity = {
has_activity_option = {
category = special_type
option = wedding_type_bloody
}
}
root = scope:spouse_1
}
desc = ep2_wedding.0200.desc.murder_spouse
@ -897,7 +842,12 @@ ep2_wedding.0200 = {
triggered_desc = { #bloody wedding
trigger = {
this = scope:host
is_bloody_wedding = yes
scope:activity = {
has_activity_option = {
category = special_type
option = wedding_type_bloody
}
}
root != scope:spouse_1
}
desc = ep2_wedding.0200.desc.murder
@ -1053,13 +1003,25 @@ ep2_wedding.0200 = {
option = {
name = {
trigger = {
is_bloody_wedding = yes
scope:activity = {
has_activity_option = {
category = special_type
option = wedding_type_bloody
}
}
}
text = ep2_wedding.0200.a.murder
}
name = {
trigger = {
is_bloody_wedding = no
NOT = {
scope:activity = {
has_activity_option = {
category = special_type
option = wedding_type_bloody
}
}
}
}
text = ep2_wedding.0200.a
}
@ -1085,7 +1047,12 @@ ep2_wedding.0300 = {
first_valid = {
triggered_desc = {
trigger = {
is_bloody_wedding = yes
scope:activity = {
has_activity_option = {
category = special_type
option = wedding_type_bloody
}
}
root = scope:spouse_1
}
desc = ep2_wedding.0300.desc.murder_spouse
@ -1294,6 +1261,9 @@ ep2_wedding.0910 = {
remove_variable = gwedding_gold_recoup_value
}
remove_variable = promised_grand_wedding_by
scope:previous_host = {
remove_variable = promised_grand_wedding_marriage_countdown
}
if = {
limit = {
has_character_modifier = wedding_fertility_delay_modifier
@ -1385,6 +1355,10 @@ ep2_wedding.0920 = {
}
remove_variable = gwedding_gold_recoup_value
}
remove_variable = promised_grand_wedding_by
scope:previous_host = {
remove_variable = promised_grand_wedding_marriage_countdown
}
if = {
limit = {
has_character_modifier = wedding_fertility_delay_modifier
@ -1441,6 +1415,12 @@ ep2_wedding.0921 = {
}
remove_variable = gwedding_gold_recoup_value
}
if = {
limit = {
has_variable = promised_grand_wedding_by
}
remove_variable = promised_grand_wedding_by
}
if = {
limit = {
has_character_modifier = wedding_fertility_delay_modifier
@ -1624,6 +1604,23 @@ ep2_wedding.0997 = {
animation = sadness
}
immediate = {
# we should never get this far. If it happens, just get a free pass out of the Grand Wedding Promise since something has gone wrong
if = {
limit = {
this = scope:host
}
remove_variable = promised_grand_wedding_marriage_countdown
}
if = {
limit = {
has_variable = promised_grand_wedding_by
var:promised_grand_wedding_by = scope:host
}
remove_variable = promised_grand_wedding_by
}
}
option = {
name = ep2_wedding.0998.a
}
@ -1643,6 +1640,19 @@ ep2_wedding.0998 = {
immediate = {
# we should never get this far. If it happens, just get a free pass out of the Grand Wedding Promise since something has gone wrong
if = {
limit = {
this = scope:host
}
remove_variable = promised_grand_wedding_marriage_countdown
}
if = {
limit = {
has_variable = promised_grand_wedding_by
var:promised_grand_wedding_by = scope:host
}
remove_variable = promised_grand_wedding_by
}
if = {
limit = {
exists = scope:spouse_1
@ -1988,7 +1998,7 @@ ep2_wedding.1000 = {
trigger = {
has_activity_intent = reduce_stress_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
stress_impact = {
base = minor_stress_impact_loss
}
@ -3192,7 +3202,7 @@ ep2_wedding.1100 = {
has_activity_intent = reduce_stress_intent
this = scope:bride
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
stress_impact = {
base = minor_stress_impact_loss
}
@ -3807,21 +3817,12 @@ ep2_wedding.1030 = {
# Spouse: your child from a previous partner makes a fuss
scripted_trigger ep2_wedding_1120_valid_child_trigger = {
NOR = {
has_trait = child_of_concubine_female
has_trait = child_of_concubine_male
NOT = {
any_parent = { this = root.betrothed }
this = scope:activity.special_guest:spouse_1
this = scope:activity.special_guest:spouse_2
}
any_parent = {
even_if_dead = yes
this != root
# polygamy case
trigger_if = {
limit = { is_alive = yes }
NOT = { any_consort = { this = root.betrothed } }
}
save_temporary_scope_as = other_parent
}
age >= 6
@ -4240,15 +4241,10 @@ scripted_trigger ep2_wedding_1121_valid_child_trigger = {
any_parent = {
even_if_dead = yes
this != root.betrothed
# polygamy case
trigger_if = {
limit = { is_alive = yes }
NOT = { any_consort = { this = root.betrothed } }
}
save_temporary_scope_as = other_parent
}
age >= 6
involved_activity ?= scope:activity
involved_activity ?= { this = scope:activity }
save_temporary_scope_as = trouble_child
}
@ -5875,7 +5871,7 @@ ep2_wedding.1140 = {
key = made_a_misstep_log
tags = { bad }
score = 50
character = scope:fumbling_spouse
character = scope:spouse_1
scope:fumbling_spouse = {
add_opinion = {
@ -5930,7 +5926,7 @@ ep2_wedding.1140 = {
key = made_a_misstep_log
tags = { bad }
score = 50
character = scope:fumbling_spouse
character = scope:spouse_1
}
}
ai_chance = {
@ -5944,7 +5940,7 @@ ep2_wedding.1140 = {
trigger = {
has_activity_intent = reduce_stress_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
scope:fumbling_spouse = {
add_opinion = {
target = root
@ -5961,7 +5957,7 @@ ep2_wedding.1140 = {
tags = { good }
score = 50
character = root
target = scope:fumbling_spouse
target = scope:spouse_1
}
}
ai_chance = {
@ -6850,7 +6846,7 @@ ep2_wedding.1170 = {
trigger = {
has_activity_intent = reduce_stress_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
stress_impact = {
base = medium_stress_impact_loss
humble = major_stress_impact_loss
@ -6870,7 +6866,7 @@ ep2_wedding.1170 = {
trigger = {
has_activity_intent = banquet_mischief_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
add_character_modifier = {
modifier = wedding_parade_mayhem_modifier
years = 5
@ -6890,7 +6886,7 @@ ep2_wedding.1170 = {
has_activity_intent = murder_attendee_intent
}
flavor = ep2_wedding.1170.e.tt
reason = activity_intent
custom_tooltip = available_because_intent_tt
duel = {
skills = { intrigue prowess }
target = scope:murderee
@ -7150,7 +7146,7 @@ ep2_wedding.1180 = {
trigger = {
has_activity_intent = reduce_stress_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
scope:other_spouse = {
add_opinion = {
target = root
@ -7437,7 +7433,7 @@ ep2_wedding.1190 = {
has_activity_intent = banquet_mischief_intent
}
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
scope:grumbler = {
add_opinion = {
target = root
@ -7797,7 +7793,7 @@ ep2_wedding.1200 = {
trigger = {
has_activity_intent = woo_attendee_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
duel = {
skill = intrigue
target = scope:listener
@ -7873,7 +7869,7 @@ ep2_wedding.1200 = {
trigger = {
has_activity_intent = diplomatic_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
duel = {
skill = diplomacy
target = scope:listener
@ -7961,7 +7957,7 @@ ep2_wedding.1200 = {
trigger = {
has_activity_intent = matchmaking_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
duel = {
skills = { diplomacy intrigue }
target = scope:listener
@ -8805,7 +8801,7 @@ ep2_wedding.1220 = {
has_activity_intent = diplomatic_intent
}
flavor = ep2_wedding.1220.c.tt
reason = activity_intent
custom_tooltip = available_because_intent_tt
duel = {
skill = diplomacy
target = scope:relative
@ -8919,7 +8915,7 @@ ep2_wedding.1220 = {
trigger = {
has_activity_intent = banquet_mischief_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
if = {
limit = {
has_lifestyle = intrigue_lifestyle
@ -10377,7 +10373,7 @@ ep2_wedding.1070 = {
exists = scope:1070_target
has_activity_intent = murder_attendee_intent
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
scope:1070_target = {
duel = {
skill = prowess
@ -10751,7 +10747,7 @@ ep2_wedding.1090 = {
has_ep2_dlc_trigger = yes
has_activity_intent = matchmaking_intent
intent_target.location ?= root.location
intent_target.location = root.location
location = scope:activity.activity_location
intent_target = { NOT = { has_character_flag = busy_in_banquet_event } }
@ -12259,7 +12255,11 @@ ep2_wedding.1111 = {
}
trigger_if = {
limit = {
this = scope:host
OR = {
this = scope:host
scope:host = scope:activity.special_guest:spouse_1
scope:host = scope:activity.special_guest:spouse_2
}
}
scope:activity = {
any_attending_character = {
@ -15038,10 +15038,14 @@ ep2_wedding.1330 = {
option = {
name = ep2_wedding.1330.d
trigger = {
is_deviant_trigger = yes
OR = {
has_trait = deviant
any_secret = { type = secret_deviant }
}
NOR = {
faith = { has_doctrine_parameter = deviancy_accepted }
scope:spouse = { is_deviant_trigger = yes }
faith = { has_doctrine = doctrine_deviancy_accepted }
scope:spouse = { has_trait = deviant }
scope:spouse = { any_secret = { type = secret_deviant NOT = { is_known_by = root } } }
}
}
@ -15731,46 +15735,47 @@ ep2_wedding.1340 = {
}
ai_chance = {
base = 100
base = 1
modifier = {
has_trait = lifestyle_gardener
add = 70
}
modifier = {
has_trait = lifestyle_reveler
add = 70
}
modifier = {
has_trait = lifestyle_hunter
add = 70
}
modifier = {
has_trait = lifestyle_poet
add = 70
}
modifier = {
has_trait = lifestyle_blademaster
add = 40
}
modifier = {
has_trait = lifestyle_herbalist
add = 40
}
modifier = {
has_trait = lifestyle_mystic
add = 40
}
modifier = {
has_trait = lifestyle_physician
add = 40
}
modifier = {
has_trait = athletic
add = 40
}
modifier = {
has_trait = journaller
add = 40
}
has_trait = lifestyle_gardener
add = 70
}
modifier = {
has_trait = lifestyle_reveler
add = 70
}
modifier = {
has_trait = lifestyle_hunter
add = 70
}
modifier = {
has_trait = lifestyle_poet
add = 70
}
modifier = {
has_trait = lifestyle_blademaster
add = 40
}
modifier = {
has_trait = lifestyle_herbalist
add = 40
}
modifier = {
has_trait = lifestyle_mystic
add = 40
}
modifier = {
has_trait = lifestyle_physician
add = 40
}
modifier = {
has_trait = athletic
add = 40
}
modifier = {
has_trait = journaller
add = 40
}
}
}
@ -15808,7 +15813,10 @@ ep2_wedding.1340 = {
add = 20
}
modifier = {
is_witch_trigger = yes
OR = {
any_secret = { type = secret_witch }
has_trait = witch
}
add = 20
}
send_interface_toast = {
@ -15847,7 +15855,10 @@ ep2_wedding.1340 = {
add = 20
}
modifier = {
is_witch_trigger = yes
OR = {
any_secret = { type = secret_witch }
has_trait = witch
}
add = 20
}
}
@ -17700,14 +17711,12 @@ ep2_wedding.3030 = {
any_character_artifact = {
artifact_slot_type = miscellaneous
this != scope:love_memento
artifact_can_be_gift_to_trigger = { RECIPIENT = scope:my_spouse }
}
}
random_character_artifact = {
limit = {
artifact_slot_type = miscellaneous
this != scope:love_memento
artifact_can_be_gift_to_trigger = { RECIPIENT = scope:my_spouse }
}
save_scope_as = my_love_memento
}
@ -18243,7 +18252,7 @@ ep2_wedding.3040 = {
scope:my_spouse = { is_ai = yes }
intent_target = scope:my_spouse
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
random_list = {
50 = { #spouse saves themselves
desc = ep2_wedding.3040.d.success
@ -19249,10 +19258,15 @@ ep2_wedding.3300 = {
else = {
scope:activity.special_guest:spouse_1 = { save_scope_as = my_spouse }
}
check_officiant_effect = yes
scope:activity.var:officiant ?= { save_scope_as = officiant }
# Save witnesses
ep2_wedding_bedding_ceremony_witness_effect = yes
# Save officiant
if = {
limit = {
scope:host.cp:councillor_court_chaplain ?= { is_participant_in_activity = scope:activity }
}
scope:host.cp:councillor_court_chaplain = { save_scope_as = officiant }
}
# Save jester
if = {
limit = {
@ -19855,7 +19869,7 @@ scripted_trigger wedding_3400_suitor_trigger = {
is_participant_in_activity = scope:activity
is_attracted_to_gender_of = $SUITOR$
age >= $SUITOR$.age_minus_25
age < $SUITOR$.age_plus_25
age < $SUITOR$.age_plus_25
OR = {
is_married = no
allowed_more_spouses = yes
@ -19864,7 +19878,7 @@ scripted_trigger wedding_3400_suitor_trigger = {
faith = { has_doctrine = doctrine_adultery_women_accepted }
root.faith = { has_doctrine = doctrine_adultery_women_accepted }
$SUITOR$.faith = { has_doctrine = doctrine_adultery_women_accepted }
}
trigger_else = {
faith = { has_doctrine = doctrine_adultery_men_accepted }
@ -23401,7 +23415,7 @@ ep2_wedding.2020 = {
}
}
}
reason = activity_intent
custom_tooltip = available_because_intent_tt
duel = {
skill = prowess
target = scope:drunk_guest