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

Scripted effect

of_the_people_effect

of_the_people_effect = yes

game/common/scripted_effects/00_wanderer_perk_effects.txt, line 3 (20 lines). No parameters.

of_the_people_effect is a scripted effect in Crusader Kings III, written at line 3 of its file. It takes no parameters: of_the_people_effect = yes. The game's script calls it in 4 places, among them on_travel_plan_abort (on action), on_travel_plan_complete (on action) and on_travel_plan_movement (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_wanderer_perk_effects.txt.

The comment above it in the file

Effects used by Perks in the Wanderer Lifestyle

What it does

  • If

    • Is a ruler
    • Has the Of the People Perk
    • One of these

      • location.county.holder ?= root
      • or

        location.county.holder.liege ?= root
      • or

        location.county.holder.top_liege ?= root

    Then

• 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 (20 lines of game script)
of_the_people_effect = {
	if = {
		limit = {
			exists = location.county
			is_ruler = yes
			has_perk = of_the_people_perk
			OR = {
				location.county.holder ?= root
				location.county.holder.liege ?= root
				location.county.holder.top_liege ?= root
			}
		}
		location.county = {
			add_county_modifier = {
				modifier = of_the_people_perk_modifier
				years = 2
			}
		}
	}
}

As written in game/common/scripted_effects/00_wanderer_perk_effects.txt.

Where it is used

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

On actions (the game's own hooks) (4)

  • on_travel_plan_abort
  • on_travel_plan_complete
  • on_travel_plan_movement
  • on_travel_plan_start

Source: game/common/scripted_effects/00_wanderer_perk_effects.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?