Scripted effect
petition_liege_0101_councillor_scope_first_effect
petition_liege_0101_councillor_scope_first_effect = { JOB_TAKER = … LIEGE = … ROLE = … }game/common/scripted_effects/00_petition_liege_effects.txt, line 7 (12 lines). Parameters: $JOB_TAKER$, $LIEGE$, $ROLE$.
petition_liege_0101_councillor_scope_first_effect is a scripted effect in Crusader Kings III, written at line 7 of its file. A call passes 3 parameters: JOB_TAKER, LIEGE and ROLE. The game's script calls it in 2 places, among them ep3_story_cycle_admin_eunuch_save_council_position_effect (local effect) and petition_liege_save_council_seat_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_petition_liege_effects.txt.
The comment above it in the file
Save most fitting council seat incumbent
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (12 lines of game script)
petition_liege_0101_councillor_scope_first_effect = {
if = {
limit = { exists = $LIEGE$.cp:councillor_$ROLE$ }
$LIEGE$.cp:councillor_$ROLE$ = { save_scope_as = second_party }
}
$JOB_TAKER$ = {
set_variable = {
name = petition_liege_council_first
value = flag:$ROLE$
}
}
}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_councillor_scope_first_effect.
Scripted effects inside an event file (1)
- ep3_story_cycle_admin_eunuch_save_council_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.