Skip to content

Commit

Permalink
yearly events
Browse files Browse the repository at this point in the history
  • Loading branch information
Grekopithikos committed Sep 27, 2024
1 parent 87acff9 commit d10ca95
Show file tree
Hide file tree
Showing 9 changed files with 1,384 additions and 606 deletions.
111 changes: 61 additions & 50 deletions events/yearly_events/bp1_yearly_james.txt
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ bp1_yearly.9005 = {
scope:bp1_yearly_9001_toy_hater = {
random_list = {
10 = { add_trait = one_legged }
10 = { add_trait = maimed }
10 = { apply_maimed_trait_and_modifier_effect = yes }
10 = {
modifier = { # I won't go for the eyes if people think it's virtuous
factor = 0.5
Expand Down Expand Up @@ -1031,6 +1031,9 @@ bp1_yearly.9007 = {
is_valid_for_narrow_yearly_events_adult = yes
exists = house
NOT = { has_character_flag = had_event_bp1_yearly_9007 }
#Disabling the story for landless
is_landless_adventurer = no
is_landless_administrative = no
}

weight_multiplier = {
Expand Down Expand Up @@ -1508,6 +1511,7 @@ bp1_yearly.9010 = {

option = { # Fight them for the throne!
name = bp1_yearly.9010.a
custom_tooltip = bp1_yearly.9010.a_tt
# Scopes for duel fallback
scope:bp1_yearly_9007_doppelganger = { save_scope_as = recipient }
save_scope_as = actor
Expand Down Expand Up @@ -1746,7 +1750,7 @@ bp1_yearly.9014 = {
var:my_doppelganger = { is_available_ai_adult = yes }
OR = {
NOT = { # Doesn't already have a relation to the doppelganger
any_relation = { this = var:my_doppelganger }
has_any_scripted_relation = var:my_doppelganger
}
has_relation_lover = var:my_doppelganger # Become soulmates
has_relation_friend = var:my_doppelganger
Expand Down Expand Up @@ -1991,7 +1995,7 @@ bp1_yearly.9015 = {
if = { # I'm not having sexual relations with my clone, become friends
limit = {
NOT = {
any_relation = { this = scope:bp1_yearly_9007_doppelganger }
has_any_scripted_relation = scope:bp1_yearly_9007_doppelganger
scope:bp1_yearly_9007_doppelganger = { is_consort_of = root }
}
}
Expand Down Expand Up @@ -2197,6 +2201,7 @@ bp1_yearly.9016 = {

trigger = {
has_dlc_feature = friends_and_foes
is_landed = yes
is_available_at_peace_adult = yes
NOT = { has_character_flag = had_event_bp1_yearly_9016 }
exists = root.player_heir
Expand Down Expand Up @@ -2447,6 +2452,7 @@ bp1_yearly.9017 = {

trigger = {
has_dlc_feature = friends_and_foes
is_landed = yes
is_available_at_peace_adult = yes
NOT = { has_character_flag = had_event_bp1_yearly_9017 }
any_child = {
Expand Down Expand Up @@ -2905,10 +2911,10 @@ bp1_yearly.9018 = {

scripted_trigger bp1_yearly_9019_spouse_trigger = {
is_available_at_peace_ai_adult = yes
is_eunuch_trigger = no
NOR = {
has_trait = chaste
has_trait = celibate
has_trait = eunuch
has_trait = pregnant
}
OR = {
Expand Down Expand Up @@ -2941,8 +2947,6 @@ scripted_trigger bp1_yearly_9019_spouse_trigger = {

scripted_trigger bp1_yearly_9019_relation_trigger = {
NOR = {
has_trait = celibate
has_trait = eunuch
is_close_family_of = root
is_consort_of = root
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
Expand Down Expand Up @@ -2971,8 +2975,6 @@ scripted_trigger bp1_yearly_9019_courtier_trigger = {
}
NOR = {
has_trait = chaste
has_trait = celibate
has_trait = eunuch
is_close_family_of = root
is_consort_of = root
has_any_bad_relationship_with_character_trigger = { CHARACTER = root }
Expand Down Expand Up @@ -3093,9 +3095,9 @@ bp1_yearly.9019 = {
has_sexuality = homosexual
has_sexuality = bisexual
}
is_eunuch_trigger = no
NOR = { # Can have sex and isn't already pregnant
has_trait = celibate
has_trait = eunuch
has_trait = pregnant
}
any_spouse = { bp1_yearly_9019_spouse_trigger = yes }
Expand Down Expand Up @@ -3336,17 +3338,17 @@ bp1_yearly.9020 = {
trigger = {
has_dlc_feature = friends_and_foes
is_available_at_peace_adult = yes
is_eunuch_trigger = no
NOR = { # Can have sex and isn't already pregnant
has_trait = celibate
has_trait = eunuch
has_trait = pregnant
}
any_spouse = {
is_available_at_peace_ai_adult = yes
is_eunuch_trigger = no
NOR = {
has_trait = chaste
has_trait = celibate
has_trait = eunuch
has_trait = pregnant
}
is_deviant_trigger = yes
Expand All @@ -3369,10 +3371,10 @@ bp1_yearly.9020 = {
immediate = {
random_spouse = {
limit = {
is_eunuch_trigger = no
NOR = {
has_trait = chaste
has_trait = celibate
has_trait = eunuch
has_trait = pregnant
}
is_deviant_trigger = yes
Expand Down Expand Up @@ -3530,17 +3532,17 @@ bp1_yearly.9021 = {
trigger = {
has_dlc_feature = friends_and_foes
is_available_at_peace_adult = yes
is_eunuch_trigger = no
NOR = { # Can have sex and isn't already pregnant
has_trait = celibate
has_trait = eunuch
has_trait = pregnant
}
any_spouse = {
is_available_at_peace_ai_adult = yes
is_eunuch_trigger = no
NOR = {
has_trait = chaste
has_trait = celibate
has_trait = eunuch
has_trait = pregnant
}
has_relation_rival = root
Expand All @@ -3556,10 +3558,11 @@ bp1_yearly.9021 = {
immediate = {
random_spouse = {
limit = {
is_available_at_peace_ai_adult = yes
is_eunuch_trigger = no
NOR = {
has_trait = chaste
has_trait = celibate
has_trait = eunuch
has_trait = pregnant
}
has_relation_rival = root
Expand Down Expand Up @@ -3936,7 +3939,7 @@ bp1_yearly.9023 = {
name = bp1_yearly.9023.b
start_scheme = {
type = learn_language
target = scope:bp1_yearly_9023_friend
target_character = scope:bp1_yearly_9023_friend
}
stress_impact = {
lazy = major_stress_impact_gain
Expand Down Expand Up @@ -3970,7 +3973,7 @@ bp1_yearly.9023 = {
scope:bp1_yearly_9023_friend = {
start_scheme = {
type = learn_language
target = root
target_character = root
}
}
}
Expand Down Expand Up @@ -5902,9 +5905,11 @@ bp1_yearly.9034 = {
has_dlc_feature = friends_and_foes
is_available = yes
is_adult = no
any_held_title = {
tier = tier_county
any_county_province = { terrain = wetlands }
OR = {
any_held_county = {
any_county_province = { terrain = wetlands }
}
location = { terrain = wetlands }
}
any_relation = {
type = friend
Expand All @@ -5923,18 +5928,25 @@ bp1_yearly.9034 = {
}

immediate = {
random_held_title = {
if = {
limit = {
tier = tier_county
any_county_province = { terrain = wetlands }
any_held_county = {
any_county_province = { terrain = wetlands }
}
}
random_county_province = {
random_held_county = {
limit = {
terrain = wetlands
any_county_province = { terrain = wetlands }
}
random_county_province = {
limit = { terrain = wetlands }
save_scope_as = bp1_yearly_9034_swampy_location
}
save_scope_as = bp1_yearly_9034_swampy_location
}
}
else = {
location = { save_scope_as = bp1_yearly_9034_swampy_location }
}
random_relation = {
type = friend
limit = {
Expand Down Expand Up @@ -6106,19 +6118,10 @@ bp1_yearly.9035 = {
option = { # Employ the witch as your physician
name = bp1_yearly.9035.a
add_courtier = scope:bp1_yearly_9034_witch
if = {
limit = { exists = scope:current_physician }
replace_court_position = {
recipient = scope:bp1_yearly_9034_witch
holder = scope:current_physician
court_position = court_physician_court_position
}
}
else = {
appoint_court_position = {
recipient = scope:bp1_yearly_9034_witch
court_position = court_physician_court_position
}
court_position_grant_effect = {
POS = court_physician
CANDIDATE = scope:bp1_yearly_9034_witch
EMPLOYER = root
}
stress_impact = {
pensive = major_stress_impact_gain
Expand Down Expand Up @@ -6279,9 +6282,11 @@ bp1_yearly.9037 = {
NOT = {
has_character_flag = had_event_bp1_yearly_9037
}
any_held_title = {
tier = 2
any_county_province = { terrain = wetlands }
OR = {
any_held_county = {
any_county_province = { terrain = wetlands }
}
location = { terrain = wetlands }
}
any_relation = {
type = guardian
Expand All @@ -6295,19 +6300,25 @@ bp1_yearly.9037 = {
}

immediate = {
random_held_title = {
if = {
limit = {
tier = 2
any_county_province = { terrain = wetlands }
any_held_county = {
any_county_province = { terrain = wetlands }
}
}
random_in_de_jure_hierarchy = {
random_held_county = {
limit = {
tier = 1
title_province = { terrain = wetlands }
any_county_province = { terrain = wetlands }
}
random_county_province = {
limit = { terrain = wetlands }
save_scope_as = bp1_yearly_9037_swampy_location
}
save_scope_as = bp1_yearly_9037_swampy_location
}
}
else = {
location = { save_scope_as = bp1_yearly_9037_swampy_location }
}
random_relation = {
type = guardian
limit = {
Expand All @@ -6334,7 +6345,7 @@ bp1_yearly.9037 = {
else = { # Otherwise make a new body
create_character = {
template = servant_character
location = scope:bp1_yearly_9037_swampy_location.title_province
location = scope:bp1_yearly_9037_swampy_location
save_scope_as = bp1_yearly_9037_corpse
}
scope:bp1_yearly_9037_corpse = {
Expand Down
Loading

0 comments on commit d10ca95

Please sign in to comment.