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

Scripted trigger

valid_laamp_basic_trigger

valid_laamp_basic_trigger = { EMPLOYER = … LAAMP = … }

game/common/scripted_triggers/00_laamp_triggers.txt, line 394 (78 lines). Parameters: $EMPLOYER$, $LAAMP$.

valid_laamp_basic_trigger is a scripted trigger in Crusader Kings III, written at line 394 of its file. A call passes 2 parameters: EMPLOYER and LAAMP. The game's script calls it in 100 places, among them Abduct Foe (scheme), Ambush Travelers (scheme) and Burn Property (scheme). 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.

The comment above it in the file

Can this employer ever offer this contract?
This is basically an is_valid_showing_failures_only, so we deliberately break out into lots of unnecessarily small sections for nicer tooltipping.

What it checks

Every line of it is script with no tooltip text: the script is below.

The script as written (78 lines of game script)
valid_laamp_basic_trigger = {
	custom_description = {
		text = adventurer_not_famous_or_patron_trigger_tt
		object = $EMPLOYER$
		value = $EMPLOYER$.highest_held_title_tier
		OR = {
			$EMPLOYER$.highest_held_title_tier <= tier_county
			AND = {
				$EMPLOYER$.highest_held_title_tier <= tier_duchy
				$EMPLOYER$ = { government_has_flag = government_is_nomadic }
			}
			$EMPLOYER$.highest_held_title_tier <= $LAAMP$.prestige_level
			$EMPLOYER$ = { is_contact_of = $LAAMP$ }
		}
	}
	$EMPLOYER$ = {
		# Players shouldn't get tangled up in contracts, ever.
		is_ai = yes
		# Plus some standard stuff.
		is_alive = yes
		is_adult = yes
		NOT = { government_has_flag = government_is_herder }
	}
	$EMPLOYER$ = { is_incapable = no }
	# Laamps shouldn't offer contracts in their local area, ever.
	$EMPLOYER$ = {
		OR = {
			employer = $LAAMP$
			NOT = { government_has_flag = government_is_landless_adventurer }
		}
	}
	# Don't offer to work with those who've wronged us.
	## No one we're at war with.
	$EMPLOYER$ = {
		NOT = { is_at_war_with = $LAAMP$ }
	}
	## Rivals are cheap to avoid.
	$EMPLOYER$ = {
		NOT = { has_relation_rival = $LAAMP$ }
	}
	## Expulsion
	$EMPLOYER$ = {
		custom_tooltip = {
			text = adventurer_expelled_trigger_tt
			NOR = {
				reverse_has_opinion_modifier = {
					target = $LAAMP$
					modifier = demanded_eviction_opinion
				}
				any_liege_or_above = {
					reverse_has_opinion_modifier = {
						target = $LAAMP$
						modifier = demanded_eviction_opinion
					}
				}
			}
		}
	}
	$LAAMP$ = { government_has_flag = government_is_landless_adventurer }
	$LAAMP$ = {
		trigger_if = {
			limit = { is_at_war = no }
			is_commanding_army = no
		}
	}
	# If we're looking at the player, make sure there's no uhh... weird legacies between us.
	$LAAMP$ = {
		trigger_if = {
			limit = { is_ai = no }
			NOR = {
				has_any_major_negative_opinion_against_character_trigger = { CHARACTER = $EMPLOYER$ }
				$EMPLOYER$ = {
					has_any_major_negative_opinion_against_character_trigger = { CHARACTER = $LAAMP$ }
				}
			}
		}
	}
}

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

Where it is used

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

Character interactions (1)

  • Create Task Contract from Char

Schemes (29)

  • Abduct Foe
  • Ambush Travelers
  • Burn Property
  • Collect Taxes
  • Conduct Census
  • Confidence Trickster
23 more
  • Create Work of Learning
  • Do a Passage of Arms
  • Flog Talismans
  • Heist Treasury
  • Hired Muscle
  • Hobnob with Ruler
  • Hunt Criminals
  • Impersonate Tax Collector
  • Improve Ruler Reputation
  • Improvised Spycraft
  • Mediate on Behalf
  • Mug Wealthy Citizenry
  • Murder Foe
  • Perform in a Play
  • Protect the Innocent
  • Raise Building
  • Regale Court
  • Rescue a Fair Subject
  • Rustle Animals
  • Settle Boundary Dispute
  • Settle Theological Disputes
  • Solicit Charity
  • Transcribe Texts

Task contracts (65)

  • laamp_base_0001
  • laamp_base_0011
  • laamp_base_0021
  • laamp_base_0031
  • laamp_base_0041
  • laamp_base_1001
59 more
  • laamp_base_1011
  • laamp_base_1021
  • laamp_base_1031
  • laamp_base_1041
  • laamp_base_2001
  • laamp_base_2011
  • laamp_base_2021
  • laamp_base_2031
  • laamp_base_2041
  • laamp_base_3001
  • laamp_base_3011
  • laamp_base_3021
  • laamp_base_3031
  • laamp_base_3041
  • laamp_base_4001
  • laamp_base_4011
  • laamp_base_4021
  • laamp_base_4031
  • laamp_base_4041
  • laamp_base_4100
  • laamp_base_5001
  • laamp_base_5011
  • laamp_base_5021
  • laamp_base_5031
  • laamp_base_5041
  • laamp_base_5051
  • laamp_base_6001
  • laamp_base_6011
  • laamp_base_6021
  • laamp_base_6031
  • laamp_boost_legitimacy_contract
  • laamp_construction_contract
  • laamp_cultural_minority_contract
  • laamp_eliminate_heir_contract
  • laamp_fight_faith_conversion_contract
  • laamp_find_secret_contract
  • laamp_gain_wanderer_contract
  • laamp_help_claimant_contract
  • laamp_help_fabricate_claim_contract
  • laamp_help_faith_conversion_contract
  • laamp_help_find_secrets_contract
  • laamp_help_increase_control_contract
  • laamp_help_train_commanders_contract
  • laamp_join_faction_contract
  • laamp_join_war_contract
  • laamp_prison_break_contract
  • laamp_raid_contract
  • laamp_religious_minority_contract
  • laamp_rid_councillor_contract
  • laamp_steal_artifact_contract
  • laamp_transport_animal
  • laamp_transport_artifact
  • laamp_transport_explorer
  • laamp_transport_gold
  • laamp_transport_vip
  • laamp_transport_ward
  • laamp_treasure_hunting_contract
  • Legitimist Support
  • Treasure Map

Events (2)

Scripted effects inside an event file (1)

  • 1025_option_picked_spawn_contract_effect

Scripted triggers inside an event file (1)

  • 1025_region_has_suitable_employer_trigger

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?