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

Scripted trigger

guest_allowed_to_leave_trigger

guest_allowed_to_leave_trigger = yes

game/common/scripted_triggers/00_courtier_guest_management_triggers.txt, line 258 (35 lines). No parameters.

guest_allowed_to_leave_trigger is a scripted trigger in Crusader Kings III, written at line 258 of its file. It takes no parameters: guest_allowed_to_leave_trigger = yes (or no). The game's script calls it in 2 places, among them courtier_guest_management.0500 (event) and guest_management (courtier guest management). Patch 1.20.1.2, from game/common/scripted_triggers/00_courtier_guest_management_triggers.txt.

What it checks

  • None of these

    • has_character_flag = blocked_from_leaving
    • scope:host › Any courtier › Any targeting scheme › Any scheme agent character:
      • this = scope:guest
    • scope:host › Any targeting scheme › Any scheme agent character:
      • this = scope:guest
    • Any child:
      • Is a child
      • Any parent:
        • this = scope:host
    • is_diarch = yes
    • is_designated_diarch = yes
    • any_child_not_in_traveling_family_trigger = yes
    • any_consort_not_in_traveling_family_trigger = yes
    • exists = inspiration

• 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 (35 lines of game script)
guest_allowed_to_leave_trigger = {
	NOR = {
		# Not blocked by script
		has_character_flag = blocked_from_leaving
		#Agent in a local scheme
		scope:host = {
			any_courtier = {
				any_targeting_scheme = {
					any_scheme_agent_character = {
						this = scope:guest
					}
				}
			}
		}
		scope:host = {
			any_targeting_scheme = {
				any_scheme_agent_character = {
					this = scope:guest
				}
			}
		}
		any_child = { # No child can be a known child of the host
			is_adult = no
			any_parent = { this = scope:host }
		}
		# Diarchs don't leave their court.
		is_diarch = yes
		is_designated_diarch = yes
		#Would be leaving without spouse or underage child
		any_child_not_in_traveling_family_trigger = yes
		any_consort_not_in_traveling_family_trigger = yes
		#Is waiting for inspiration funding
		exists = inspiration
	}
}

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

Where it is used

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

Courtier guest management (1)

  • guest_management

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