Scripted effect
claim_throne_outcome_roll_effect
claim_throne_outcome_roll_effect = yesgame/common/scripted_effects/00_scheme_scripted_effects.txt, line 14620 (45 lines). No parameters.
claim_throne_outcome_roll_effect is a scripted effect in Crusader Kings III, written at line 14620 of its file. It takes no parameters: claim_throne_outcome_roll_effect = yes. The game's script calls it in 3 places, among them Claim Throne (event claim_throne_outcome.1001), Claim Throne (event claim_throne_outcome.1002) and Claim Throne (event claim_throne_outcome.1003). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_scheme_scripted_effects.txt.
The comment above it in the file
Roll to check whether a Claim Throne Scheme is a success or a failure, and whether the owner is discovered
What it does
- …% chance of:
- You gain a Pressed Claim on the …
scope:owner:
- …% chance of: Your fabrications are discovered!
• 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 (45 lines of game script)
claim_throne_outcome_roll_effect = {
#SUCCESS ROLL
random = {
chance = scope:scheme.scheme_success_chance
custom_tooltip = claim_throne_successful_roll_tt
scope:owner = { mandala_trickster_increment_successful_schemes_effect = yes }
save_scope_value_as = {
name = scheme_successful
value = yes
}
}
### End Success roll
#DISCOVERY ROLL
custom_description_no_bullet = {
text = claim_throne_success_discovery_warning_effect
}
random = {
chance = scope:discovery_chance
custom_tooltip = claim_throne_become_discovered_roll_tt
save_scope_value_as = {
name = scheme_discovered
value = yes
}
}
### End Discovery roll
hidden_effect = {
#FIRE CORRECT ON ACTIONS
if = {
limit = {
exists = scope:scheme_successful
}
trigger_event = {
on_action = claim_throne_succeeded
days = 3
}
}
else = {
trigger_event = {
on_action = claim_throne_failed
days = 3
}
}
}
}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_outcome_roll_effect.
Events (3)
- Claim Throne
claim_throne_outcome.1001 - Claim Throne
claim_throne_outcome.1002 - Claim Throne
claim_throne_outcome.1003
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.