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_yearly_trait_gain_effect

military_order_yearly_trait_gain_effect = yes

game/common/scripted_effects/00_holy_order_effects.txt, line 1553 (59 lines). No parameters.

military_order_yearly_trait_gain_effect is a scripted effect in Crusader Kings III, written at line 1553 of its file. It takes no parameters: military_order_yearly_trait_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

• 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 (59 lines of game script)
military_order_yearly_trait_gain_effect = {
	#Lazarites might gain a little leprosy...
	if = {
		limit = {
			primary_title = title:d_knights_of_st_lazarus
		}
		random = {
			chance = 10
			if = {
				limit = {
					NOT = { has_trait = leper }
				}
				add_to_list = lazarists
			}
			every_courtier = {
				limit = {
					NOT = { has_trait = leper }
				}
			}
			random_in_list = {
				list = lazarists
				add_trait = leper
			}
		}
	}
	#Hospital orders gain physician trait XP
	if = {
		limit = {
			primary_title = {
				OR = {
					this = title:d_knights_of_st_lazarus
					this = title:d_knights_hospitaller
					this = title:d_knights_of_the_tau
				}
			}
		}
		every_courtier = {
			limit = {
				has_trait = lifestyle_physician
			}
			add_trait_xp = {
				trait = lifestyle_physician
				value = { 1 10 }
			}
		}
		random = {
			chance = 50
			ordered_courtier = {
				order_by = learning
				limit = {
					NOT = {
						has_trait = lifestyle_physician
					}
				}
				add_trait = lifestyle_physician
			}
		}
	}
}

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