Scripted effect
petition_liege_0101_court_position_effect
petition_liege_0101_court_position_effect = { JOB_TAKER = … }game/common/scripted_effects/00_petition_liege_effects.txt, line 279 (53 lines). Parameters: $JOB_TAKER$.
petition_liege_0101_court_position_effect is a scripted effect in Crusader Kings III, written at line 279 of its file. A call passes 1 parameter: JOB_TAKER. The game's script calls it in 1 place, among them petition_type_outcome_effect (scripted effect). Its body carries 1 text of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_petition_liege_effects.txt.
What it does
If
a check the game hides
Then
court_position_generator_assignment_effect = { EMPLOYER = scope:petition_liege CANDIDATE = $JOB_TAKER$ VAR = second }
Otherwise
court_position_generator_assignment_effect = { EMPLOYER = scope:petition_liege CANDIDATE = $JOB_TAKER$ VAR = target }
• 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 (53 lines of game script)
petition_liege_0101_court_position_effect = {
$JOB_TAKER$ = {
set_variable = {
name = petition_court_position_liege
value = scope:petition_liege
years = 5
}
}
if = {
limit = { exists = scope:second_court_pos }
$JOB_TAKER$ = {
set_variable = {
name = petition_court_position_role
value = var:second_court_position
years = 5
}
}
court_position_generator_assignment_effect = {
EMPLOYER = scope:petition_liege
CANDIDATE = $JOB_TAKER$
VAR = second
}
}
else = {
$JOB_TAKER$ = {
set_variable = {
name = petition_court_position_role
value = var:target_court_position
years = 5
}
}
court_position_generator_assignment_effect = {
EMPLOYER = scope:petition_liege
CANDIDATE = $JOB_TAKER$
VAR = target
}
}
if = {
limit = { $JOB_TAKER$ != scope:petition_vassal }
scope:petition_vassal = {
hidden_effect = {
send_interface_toast = {
title = petition_liege.0101.t.court_position
left_icon = scope:petition_liege
right_icon = $JOB_TAKER$
$JOB_TAKER$ = {
custom_tooltip = court_position_toast_desc_vassal
}
}
}
}
}
}As written in game/common/scripted_effects/00_petition_liege_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls petition_liege_0101_court_position_effect.
Scripted effects (1)
Source: game/common/scripted_effects/00_petition_liege_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.