This commit is contained in:
Fishedotjpg 2026-11-18 14:01:14 +00:00
parent eaf472631b
commit 60fbfc1893
15 changed files with 2845 additions and 1349 deletions

View file

@ -406,6 +406,7 @@ generic_scheme_process_ending_effect = {
scope:owner = {
play_sound_effect = "event:/DLC/EP3/SFX/Stingers/Scheme_Rework/ep3_mx_sting_schemerework_positive"
mandala_trickster_increment_successful_schemes_effect = yes
gg_involvement_scheme_effect = { STATE = success }
}
# Keep the commanding puppeteer informed of the outcome of the scheme they ordered.
@ -11384,66 +11385,33 @@ cap_schemes_and_fire_reminders_effect = {
}
switch = {
trigger = scheme_type
murder = {
murder_scheme_prep_effect = yes
}
abduct = {
abduct_scheme_prep_effect = yes
}
challenge_status = {
challenge_status_scheme_prep_effect = yes
}
claim_throne = {
claim_throne_scheme_prep_effect = yes
}
depose = {
depose_scheme_prep_effect = yes
}
overthrow_regent = {
overthrow_regent_scheme_prep_effect = yes
}
expand_power_base = {
expand_power_base_scheme_prep_effect = yes
}
fabricate_hook = {
fabricate_hook_scheme_prep_effect = yes
}
generate_claim = {
generate_claim_scheme_prep_effect = yes
}
promote = {
promote_scheme_prep_effect = yes
}
slander = {
slander_scheme_prep_effect = yes
}
steal_back_artifact = {
steal_back_artifact_scheme_prep_effect = yes
}
seize_realm = {
seize_realm_scheme_prep_effect = yes
}
found_despotate = {
found_despotate_scheme_prep_effect = yes
}
raid_estate = {
raid_estate_scheme_prep_effect = yes
}
prepare_fire_dromons_scheme = {
prepare_fire_dromons_scheme_prep_effect = yes
}
steal_herd = {
steal_herd_scheme_prep_effect = yes
}
celestial_siphon_treasury = {
celestial_siphon_treasury_prep_effect = yes
}
disbelieve_mandala = {
disbelieve_mandala_scheme_prep_effect = yes
}
coerce_tributary = {
coerce_tributary_scheme_prep_effect = yes
}
murder = { murder_scheme_prep_effect = yes }
abduct = { abduct_scheme_prep_effect = yes }
challenge_status = { challenge_status_scheme_prep_effect = yes }
claim_throne = { claim_throne_scheme_prep_effect = yes }
depose = { depose_scheme_prep_effect = yes }
overthrow_regent = { overthrow_regent_scheme_prep_effect = yes }
expand_power_base = { expand_power_base_scheme_prep_effect = yes }
fabricate_hook = { fabricate_hook_scheme_prep_effect = yes }
generate_claim = { generate_claim_scheme_prep_effect = yes }
promote = { promote_scheme_prep_effect = yes }
patrician_promote = { promote_scheme_prep_effect = yes }
slander = { slander_scheme_prep_effect = yes }
patrician_slander = { slander_scheme_prep_effect = yes }
patrician_find_secrets = { gdp_patrician_find_secrets_scheme_prep_effect = yes }
steal_back_artifact = { steal_back_artifact_scheme_prep_effect = yes }
seize_realm = { seize_realm_scheme_prep_effect = yes }
found_despotate = { found_despotate_scheme_prep_effect = yes }
raid_estate = { raid_estate_scheme_prep_effect = yes }
prepare_fire_dromons_scheme = { prepare_fire_dromons_scheme_prep_effect = yes }
steal_herd = { steal_herd_scheme_prep_effect = yes }
celestial_siphon_treasury = { celestial_siphon_treasury_prep_effect = yes }
disbelieve_mandala = { disbelieve_mandala_scheme_prep_effect = yes }
coerce_tributary = { coerce_tributary_scheme_prep_effect = yes }
gg_switch_sides = { gg_switch_sides_scheme_prep_effect = yes }
gg_claim_leadership = { gg_claim_leadership_scheme_prep_effect = yes }
gg_align_undecided = { gg_align_undecided_scheme_prep_effect = yes }
gg_replace_ruler = { gg_replace_ruler_scheme_prep_effect = yes }
}
}
# If the player hasn't been reminded once, tell them that their scheme has hit max opportunities.
@ -11803,6 +11771,34 @@ fabricate_hook_scheme_prep_effect = {
}
}
overthrow_government_scheme_prep_effect = {
save_scope_as = scheme
save_scope_value_as = {
name = follow_up_event
value = event_id:scheme_critical_moments.8310
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
gdp_incite_unrest_scheme_prep_effect = {
save_scope_as = scheme
save_scope_value_as = {
name = follow_up_event
value = event_id:gdp_incite_unrest_scheme_event.0004
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
foster_legitimacy_scheme_prep_effect = {
roll_critical_moment_options_03_agent_types_effect = {
# Success results event.
@ -12104,6 +12100,62 @@ leverage_contribution_scheme_prep_effect = {
}
}
gg_switch_sides_scheme_prep_effect = {
save_scope_as = scheme
save_scope_value_as = {
name = follow_up_event
value = event_id:scheme_critical_moments.1261
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
gg_claim_leadership_scheme_prep_effect = {
save_scope_as = scheme
save_scope_value_as = {
name = follow_up_event
value = event_id:scheme_critical_moments.1271
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
gg_align_undecided_scheme_prep_effect = {
save_scope_as = scheme
save_scope_value_as = {
name = follow_up_event
value = event_id:scheme_critical_moments.1281
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
gg_replace_ruler_scheme_prep_effect = {
save_scope_as = scheme
save_scope_value_as = {
name = follow_up_event
value = event_id:scheme_critical_moments.1291
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
##################################################
# AI Usage Critical Moment Effects — Contract Schemes
@ -12736,6 +12788,22 @@ celestial_minister_find_secrets_scheme_prep_effect = {
}
}
gdp_patrician_find_secrets_scheme_prep_effect = {
save_scope_as = scheme
scheme_owner = { save_scope_as = owner }
scheme_target_character = { save_scope_as = target }
save_scope_value_as = {
name = follow_up_event
value = event_id:gdp_patrician_find_secrets.0001
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
##################################################
# Murder Scheme Effects
@ -12779,6 +12847,8 @@ murder_consequences_known_or_exposed_apply_dread_effect = {
# Apply scope:owner's general ending & consequences.
scheme_owner_pov_murder_success_effect = {
#Guelphs & Ghibellines Involvement
gg_involvement_scheme_effect = { STATE = success }
# Murdering your rival gets you some bonus cred.
## Presumably in how you comport yourself & who's a thorn in your side.
if = {
@ -12794,6 +12864,12 @@ scheme_owner_pov_murder_success_effect = {
if = {
limit = { exists = scope:scheme_discovered }
murder_consequences_known_or_exposed_apply_dread_effect = { VICTIM = scope:target }
#Guelphs & Ghibellines
gg_triggered_catalyst_effect = {
ACTOR = scope:owner
RECIPIENT = scope:target
CATALYST = catalyst_attempt_murder_opposite_party
}
}
# Piety, if appropriate.
if = {
@ -12953,6 +13029,13 @@ murder_success_kill_entourage_too_effect = {
# Distribute murder failure effects.
murder_failure_effect = {
#Guelphs & Ghibellines
gg_involvement_scheme_effect = { STATE = failure }
gg_triggered_catalyst_effect = {
ACTOR = scope:owner
RECIPIENT = scope:target
CATALYST = catalyst_attempt_murder_opposite_party
}
# Add Watchful Modifier to the target
scope:target = {
add_character_modifier = {
@ -12969,7 +13052,7 @@ murder_failure_effect = {
limit = {
scope:target = { is_landed = yes }
}
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:owner
TARGET = scope:target
VALUE = medium_unity_loss
@ -12979,7 +13062,7 @@ murder_failure_effect = {
}
## For unlanded characters, we don't care as much, but you still lose some.
else = {
add_clan_unity_interaction_effect = {
add_house_unity_interaction_effect = {
CHARACTER = scope:owner
TARGET = scope:target
VALUE = minor_unity_loss
@ -14148,6 +14231,7 @@ set_random_entertainment_text_effect = {
}
}
1 = {
#Not in Byzantium
trigger = {
OR = {
root.culture = {
@ -14516,24 +14600,31 @@ abduct_outcome_roll_effect = {
hidden_effect = {
#FIRE CORRECT ON ACTIONS
if = {
limit = {
exists = scope:scheme_successful
}
trigger_event = {
on_action = abduct_succeeded
}
limit = { exists = scope:scheme_successful }
trigger_event = { on_action = abduct_succeeded }
}
else = {
trigger_event = {
on_action = abduct_failed
if = {
limit = {
NOT = { exists = scope:scheme_discovered }
}
#Guelphs & Ghibellines
gg_failed_scheme_effect = { SCHEME = abduct }
}
trigger_event = { on_action = abduct_failed }
}
}
}
#Used in the immediate of the Scheme Owner's success event
abduct_success_effect = {
#Guelphs & Ghibellines
gg_involvement_scheme_effect = { STATE = success }
gg_triggered_catalyst_effect = {
ACTOR = scope:owner
RECIPIENT = scope:target
CATALYST = catalyst_attempt_abduct_opposite_party
}
scope:target = {
add_character_flag = {
flag = was_abducted_block_notification_event
@ -14560,6 +14651,10 @@ abduct_success_effect = {
TARGET = scope:target
IMPRISONER = scope:owner
}
abduct_relatives_opinion_effect = {
VICTIM = scope:target
ABDUCTER = scope:owner
}
if = {
limit = {
@ -14736,12 +14831,12 @@ failed_befriend_opinion_critical_change_effect = {
else_if = { #If you already are potential rivals, you have a chance of becoming Rivals
limit = {
has_relation_potential_rival = root
NOT = { has_relation_rival = root }
NOT = { has_relation_rival = root }
}
hidden_effect = { remove_relation_potential_rival = root }
set_relation_rival = {
target = root
reason = rival_disastrous_befriend_attempt
set_relation_rival_effect = {
TARGET = root
REASON = rival_disastrous_befriend_attempt
}
}
}
@ -14754,9 +14849,7 @@ failed_befriend_opinion_critical_change_effect = {
claim_throne_outcome_roll_setup_effect = {
# Find appropriate title
scope:target = {
primary_title = {
save_scope_as = target_title
}
primary_title = { save_scope_as = target_title }
}
# Discovery Roll setup
save_scope_value_as = {
@ -14922,9 +15015,9 @@ claim_throne_failure_effect = {
}
if = {
limit = { exists = scope:set_rivalry }
set_relation_rival = {
target = scope:owner
reason = rival_claimed_throne_failed
set_relation_rival_effect = {
TARGET = scope:owner
REASON = rival_claimed_throne_failed
}
}
}
@ -14933,18 +15026,16 @@ claim_throne_failure_effect = {
successful_claim_throne_event_option_effect = {
if = {
limit = {
exists = scope:scheme_discovered
}
limit = { exists = scope:scheme_discovered }
add_prestige = claim_throne_discovered_prestige_loss
}
show_as_tooltip = {
scope:target = {
if = {
limit = { exists = scope:set_rivalry }
set_relation_rival = {
target = scope:owner
reason = rival_claimed_throne
set_relation_rival_effect = {
TARGET = scope:owner
REASON = rival_claimed_throne
}
}
if = {
@ -15358,7 +15449,6 @@ elope_success_opinion_rivalry_effect = {
#Rivalry
if = {
limit = {
can_set_relation_rival_trigger = { CHARACTER = $CHARACTER$ }
is_ai = yes
trigger_if = {
limit = { is_spouse_of = $CHARACTER$ }
@ -15370,28 +15460,22 @@ elope_success_opinion_rivalry_effect = {
}
if = {
limit = {
has_relation_rival = $CHARACTER$
can_set_relation_nemesis_trigger = { CHARACTER = $CHARACTER$ }
ai_vengefulness >= medium_positive_ai_value
}
set_relation_nemesis = {
reason = nemesis_elopement
copy_reason = rival
target = $CHARACTER$
set_relation_nemesis_effect = {
TARGET = $CHARACTER$
REASON = nemesis_elopement
}
}
else = {
set_relation_rival = {
target = $CHARACTER$
reason = rival_eloped
progress_towards_rival_effect = {
REASON = rival_eloped
CHARACTER = $CHARACTER$
OPINION = 0
}
}
}
else_if = {
limit = {
can_set_relation_potential_rival_trigger = { CHARACTER = $CHARACTER$ }
}
hidden_effect = { set_relation_potential_rival = $CHARACTER$ }
}
}
elope_success_personal_consequences_effect = {
@ -16401,7 +16485,7 @@ end_court_scheme_effect = {
scope:court_outcome = flag:failure_hard
}
culture = {
has_cultural_parameter = romance_scheme_bonuses
has_cultural_parameter = romance_scheme_penalty
}
}
add_stress = medium_stress_impact_gain
@ -16739,6 +16823,48 @@ subsume_province_scheme_prep_effect = {
}
}
hostile_takeover_scheme_prep_effect = {
save_scope_as = scheme
save_scope_value_as = {
name = follow_up_event
value = event_id:scheme_critical_moments.8401
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
steal_market_insights_scheme_prep_effect = {
save_scope_as = scheme
save_scope_value_as = {
name = follow_up_event
value = event_id:scheme_critical_moments.8501
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
steal_trade_post_scheme_prep_effect = {
save_scope_as = scheme
save_scope_value_as = {
name = follow_up_event
value = event_id:scheme_critical_moments.8601
}
if = {
limit = {
NOT = { exists = scope:suppress_next_event }
}
scheme_owner = { trigger_event = scheme_critical_moments.0002 }
}
}
raid_estate_opinion_effect = {
$TARGET$ = { save_temporary_scope_as = target_temp }
$OWNER$ = { save_temporary_scope_as = owner_temp }
@ -17069,20 +17195,44 @@ coup_ceremonial_liege_scheme_prep_effect = {
}
}
# Simple effect for rolling if a scheme with no secrecy succeeded or failed. No thrills, no frills.
roll_scheme_success_or_failure_effect = {
random = {
chance = scope:scheme.scheme_success_chance
save_scope_value_as = {
name = scheme_successful
value = yes
}
}
scope:owner = {
if = {
limit = { exists = scope:scheme_successful }
mandala_trickster_increment_successful_schemes_effect = yes
# Pre-determine success type here to avoid potentially incorrect tooltip in $SUCCESS_EVENT$
random_list = {
67 = {
save_scope_value_as = { name = scheme_success_type value = flag:success_standard }
}
33 = {
save_scope_value_as = { name = scheme_success_type value = flag:success_critical }
}
}
trigger_event = $SUCCESS_EVENT$
}
else = { trigger_event = $FAILURE_EVENT$ }
}
}
abduction_rivalry_progress_effect = {
scope:target = {
#Target is a ruler
if = {
limit = {
abduct_ruler_rivalling_trigger = yes
}
limit = { abduct_ruler_rivalling_trigger = yes }
if = {
limit = {
is_close_family_of = scope:owner
}
set_relation_rival = {
target = scope:owner
reason = rival_abducted_family
limit = { is_close_family_of = scope:owner }
set_relation_rival_effect = {
TARGET = scope:owner
REASON = rival_abducted_family
}
}
else = {
@ -17095,9 +17245,7 @@ abduction_rivalry_progress_effect = {
}
#Target is close family
if = {
limit = {
abduct_family_rivalling_trigger = yes
}
limit = { abduct_family_rivalling_trigger = yes }
progress_towards_rival_effect = {
CHARACTER = scope:owner
REASON = rival_abducted_family
@ -17107,14 +17255,10 @@ abduction_rivalry_progress_effect = {
#Target has parents that are rulers of superior power
if = {
limit = {
any_parent = {
abduct_rivalling_relative_trigger = yes
}
any_parent = { abduct_rivalling_relative_trigger = yes }
}
every_parent = {
limit = {
abduct_rivalling_relative_trigger = yes
}
limit = { abduct_rivalling_relative_trigger = yes }
progress_towards_rival_effect = {
CHARACTER = scope:owner
REASON = rival_abducted_child
@ -17295,24 +17439,79 @@ abduction_rivalry_progress_tooltip_forecast_effect = {
}
}
debug_test_scheme_event_effect = {
random_scheme = {
save_scope_as = scheme
root = {
save_scope_as = owner
########################################################
# Influence House Ambition Scheme
influence_house_ambition_end_effect = {
if = {
limit = {
scope:owner.house = {
NOT = {
has_same_house_aspiration_as = scope:target.house
}
}
}
scheme_target_character ?= {
save_scope_as = target
if = {
limit = {
exists = scope:scheme
}
hidden_effect = {
scope:scheme = {
reset_failed_scheme_effect = yes
}
}
}
scheme_target_title ?= {
save_scope_as = target
}
scheme_target_culture ?= {
save_scope_as = target
}
scheme_target_faith ?= {
save_scope_as = target
else_if = {
limit = {
exists = scope:scheme_successful
}
scope:scheme = {
end_scheme = yes
}
}
}
else = {
scope:scheme = {
end_scheme = yes
}
}
}
republic_promote_candidate_scheme_end_effect = {
# If target is first in the line of succession, we end the scheme
if = {
limit = {
scope:scheme.var:target_candidate_title = {
place_in_line_of_succession = {
target = scope:target
value = 1
}
}
}
scope:scheme = {
end_scheme = yes
}
}
# Otherwise, we'll continue
else = {
if = {
limit = {
exists = scope:scheme
}
hidden_effect = {
scope:scheme = {
reset_failed_scheme_effect = yes
}
}
if = {
limit = {
exists = scope:scheme_successful
}
custom_tooltip = sway_continue
}
else = {
custom_tooltip = sway_try_again
}
}
}
trigger_event = $EVENT$
}