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

Scripted trigger

is_valid_for_laampdom

is_valid_for_laampdom = yes

game/common/scripted_triggers/00_laamp_triggers.txt, line 157 (68 lines). No parameters.

is_valid_for_laampdom is a scripted trigger in Crusader Kings III, written at line 157 of its file. It takes no parameters: is_valid_for_laampdom = yes (or no). The game's script calls it in 12 places, among them Become Adventurer (decision), courtier_guest_management.4001 (event) and ep3_laamps.0002 (event). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_triggers/00_laamp_triggers.txt.

What it checks

• 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 (68 lines of game script)
is_valid_for_laampdom = {
	save_temporary_scope_as = potential_laamp_temp
	trigger_if = {
		limit = {
			NAND = {
				is_ai = no
				government_has_mechanic = administrative
				top_liege = this
				is_landed = no
			}
		}
		custom_tooltip = {
			text = adventurer_not_nf_head_trigger_tt
			NOT = {
				any_held_title = { is_noble_family_title = yes }
			}
		}
		is_landless_ruler = no # Admin gov vassals should not become laamps
	}
	trigger_if = {
		limit = { tgp_realm_has_ceremonial_liege_trigger = yes }
		custom_tooltip = {
			text = tgp_japan_imperial_branch_decision_imperial_heir_trigger
			NOT = {
				top_liege.primary_title.var:administrative_ui_special_title = {
					place_in_line_of_succession = {
						target = scope:potential_laamp_temp
						value <= 4
					}
				}
			}
		}
	}
	trigger_if = {
		limit = { is_ai = yes }
		trigger_if = {
			limit = {
				NOT = { exists = scope:allow_imprisoned_landless }
			}
			is_imprisoned = no # Must be free
		}
		is_adult = yes # Old enough to venture forth
		age < 60 # Young enough to venture forth
		health >= fine_health # Healthy enough to venture forth
		OR = {
			highest_skill_value >= decent_skill_rating
			prowess >= decent_skill_rating
		}
		# Can't be completely unwilling to go outside.
		OR = {
			ai_boldness >= low_negative_ai_value
			ai_energy >= low_negative_ai_value
		}
		NOR = {
			has_trait = content # Too chill to adventure
			has_trait = craven # Too scared to adventure
			has_trait = lazy # Too lazy to adventure
		}
		# Block admin members of noble families
		NOT = {
			house ?= {
				any_house_member = {
					any_held_title = { is_noble_family_title = yes }
				}
			}
		}
	}
}

As written in game/common/scripted_triggers/00_laamp_triggers.txt.

Where it is used

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

Decisions (1)

Scripted effects inside an event file (1)

  • mpo_events_ariana_0050_lose_effect

Scripted triggers inside an event file (1)

  • ep3_laamp_runaway_child_trigger

Scripted rules (1)

  • is_character_allowed_to_be_player

Source: game/common/scripted_triggers/00_laamp_triggers.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?