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

Scripted trigger

same_location_and_court_status_as

same_location_and_court_status_as = { CHARACTER = … }

game/common/scripted_triggers/00_courtier_guest_management_triggers.txt, line 27 (17 lines). Parameters: $CHARACTER$.

same_location_and_court_status_as is a scripted trigger in Crusader Kings III, written at line 27 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 2 places, among them any_child_not_in_traveling_family_trigger (scripted trigger) and any_consort_not_in_traveling_family_trigger (scripted trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_courtier_guest_management_triggers.txt.

The comment above it in the file

GUEST/COURTIER LEAVING/ARRIVING TRIGGERS###

What it checks

  • location = $CHARACTER$.location
  • One of these

    • is_in_the_same_court_as = $CHARACTER$
    • or

      If

      • $CHARACTER$ = { is_pool_guest = yes }

      Then

      • is_pool_guest = yes
    • or

      If

      • $CHARACTER$ = { is_pool_character = yes }

      Then

      • is_pool_character = yes

• 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 (17 lines of game script)
same_location_and_court_status_as = { # Same location and both are in court / are guests / are pool characters
	exists = location
	exists = $CHARACTER$.location
	location = $CHARACTER$.location
	OR = {
		is_in_the_same_court_as = $CHARACTER$
		trigger_if = {
			limit = { $CHARACTER$ = { is_pool_guest = yes } }
			is_pool_guest = yes
		}
		trigger_if = {
			limit = { $CHARACTER$ = { is_pool_character = yes } }
			is_pool_character = yes
		}
	}

}

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 same_location_and_court_status_as.

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?