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

Scripted effect

monastic_lifestyle_xp_yearly_gain_effect

monastic_lifestyle_xp_yearly_gain_effect = yes

game/common/scripted_effects/00_holy_order_effects.txt, line 1395 (105 lines). No parameters.

monastic_lifestyle_xp_yearly_gain_effect is a scripted effect in Crusader Kings III, written at line 1395 of its file. It takes no parameters: monastic_lifestyle_xp_yearly_gain_effect = yes. The game's script calls it in 1 place, among them yearly_playable_pulse (on action). Patch 1.20.1.2, from game/common/scripted_effects/00_holy_order_effects.txt.

What it does

  • If has the Trait: Erudite Oracle:
    • add_learning_lifestyle_xp = { value = medium_lifestyle_xp }
  • Else, if has the Trait: Mastermind Philosopher:
    • add_learning_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.9 }
  • Else, if has the Trait: Astute Intellectual:
    • add_learning_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.8 }
  • Else, if has the Trait: Insightful Thinker:
    • add_learning_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.7 }
  • Else, if has the Trait: Conscientious Scribe:
    • add_learning_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.6 }
  • Otherwise:
    • add_learning_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.3 }
  • If has the Trait: Golden Sovereign:
    • add_stewardship_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.8 }
  • Else, if has the Trait: Midas Touched:
    • add_stewardship_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.7 }
  • Else, if has the Trait: Fortune Builder:
    • add_stewardship_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.6 }
  • Else, if has the Trait: Thrifty Clerk:
    • add_stewardship_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.5 }
  • Else, if has the Trait: Indulgent Wastrel:
    • add_stewardship_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.4 }
  • Otherwise:
    • add_stewardship_lifestyle_xp = { value = medium_lifestyle_xp multiply = 0.2 }

• 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 (105 lines of game script)
monastic_lifestyle_xp_yearly_gain_effect = {
	 
	if = {
		limit = {
			has_trait = education_learning_5
		}
		add_learning_lifestyle_xp = {
			value = medium_lifestyle_xp
		}
	}
	else_if = {
		limit = {
			has_trait = education_learning_4
		}
		add_learning_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.9
		}
	}
	else_if = {
		limit = {
			has_trait = education_learning_3
		}
		add_learning_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.8
		}
	}
	else_if = {
		limit = {
			has_trait = education_learning_2
		}
		add_learning_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.7
		}
	}
	else_if = {
		limit = {
			has_trait = education_learning_1
		}
		add_learning_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.6
		}
	}
	else = {
		add_learning_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.3
		}
	}
	#Stewardship
	if = {
		limit = {
			has_trait = education_stewardship_5
		}
		add_stewardship_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.8
		}
	}
	else_if = {
		limit = {
			has_trait = education_stewardship_4
		}
		add_stewardship_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.7
		}
	}
	else_if = {
		limit = {
			has_trait = education_stewardship_3
		}
		add_stewardship_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.6
		}
	}
	else_if = {
		limit = {
			has_trait = education_stewardship_2
		}
		add_stewardship_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.5
		}
	}
	else_if = {
		limit = {
			has_trait = education_stewardship_1
		}
		add_stewardship_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.4
		}
	}
	else = {
		add_stewardship_lifestyle_xp = {
			value = medium_lifestyle_xp
			multiply = 0.2
		}
	}
}

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

Where it is used

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

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

  • yearly_playable_pulse

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