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

Scripted trigger

ep3_adventurer_sponsorship_valid_trigger

ep3_adventurer_sponsorship_valid_trigger = yes

game/common/scripted_triggers/00_laamp_triggers.txt, line 363 (25 lines). No parameters.

ep3_adventurer_sponsorship_valid_trigger is a scripted trigger in Crusader Kings III, written at line 363 of its file. It takes no parameters: ep3_adventurer_sponsorship_valid_trigger = yes (or no). The game's script calls it in 5 places, among them Adventurer Invasion (casus belli), Adventurer Invasion (casus belli) and Adventurer Invasion (casus belli). Patch 1.20.1.2, from game/common/scripted_triggers/00_laamp_triggers.txt.

What it checks

  • scope:attacker.var:adventurer_invasion_supporter:
    • Adventurer invasion target is scope:defender
    • None of these

      • this = scope:defender
      • top_liege = scope:defender.top_liege
      • is_allied_to = scope:defender
      • is_spouse_of = scope:defender
      • All of these

        • is_close_family_of = scope:defender
        • Opinion of defender at least -25
      • has_relation_friend = scope:defender
      • has_relation_lover = scope:defender
      • Any character war:
        • primary_attacker = scope:attacker.var:adventurer_invasion_supporter
        • primary_defender = scope:defender
    • in_diplomatic_range = scope:defender

• 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 (25 lines of game script)
ep3_adventurer_sponsorship_valid_trigger = {
	scope:attacker.var:adventurer_invasion_supporter ?= {
		var:adventurer_invasion_target ?= scope:defender
		NOR = {
			this = scope:defender
			top_liege = scope:defender.top_liege
			is_allied_to = scope:defender
			is_spouse_of = scope:defender
			AND = {
				is_close_family_of = scope:defender
				opinion = {
					target = scope:defender
					value >= -25
				}
			}
			has_relation_friend = scope:defender
			has_relation_lover = scope:defender
			any_character_war = {
				primary_attacker = scope:attacker.var:adventurer_invasion_supporter
				primary_defender = scope:defender
			}
		}
		in_diplomatic_range = scope:defender
	}
}

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

Where it is used

Every place in common/, events/ and history/ that calls ep3_adventurer_sponsorship_valid_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?