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

Scripted effect

military_order_lifestyle_xp_yearly_gain_effect

military_order_lifestyle_xp_yearly_gain_effect = yes

game/common/scripted_effects/00_holy_order_effects.txt, line 1500 (52 lines). No parameters.

military_order_lifestyle_xp_yearly_gain_effect is a scripted effect in Crusader Kings III, written at line 1500 of its file. It takes no parameters: military_order_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: Exalted Warlord:
    • add_martial_lifestyle_xp = { value = minor_lifestyle_xp }
  • Else, if has the Trait: Brilliant Strategist:
    • add_martial_lifestyle_xp = { value = minor_lifestyle_xp multiply = 0.9 }
  • Else, if has the Trait: Skilled Tactician:
    • add_martial_lifestyle_xp = { value = minor_lifestyle_xp multiply = 0.8 }
  • Else, if has the Trait: Tough Soldier:
    • add_martial_lifestyle_xp = { value = minor_lifestyle_xp multiply = 0.7 }
  • Else, if has the Trait: Misguided Warrior:
    • add_martial_lifestyle_xp = { value = minor_lifestyle_xp multiply = 0.6 }
  • Otherwise:
    • add_martial_lifestyle_xp = { value = minor_lifestyle_xp multiply = 0.3 }

• 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 (52 lines of game script)
military_order_lifestyle_xp_yearly_gain_effect = {
	if = {
		limit = {
			has_trait = education_martial_5
		}
		add_martial_lifestyle_xp = {
			value = minor_lifestyle_xp
		}
	}
	else_if = {
		limit = {
			has_trait = education_martial_4
		}
		add_martial_lifestyle_xp = {
			value = minor_lifestyle_xp
			multiply = 0.9
		}
	}
	else_if = {
		limit = {
			has_trait = education_martial_3
		}
		add_martial_lifestyle_xp = {
			value = minor_lifestyle_xp
			multiply = 0.8
		}
	}
	else_if = {
		limit = {
			has_trait = education_martial_2
		}
		add_martial_lifestyle_xp = {
			value = minor_lifestyle_xp
			multiply = 0.7
		}
	}
	else_if = {
		limit = {
			has_trait = education_martial_1
		}
		add_martial_lifestyle_xp = {
			value = minor_lifestyle_xp
			multiply = 0.6
		}
	}
	else = {
		add_martial_lifestyle_xp = {
			value = minor_lifestyle_xp
			multiply = 0.3
		}
	}
}

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 military_order_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?