CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted trigger

petition_liege_councillor_replace_weight_trigger

petition_liege_councillor_replace_weight_trigger = { JOB = … SKILL = … }

game/common/scripted_triggers/00_activity_triggers.txt, line 520 (13 lines). Parameters: $JOB$, $SKILL$.

petition_liege_councillor_replace_weight_trigger is a scripted trigger in Crusader Kings III, written at line 520 of its file. A call passes 2 parameters: JOB and SKILL. The game's script calls it in 1 place, among them Petition: Gold (event petition_liege.0101). Patch 1.20.1.2, from game/common/scripted_triggers/00_activity_triggers.txt.

The comment above it in the file

For picking which council position to offer

What it checks

  • scope:petition_vassal: Has “petition liege council first” (a variable the game's script sets)
  • scope:petition_vassal.var:petition_liege_council_first = flag:$JOB$
  • One of these

    • NOT = { has_councillor_for_skill = $SKILL$ }
    • or

      All of these

      • exists = scope:second_party
      • scope:petition_vassal.$SKILL$ > scope:second_party.$SKILL$

• 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 (13 lines of game script)
petition_liege_councillor_replace_weight_trigger = {
	AND = {
		scope:petition_vassal = { has_variable = petition_liege_council_first }
		scope:petition_vassal.var:petition_liege_council_first = flag:$JOB$
		OR = {
			NOT = { has_councillor_for_skill = $SKILL$ }
			AND = {
				exists = scope:second_party
				scope:petition_vassal.$SKILL$ > scope:second_party.$SKILL$
			}
		}
	}
}

As written in game/common/scripted_triggers/00_activity_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls petition_liege_councillor_replace_weight_trigger.

Events (1)

Source: game/common/scripted_triggers/00_activity_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?