Scripted effect
claim_throne_check_target_title_effect
claim_throne_check_target_title_effect = yesgame/common/scripted_effects/00_scheme_scripted_effects.txt, line 14564 (54 lines). No parameters.
claim_throne_check_target_title_effect is a scripted effect in Crusader Kings III, written at line 14564 of its file. It takes no parameters: claim_throne_check_target_title_effect = yes. The game's script calls it in 6 places, among them Claim Throne (event claim_throne_outcome.2001), Claim Throne (event claim_throne_outcome.2002) and Claim Throne (event claim_throne_outcome.2003). Patch 1.20.1.2, from game/common/scripted_effects/00_scheme_scripted_effects.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (54 lines of game script)
claim_throne_check_target_title_effect = {
# In case something has happened to the target_title, we try to reset it here:
if = {
limit = {
OR = {
NOT = { exists = scope:target_title } # The title could somehow disappear
NOT = {
scope:target_title = { # The title might feasibly pass to someone else
holder ?= scope:target
}
}
}
}
scope:target = {
primary_title = { # We just assign the target's primary title as the new target title
save_scope_as = target_title
}
}
}
# Rivalry check is done here, since it's run in every outcome
if = {
limit = {
OR = {
exists = scope:scheme_successful
exists = scope:scheme_discovered
}
NOT = { has_relation_rival = scope:target }
}
hidden_effect = {
random = {
chance = 30
modifier = {
add = 30
has_relation_potential_rival = scope:target
}
modifier = {
exists = scope:scheme_discovered
add = 30
}
modifier = {
has_relation_friend = scope:target
add = -25
}
save_scope_value_as = {
name = set_rivalry
value = yes
}
}
}
}
}As written in game/common/scripted_effects/00_scheme_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls claim_throne_check_target_title_effect.
Events (6)
- Claim Throne
claim_throne_outcome.2001 - Claim Throne
claim_throne_outcome.2002 - Claim Throne
claim_throne_outcome.2003 - Claim Throne
claim_throne_outcome.4001 - Claim Throne
claim_throne_outcome.4002 - Claim Throne
claim_throne_outcome.4003
Source: game/common/scripted_effects/00_scheme_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.