Skip to content

Commit

Permalink
events folder 1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sumankun committed Nov 24, 2023
1 parent 5eb9818 commit aa63931
Show file tree
Hide file tree
Showing 65 changed files with 14,863 additions and 402 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace = hold_court

# Differences in namespace range down to the on-going CD civil war between whether a range starts at 0 or 1.
# It starts at 001 and goes to 000, damn it, and anyone who says otherwise is a knave and a cur.
# Differences in namespace range down to the ongoing CD civil war between whether a range starts at 0 or 1.
## It starts at 001 and goes to 000, damn it, and anyone who says otherwise is a knave and a cur.

##################################################
# # RANGES
Expand Down Expand Up @@ -265,6 +265,8 @@ hold_court.0021 = {

option = {
name = hold_court.0021.a
# Guaranteed small grandeur reward, in addition to any from events
change_current_court_grandeur = minor_court_grandeur_gain
}
}

Expand Down
29 changes: 21 additions & 8 deletions events/activities/hunt_activity/hunt_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#hunt.4015 - You walk in (out?) on lovers
#hunt.4016 - You fake a catch
#hunt.4018 - You get another glimpse of the mystical white animal
#hunt.4020 - Rally your clan to fell a large beast
#hunt.5001 - You get the urge to pick herbs and flowers
#hunt.5002 - Someone in your hunting party gets the urge to pick herbs and
#hunt.5060 - Find an eyas
Expand Down Expand Up @@ -7525,28 +7526,28 @@ hunt.1080 = {
add = 5
aptitude = {
court_position = master_of_hunt_court_position
value >= 2
value >= 1
}
}
modifier = {
add = 5
aptitude = {
court_position = master_of_hunt_court_position
value >= 3
value >= 2
}
}
modifier = {
add = 5
aptitude = {
court_position = master_of_hunt_court_position
value >= 4
value >= 3
}
}
modifier = {
add = 5
aptitude = {
court_position = master_of_hunt_court_position
value >= 5
value >= 4
}
}
save_scope_as = bodyguard_appears
Expand Down Expand Up @@ -8165,14 +8166,22 @@ hunt.1081 = {
limit = {
scope:murderer = { is_alive = yes }
}
unknown_murder_effect = { VICTIM = scope:murderer MURDERER = root REASON = death_hunting_mysterious }
unknown_murder_effect = {
VICTIM = scope:murderer
MURDERER = root
REASON = death_hunting_mysterious
}
}
if = {
limit = {
exists = scope:accomplice
scope:accomplice = { is_alive = yes }
}
unknown_murder_effect = { VICTIM = scope:accomplice MURDERER = root REASON = death_hunting_mysterious }
unknown_murder_effect = {
VICTIM = scope:accomplice
MURDERER = root
REASON = death_hunting_mysterious
}
}
if = {
limit = {
Expand Down Expand Up @@ -9835,7 +9844,7 @@ hunt.2000 = {

option = { # Send away
name = hunt.2000.d
scope:dog_salesman = { move_to_pool = yes }
scope:dog_salesman = { select_and_move_to_pool_effect = yes }
ai_chance = {
base = 50
modifier = {
Expand Down Expand Up @@ -24079,7 +24088,11 @@ hunt.7211 = {

# Effect
show_as_tooltip = {
unknown_murder_effect = { VICTIM = scope:murder_target MURDERER = root REASON = death_hunting_accident }
unknown_murder_effect = {
VICTIM = scope:murder_target
MURDERER = root
REASON = death_hunting_accident
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7001,6 +7001,7 @@ pilgrimage.6001 = {
cooldown = { years = 20 }
trigger = {
has_bp1_dlc_trigger = yes
is_location_valid_for_travel_event_on_land = yes
current_travel_plan = { next_destination_progress > 0.5 }
trigger_if = {
limit = { faith = { like_islam_religion_trigger = yes } }
Expand Down
29 changes: 17 additions & 12 deletions events/activities/playdate_activity/playdate_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5083,17 +5083,22 @@ playdate.5004 = {
add_stress = minor_stress_loss
}

set_relation_friend = {
REASON = friend_joined_game
TARGET = scope:other_child
}
scope:activity = {
add_activity_log_entry = {
key = playdate_became_friends_watching_football_log
tags = { good }
score = 10
character = root
target = scope:other_child
if = {
limit = {
NOT = { has_relation_friend = scope:other_child }
}
set_relation_friend = {
REASON = friend_joined_game
TARGET = scope:other_child
}
scope:activity = {
add_activity_log_entry = {
key = playdate_became_friends_watching_football_log
tags = { good }
score = 10
character = root
target = scope:other_child
}
}
}

Expand Down Expand Up @@ -6274,7 +6279,7 @@ playdate.5008 = {

add_character_modifier = {
modifier = bp2_disrespects_elderly_modifier
years = 25
years = 10
}

stress_impact = {
Expand Down
1 change: 0 additions & 1 deletion events/activities/tournaments/tournament_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3097,7 +3097,6 @@ tournament_events.1140 = { # Host Challenge - Start
character = scope:pas_darmes_instigator
animation = happiness
}
# TODO_CD_EP2: replace with proper art
override_background = {
trigger = {
scope:activity.activity_location = { geographical_region = graphical_western }
Expand Down
7 changes: 5 additions & 2 deletions events/activities/tournaments/veronica_locale_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ ep2_locale_events.5500 = {
description = ancient_stone_artifact_desc
type = miscellaneous
visuals = rock
modifier = artifact_monthly_prestige_4_modifier
modifier = artifact_monthly_prestige_1_modifier
save_scope_as = ancient_plaque
}
scope:ancient_plaque = {
Expand Down Expand Up @@ -1264,7 +1264,10 @@ ep2_locale_events.5510 = {
scope:village_thug = {
hidden_effect = {
if = {
limit = { NOT = { is_participant_in_activity = scope:activity } }
limit = {
NOT = { is_participant_in_activity = scope:activity }
can_join_activity = scope:activity
}
add_to_activity = scope:activity
}
}
Expand Down
173 changes: 173 additions & 0 deletions events/councillor_task_events/court_chaplain_task_events.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1526,3 +1526,176 @@ court_chaplain_task.3004 = {
}
}
}

# Maintenance for vassal conversion messages

scripted_effect fetch_council_task_affected_vassal_informees_effect = {
scope:county ?= {
holder ?= {
if = {
limit = {
is_ai = no
NOT = { scope:councillor_liege ?= this }
}
add_to_list = informees
}
every_liege_or_above = {
limit = {
is_ai = no
NOT = { scope:councillor_liege ?= this }
highest_held_title_tier < scope:councillor_liege.highest_held_title_tier
}
add_to_list = informees
}
}
}
}

court_chaplain_task.8000 = { # Started
scope = none
hidden = yes

trigger = {
# Stop spam if target is changed a lot e.g. on a single tick
exists = scope:councillor.councillor_task_target
scope:set_county.title_province ?= scope:councillor.councillor_task_target
}

immediate = {
scope:county.faith ?= { save_scope_as = old_faith }
fetch_council_task_affected_vassal_informees_effect = yes
every_in_list = {
list = informees
switch = {
trigger = faith
scope:councillor_liege.faith = { # Good if same faith as liege
send_interface_message = {
type = msg_council_conversion_good
title = liege_converting_county_title
desc = liege_converting_county_desc
left_icon = scope:councillor_liege
right_icon = scope:county
}
}
scope:old_faith = {
send_interface_message = { # Bad if same faith as county
type = msg_council_conversion_bad
title = liege_converting_county_title
desc = liege_converting_county_desc
left_icon = scope:councillor_liege
right_icon = scope:county
}
}
fallback = {
send_interface_message = { # Neutral otherwise
type = msg_council_conversion_neutral
title = liege_converting_county_title
desc = liege_converting_county_desc
left_icon = scope:liege_scope
right_icon = scope:county
}
}
}
}
}
}

court_chaplain_task.8001 = { # Cancelled
scope = none
hidden = yes
cooldown = { days = 1 }

trigger = {
NOT = {
scope:county ?= { has_variable = county_conversion_completed }
}
}

immediate = {
# Message for vassals
scope:county.faith ?= { save_scope_as = old_faith }
fetch_council_task_affected_vassal_informees_effect = yes
every_in_list = {
list = informees
switch = {
trigger = faith
scope:old_faith = { # Good if same faith as county
send_interface_message = {
type = msg_council_conversion_good
title = liege_stopped_converting_county_title
desc = liege_stopped_converting_county_desc
left_icon = scope:councillor_liege
right_icon = scope:county
}
}
scope:councillor_liege.faith = { # Bad if same faith as liege
send_interface_message = {
type = msg_council_conversion_bad
title = liege_stopped_converting_county_title
desc = liege_stopped_converting_county_desc
left_icon = scope:councillor_liege
right_icon = scope:county
}
}
fallback = {
send_interface_message = { # Neutral otherwise
type = msg_council_conversion_neutral
title = liege_converting_county_title
desc = liege_converting_county_desc
left_icon = scope:liege_scope
right_icon = scope:county
}
}
}
}
}
}

court_chaplain_task.8002 = { # Completed
scope = none
hidden = yes

immediate = {
scope:county ?= {
set_variable = {
name = county_conversion_completed
weeks = 1
}
}
fetch_council_task_affected_vassal_informees_effect = yes
every_in_list = {
list = informees
switch = {
trigger = faith
scope:councillor_liege.faith ?= { # Good if same faith as county
send_interface_message = {
type = msg_council_conversion_good
title = liege_converted_county_title
desc = liege_converted_county_desc
left_icon = scope:councillor_liege
right_icon = scope:county
}
}
scope:old_faith ?= { # Bad if same faith as liege
send_interface_message = {
type = msg_council_conversion_bad
title = liege_converted_county_title
desc = liege_converted_county_desc
left_icon = scope:councillor_liege
right_icon = scope:county
}
}
fallback = {
send_interface_message = { # Neutral otherwise
type = msg_council_conversion_neutral
title = liege_converted_county_title
desc = liege_converted_county_desc
left_icon = scope:liege_scope
right_icon = scope:county
}
}
}
}
}
}

Loading

0 comments on commit aa63931

Please sign in to comment.