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

Scripted trigger · All Under Heaven files

japan_house_name_county_trigger

japan_house_name_county_trigger = { FLAG = … TITLE = … }

game/common/scripted_triggers/10_tgp_japan_triggers.txt, line 302 (38 lines). Parameters: $FLAG$, $TITLE$.

japan_house_name_county_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 302 of its file. A call passes 2 parameters: FLAG and TITLE. The game's script calls it in 1 place, among them assign_japanese_house_name_options_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/10_tgp_japan_triggers.txt.

What it checks

  • If

    • One of these

      • $TITLE$.holder ?= scope:new_head_temp
      • or

        scope:new_head_temp.domicile.domicile_location.county ?= $TITLE$

    Then

    • always = yes

    Else if

    a check the game hides

    Then

    • One of these

      • $TITLE$.holder ?= scope:old_head
      • or

        scope:old_head.domicile.domicile_location.county ?= $TITLE$

    Else if

    a check the game hides

    Then

    • One of these

      • $TITLE$.holder ?= scope:new_head_temp.house.house_head
      • or

        scope:new_head_temp.house.house_head.domicile.domicile_location.county ?= $TITLE$

    Else if

    a check the game hides

    Then

    • One of these

      • $TITLE$.holder ?= scope:old_head.house.house_head
      • or

        scope:old_head.house.house_head.domicile.domicile_location.county ?= $TITLE$

    Otherwise

    • always = yes
  • NOT = { is_target_in_variable_list = { name = japanese_house_names target = $FLAG$ } }

• 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 (38 lines of game script)
japan_house_name_county_trigger = {
	exists = $TITLE$
	save_temporary_scope_as = new_head_temp
	trigger_if = {
		limit = {
			OR = {
				$TITLE$.holder ?= scope:new_head_temp
				scope:new_head_temp.domicile.domicile_location.county ?= $TITLE$
			}
		}
		always = yes
	}
	trigger_else_if = {
		limit = { exists = scope:old_head }
		OR = {
			$TITLE$.holder ?= scope:old_head
			scope:old_head.domicile.domicile_location.county ?= $TITLE$
		}
	}
	trigger_else_if = {
		limit = { exists = scope:new_head_temp.house.house_head }
		OR = {
			$TITLE$.holder ?= scope:new_head_temp.house.house_head
			scope:new_head_temp.house.house_head.domicile.domicile_location.county ?= $TITLE$
		}
	}
	trigger_else_if = {
		limit = { exists = scope:old_head.house.house_head }
		OR = {
			$TITLE$.holder ?= scope:old_head.house.house_head
			scope:old_head.house.house_head.domicile.domicile_location.county ?= $TITLE$
		}
	}
	trigger_else = { always = yes }
	NOT = {
		is_target_in_variable_list = { name = japanese_house_names target = $FLAG$ }
	}
}

As written in game/common/scripted_triggers/10_tgp_japan_triggers.txt.

Where it is used

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

Source: game/common/scripted_triggers/10_tgp_japan_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?