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

Scripted effect

stewardship_duty_1062_get_client_effect

stewardship_duty_1062_get_client_effect = { CLIENT_SCOPE = … FLAG = … }

game/common/scripted_effects/00_stewardship_lifestyle_effects.txt, line 232 (31 lines). Parameters: $CLIENT_SCOPE$, $FLAG$.

stewardship_duty_1062_get_client_effect is a scripted effect in Crusader Kings III, written at line 232 of its file. A call passes 2 parameters: CLIENT_SCOPE and FLAG. The game's script calls it in 1 place, among them Wealth Aplenty (event stewardship_duty.1062). Patch 1.20.1.2, from game/common/scripted_effects/00_stewardship_lifestyle_effects.txt.

The comment above it in the file

Patronage Effects #

What it does

  • If

    • Any pool character:
      • province = root.capital_province
      • Their faith is the same as yours
      • Their culture:
        • has_same_culture_heritage = root.culture
      • Is under 45 years old

    Then

    • One random pool character:
      • Where:
        • Their faith is the same as yours
        • Their culture:
          • has_same_culture_heritage = root.culture
        • Is under 45 years old
      • province = root.capital_province

• 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 (31 lines of game script)
stewardship_duty_1062_get_client_effect = {
	#If a suitable candidate was generated earlier, select them as an option.

	if = {
		limit = {
			any_pool_character = {
				province = root.capital_province
				has_character_flag = $FLAG$
				faith = root.faith
				culture = { has_same_culture_heritage = root.culture }
				age < 45
				NOT = { has_character_flag = stewardship_duty_1062_already_being_considered }
			}
		}
		random_pool_character = {
			province = root.capital_province
			limit = {
				has_character_flag = $FLAG$
				faith = root.faith
				culture = { has_same_culture_heritage = root.culture }
				age < 45
				NOT = { has_character_flag = stewardship_duty_1062_already_being_considered }
			}
			add_character_flag = {
				flag = stewardship_duty_1062_already_being_considered
				days = 10
			}
			save_scope_as = $CLIENT_SCOPE$
		}
	}
}

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

Where it is used

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

Events (1)

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