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

Scripted effect

add_law_of_the_land_title_succession_law_if_appropriate_effect

add_law_of_the_land_title_succession_law_if_appropriate_effect = yes

game/common/scripted_effects/00_realm_effects.txt, line 85 (26 lines). No parameters.

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

The comment above it in the file

Should be used in the county title scope

What it does

  • If

    • NOT = { has_title_law = law_of_the_land_succession_law }
    • The … is not a Noble Family Title
    • title_province.holding_type ?= { … }

    Then

    • Their holder › scope:county_title:
      • add_title_law = law_of_the_land_succession_law

• 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 (26 lines of game script)
add_law_of_the_land_title_succession_law_if_appropriate_effect = {
	save_scope_as = county_title
	if = {
		limit = {
			#tier = tier_county # Commented out for performance reasons, comment back in if this effect is used outside of on_title_gained
			NOT = { has_title_law = law_of_the_land_succession_law }
			is_noble_family_title = no
			title_province.holding_type ?= {
				has_required_heir_governments = yes
				NOT = {
					any_required_heir_government_type = {
						this = scope:county_title.holder.government_type
					}
				}
			}
		}
		holder = {
			send_interface_toast = {
				title = succession_law_changed
				left_icon = scope:county_title

				scope:county_title = { add_title_law = law_of_the_land_succession_law }
			}
		}
	}
}

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

Where it is used

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

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

  • on_title_gain

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