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

Scripted effect · Wards and Wardens files

add_relevant_lifestyle_perk_point_effect

add_relevant_lifestyle_perk_point_effect = { NUMBER = … }

game/common/scripted_effects/05_dlc_bp2_effects.txt, line 256 (32 lines). Parameters: $NUMBER$.

add_relevant_lifestyle_perk_point_effect is a scripted effect in Crusader Kings III, in the Wards and Wardens files, written at line 256 of its file. A call passes 1 parameter: NUMBER. The game's script calls it in 2 places, among them 1100_lifestyle_perk_effect (local effect) and disburse_adult_education_reward_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/05_dlc_bp2_effects.txt.

What it does

  • If has the Trait: Students of Diplomacy:
    • add_diplomacy_lifestyle_perk_points = $NUMBER$
  • Else, if has the Trait: Students of Warfare:
    • add_martial_lifestyle_perk_points = $NUMBER$
  • Else, if has the Trait: Students of Stewardship:
    • add_stewardship_lifestyle_perk_points = $NUMBER$
  • Else, if has the Trait: Students of Intrigue:
    • add_intrigue_lifestyle_perk_points = $NUMBER$
  • Else, if has the Trait: Students of Knowledge:
    • add_learning_lifestyle_perk_points = $NUMBER$

• 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 (32 lines of game script)
add_relevant_lifestyle_perk_point_effect = {
	if = {
		limit = {
			has_trait = education_diplomacy
		}
		add_diplomacy_lifestyle_perk_points = $NUMBER$
	}
	else_if = {
		limit = {
			has_trait = education_martial
		}
		add_martial_lifestyle_perk_points = $NUMBER$
	}
	else_if = {
		limit = {
			has_trait = education_stewardship
		}
		add_stewardship_lifestyle_perk_points = $NUMBER$
	}
	else_if = {
		limit = {
			has_trait = education_intrigue
		}
		add_intrigue_lifestyle_perk_points = $NUMBER$
	}
	else_if = {
		limit = {
			has_trait = education_learning
		}
		add_learning_lifestyle_perk_points = $NUMBER$
	}
}

As written in game/common/scripted_effects/05_dlc_bp2_effects.txt.

Where it is used

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

Scripted effects inside an event file (1)

  • 1100_lifestyle_perk_effect

Source: game/common/scripted_effects/05_dlc_bp2_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?