Scripted effect · Roads to Power files
depose_effect
depose_effect = { DEPOSER = … }game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 12798 (54 lines). Parameters: $DEPOSER$.
depose_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 12798 of its file. A call passes 1 parameter: DEPOSER. The game's script calls it in 11 places, among them … Imprison (interaction), Imprison (interaction) and Depose (casus belli). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The comment above it in the file
Effect for handling players and AI continuing as landless if deposed Should be used over the standard effect in most cases (except barons/unlanded AI etc.) DEPOSER should be whoever has caused the deposal - faction leader, ultimatum giver, etc.
What it does
depose = yes- If has “crowned king var” (a variable the game's script sets):
If
- Game rule not set to “No Coronation Laws”
One of these
- Has the Crowned Sovereign Law
or
Has the Anointed Sovereign Law
Then
- If has “crowned emperor var” (a variable the game's script sets):
If
- Game rule not set to “No Coronation Laws”
One of these
- Has the Crowned Sovereign Law
or
Has the Anointed Sovereign Law
Then
- Event ep3_laamps.0002
• the game's own tooltip text · ◦ our reading of the script line · code the script where neither exists
“They” is whatever it runs on (the scope it is called in). The scripted triggers and effects it calls link to their own pages; $PARAMETERS$ stay as written: each call fills them in.
The script as written (54 lines of game script)
depose_effect = {
show_as_tooltip = { depose = yes }
save_scope_as = allow_imprisoned_landless
if = {
limit = { is_valid_for_laampdom = yes }
custom_tooltip = laamp_may_become_adventurer_tt
}
set_variable = {
name = deposed_primary_title
value = primary_title
months = 1
}
# Maintenance scopes
save_scope_as = defender
$DEPOSER$ = {
save_scope_as = attacker
save_scope_as = winner
}
# ACH crown laws reset
if = {
limit = {
has_variable = crowned_king_var
}
remove_variable = crowned_king_var
if = {
limit = {
NOT = { has_game_rule = coronation_laws_off }
OR = {
has_realm_law = crowned_king
has_realm_law = crowned_emperor
}
}
add_realm_law_skip_effects = uncrowned
}
}
if = {
limit = {
has_variable = crowned_emperor_var
}
remove_variable = crowned_emperor_var
if = {
limit = {
NOT = { has_game_rule = coronation_laws_off }
OR = {
has_realm_law = crowned_king
has_realm_law = crowned_emperor
}
}
add_realm_law_skip_effects = uncrowned
}
}
every_held_title = { add_to_list = target_titles }
trigger_event = ep3_laamps.0002
}As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls depose_effect.
Character interactions (2)
Casus belli (4)
Events (4)
- A Helpful Warning
yearly.3001 - Coveted Claim
bp1_yearly.8000 - Genpei War: A Crossroads of Power
tgp_genpei_character.2010 - The Manhunter
travel_events.2037
Scripted effects inside an event file (1)
- 2033_clean_up_escaped_prisoner_effect
Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.