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

Scripted effect

pick_monastic_founder_option_effect

pick_monastic_founder_option_effect = yes

game/common/scripted_effects/00_holy_order_effects.txt, line 866 (150 lines). No parameters.

pick_monastic_founder_option_effect is a scripted effect in Crusader Kings III, written at line 866 of its file. It takes no parameters: pick_monastic_founder_option_effect = yes. The game's script calls it in 2 places, among them A Movement Rises in … (event holy_order.2050) and A New Monastic Order (event holy_order.2010). Its body carries 3 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/00_holy_order_effects.txt.

What it does

  • If

    a check the game hides

    Then

    • … will be the Tenet advocated by …

    Otherwise

    • … will be the Order's Tenet
  • If

    a check the game hides

    Then

    • Their faith:
      • If

        Then

        • If

          • list_size = { name = revoked_leases value >= 5 }

          Then

          • Popularity of a tenet changes

          Else if

          • list_size = { name = revoked_leases value >= 4 }

          Then

          • Popularity of a tenet changes

          Else if

          • list_size = { name = revoked_leases value >= 3 }

          Then

          • Popularity of a tenet changes

          Else if

          • list_size = { name = revoked_leases value >= 2 }

          Then

          • Popularity of a tenet changes

          Otherwise

          • Popularity of a tenet changes
    • If

      • Their rite:
        • One of these

          • has_tenet_status = { tenet = tenet_dulia status = core }
          • or

            has_tenet_status = { tenet = tenet_dulia status = permitted }

      Then

    • You:
      • add_hook = { type = indebted_hook target = scope:chosen_leader }
  • If

    a check the game hides

    Then

    • scope:target_lessee: Gains a Rival

• 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 (120 lines of game script)
pick_monastic_founder_option_effect = {
	if = {
		limit = {
			exists = scope:monastic_order
		}
		custom_tooltip = monastic_tenet_pick_tt
	}
	else = {
		custom_tooltip = monastic_tenet_pick_unformed_order_tt
	}
	# holy_order.2009 stored the founder boost on the province until this order title existed
	if = {
		limit = {
			exists = scope:monastic_order
			scope:barony.title_province ?= { has_variable = new_order_ascetic_boost }
		}
		scope:barony.title_province = {
			var:new_order_ascetic_boost = { save_temporary_scope_as = new_order_ascetic_founder }
			remove_variable = new_order_ascetic_boost
		}
		scope:monastic_order = {
			set_variable = {
				name = ascetic_order_founder
				value = scope:new_order_ascetic_founder
				years = 50
			}
		}
	}
	#Gain popularity if taking holding from old order
	if = {
		limit = {
			exists = scope:target_order_tenet
		}
		faith = {
			if = {
				limit = { has_tenet_popularity_trigger = yes }
				if = {
					limit = {
						list_size = {
							name = revoked_leases
							value >= 5
						}
					}
					change_tenet_popularity = {
						target = scope:tenet_pick
						change = {
							value = medium_tenet_popularity_gain
							multiply = 4
						}
					}
				}
				else_if = {
					limit = {
						list_size = {
							name = revoked_leases
							value >= 4
						}
					}
					change_tenet_popularity = {
						target = scope:tenet_pick
						change = {
							value = medium_tenet_popularity_gain
							multiply = 3
						}
					}
				}
				else_if = {
					limit = {
						list_size = {
							name = revoked_leases
							value >= 3
						}
					}
					change_tenet_popularity = {
						target = scope:tenet_pick
						change = {
							value = medium_tenet_popularity_gain
							multiply = 2
						}
					}
				}
				else_if = {
					limit = {
						list_size = {
							name = revoked_leases
							value >= 2
						}
					}
					change_tenet_popularity = {
						target = scope:tenet_pick
						change = {
							value = medium_tenet_popularity_gain
							multiply = 1.5
						}
					}
				}
				else = {
					change_tenet_popularity = {
						target = scope:tenet_pick
						change = {
							value = medium_tenet_popularity_gain
							multiply = 1
						}
					}
				}
			}
		}
		
		if = {
			limit = {
				rite = {
					OR = {
						has_tenet_status = { tenet = tenet_dulia status = core }
						has_tenet_status = { tenet = tenet_dulia status = permitted }
					}
				}
			}
			custom_tooltip = monastic_founder_become_saint_tt
		}
		#Reward high church authority theocrat with a hook

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

The first 120 of its 150 lines; the rest is in game/common/scripted_effects/00_holy_order_effects.txt from line 866.

Where it is used

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

Events (2)

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?