Scripted effect · All Under Heaven files
failee_chance_to_gain_elder_effect
failee_chance_to_gain_elder_effect = yesgame/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt, line 702 (48 lines). No parameters.
failee_chance_to_gain_elder_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 702 of its file. It takes no parameters: failee_chance_to_gain_elder_effect = yes. The game's script calls it in 2 places, among them imperial_examination_disburse_activity_entrant_rewards (scripted effect) and local_examination_disburse_activity_entrant_rewards (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
The comment above it in the file
a chance to set an elder/disciple relation between examiners and failees
What it does
- …% chance of › One random guest subset:
- Where:
merit > scope:entrant.merit
name = imperial_examinersset_elder_relation_effect = { ELDER = scope:elder DISCIPLE = scope:entrant MERIT = minor_merit_gain }
- Where:
• 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 (48 lines of game script)
failee_chance_to_gain_elder_effect = {
random = {
chance = {
value = 25
scope:entrant = {
every_held_title = {
add = 5
}
if = {
limit = {
# No Elders for known cheaters
has_character_flag = been_caught_cheating
}
add = -25
}
}
}
random_guest_subset = {
name = imperial_examiners
limit = {
merit > scope:entrant.merit
}
weight = {
base = 100
modifier = {
any_relation = {
type = disciple
count > 0
}
# even out the distribution of disciples
add = {
every_relation = {
type = disciple
add = -5
}
}
}
}
save_scope_as = elder
set_elder_relation_effect = {
ELDER = scope:elder
DISCIPLE = scope:entrant
MERIT = minor_merit_gain
}
scope:entrant = { add_character_flag = exam_got_elder }
}
}
}As written in game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls failee_chance_to_gain_elder_effect.
Source: game/common/scripted_effects/tgp_imperial_examination_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.