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

Scripted effect

dynastic_monks_gain_xp_effect

dynastic_monks_gain_xp_effect = yes

game/common/scripted_effects/00_holy_order_effects.txt, line 5780 (50 lines). No parameters.

dynastic_monks_gain_xp_effect is a scripted effect in Crusader Kings III, written at line 5780 of its file. It takes no parameters: dynastic_monks_gain_xp_effect = yes. The game's script calls it in 3 places, among them donate_to_monastic_order_effect (scripted effect), lease_to_monastic_order_interaction_effect (scripted effect) and send_child_to_monastic_order_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_holy_order_effects.txt.

What it does

  • Every Courtier:
    • Where:
      • Has the Trait: Monk
      • One of these

        • All of these

          • exists = scope:puppet_or_actor.dynasty
          • dynasty ?= scope:puppet_or_actor.dynasty
        • or

          is_close_family_of = scope:puppet_or_actor
    • Monk experience changes

• 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 (50 lines of game script)
dynastic_monks_gain_xp_effect = {
	if = {
		limit = { NOT = { exists = scope:puppet_or_actor } }
		scope:actor = { save_scope_as = puppet_or_actor }
	}
	every_courtier = {
		limit = {
			has_trait = devoted
			OR = {
				AND = {
					exists = scope:puppet_or_actor.dynasty
					dynasty ?= scope:puppet_or_actor.dynasty
				}
				is_close_family_of = scope:puppet_or_actor
			}
		}
		add_trait_xp = {
			trait = devoted
			value = {
				value = 2
				if = {
					limit = {
						is_close_family_of = scope:puppet_or_actor
					}
					add = 2
				}
				if = {
					limit = {
						house ?= scope:puppet_or_actor.house
					}
					add = 2
				}
				#increase for lease granting interaction
				if = {
					limit = {
						exists = scope:target
					}
					multiply = 2
				}
				#Increase for huge donation
				if = {
					limit = {
						scope:huge_donation ?= yes
					}
					multiply = 2.5
				}
			}
		}
	}
}

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 dynastic_monks_gain_xp_effect.

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?