Scripted effect
petition_liege_save_council_seat_effect
petition_liege_save_council_seat_effect = { JOB_TAKER = … LIEGE = … }game/common/scripted_effects/00_petition_liege_effects.txt, line 34 (148 lines). Parameters: $JOB_TAKER$, $LIEGE$.
petition_liege_save_council_seat_effect is a scripted effect in Crusader Kings III, written at line 34 of its file. A call passes 2 parameters: JOB_TAKER and LIEGE. The game's script calls it in 2 places, among them … Ultimatum (event bp1_yearly.8180) and petition_liege.9000 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_petition_liege_effects.txt.
What it does
- 1 of 5 things will happen:
- 20%:
petition_liege_councillor_compare_modifier = { SKILL = diplomacy ROLE = chancellor JOB_TAKER = $JOB_TAKER$ }petition_liege_0101_councillor_scope_first_effect = { ROLE = chancellor JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20%:
petition_liege_councillor_compare_modifier = { SKILL = martial ROLE = marshal JOB_TAKER = $JOB_TAKER$ }petition_liege_0101_councillor_scope_first_effect = { ROLE = marshal JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20%:
petition_liege_councillor_compare_modifier = { SKILL = stewardship ROLE = steward JOB_TAKER = $JOB_TAKER$ }petition_liege_0101_councillor_scope_first_effect = { ROLE = steward JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20%:
petition_liege_councillor_compare_modifier = { SKILL = intrigue ROLE = spymaster JOB_TAKER = $JOB_TAKER$ }petition_liege_0101_councillor_scope_first_effect = { ROLE = spymaster JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20%:
petition_liege_councillor_compare_modifier = { SKILL = learning ROLE = court_chaplain JOB_TAKER = $JOB_TAKER$ }petition_liege_0101_councillor_scope_first_effect = { ROLE = court_chaplain JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20%:
- 1 of 5 things will happen:
- 20% (base chance; changed in play):
petition_liege_0101_councillor_scope_second_effect = { ROLE = chancellor JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20% (base chance; changed in play):
petition_liege_0101_councillor_scope_second_effect = { ROLE = marshal JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20% (base chance; changed in play):
petition_liege_0101_councillor_scope_second_effect = { ROLE = steward JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20% (base chance; changed in play):
petition_liege_0101_councillor_scope_second_effect = { ROLE = spymaster JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20% (base chance; changed in play):
petition_liege_0101_councillor_scope_second_effect = { ROLE = court_chaplain JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
- 20% (base chance; changed in play):
• 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 (120 lines of game script)
petition_liege_save_council_seat_effect = {
random_list = { # Pick best position, even if occupied
2 = {
trigger = {
petition_liege_councillor_blocked_trigger = {
ROLE = chancellor
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
petition_liege_councillor_compare_modifier = { SKILL = diplomacy ROLE = chancellor JOB_TAKER = $JOB_TAKER$ }
petition_liege_0101_councillor_scope_first_effect = { ROLE = chancellor JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
}
2 = {
trigger = {
petition_liege_councillor_blocked_trigger = {
ROLE = marshal
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
petition_liege_councillor_compare_modifier = { SKILL = martial ROLE = marshal JOB_TAKER = $JOB_TAKER$ }
petition_liege_0101_councillor_scope_first_effect = { ROLE = marshal JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
}
2 = {
trigger = {
petition_liege_councillor_blocked_trigger = {
ROLE = steward
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
petition_liege_councillor_compare_modifier = { SKILL = stewardship ROLE = steward JOB_TAKER = $JOB_TAKER$ }
petition_liege_0101_councillor_scope_first_effect = { ROLE = steward JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
}
2 = {
trigger = {
petition_liege_councillor_blocked_trigger = {
ROLE = spymaster
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
petition_liege_councillor_compare_modifier = { SKILL = intrigue ROLE = spymaster JOB_TAKER = $JOB_TAKER$ }
petition_liege_0101_councillor_scope_first_effect = { ROLE = spymaster JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
}
2 = {
trigger = {
petition_liege_council_chaplain_appointable_trigger = {
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
petition_liege_councillor_blocked_trigger = {
ROLE = court_chaplain
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
petition_liege_councillor_compare_modifier = { SKILL = learning ROLE = court_chaplain JOB_TAKER = $JOB_TAKER$ }
petition_liege_0101_councillor_scope_first_effect = { ROLE = court_chaplain JOB_TAKER = $JOB_TAKER$ LIEGE = $LIEGE$ }
}
}
random_list = {
2 = {
trigger = {
petition_liege_councillor_second_trigger = {
ROLE = chancellor
SKILL = diplomacy
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
modifier = { factor = $JOB_TAKER$.diplomacy }
petition_liege_0101_councillor_scope_second_effect = {
ROLE = chancellor
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
2 = {
trigger = {
petition_liege_councillor_second_trigger = {
ROLE = marshal
SKILL = martial
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
modifier = { factor = $JOB_TAKER$.martial }
petition_liege_0101_councillor_scope_second_effect = {
ROLE = marshal
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
2 = {
trigger = {
petition_liege_councillor_second_trigger = {
ROLE = steward
SKILL = stewardship
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
modifier = { factor = $JOB_TAKER$.stewardship }
petition_liege_0101_councillor_scope_second_effect = {
ROLE = steward
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}
2 = {
trigger = {
petition_liege_councillor_second_trigger = {
ROLE = spymaster
SKILL = intrigue
JOB_TAKER = $JOB_TAKER$
LIEGE = $LIEGE$
}
}As written in game/common/scripted_effects/00_petition_liege_effects.txt.
The first 120 of its 148 lines; the rest is in game/common/scripted_effects/00_petition_liege_effects.txt from line 34.
Where it is used
Every place in common/, events/ and history/ that calls petition_liege_save_council_seat_effect.
Events (2)
- … Ultimatum
bp1_yearly.8180 - petition_liege.9000
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.