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

Scripted trigger

has_graphical_iran_region_trigger

has_graphical_iran_region_trigger = yes

game/common/scripted_triggers/00_illustration_triggers.txt, line 574 (55 lines). No parameters.

has_graphical_iran_region_trigger is a scripted trigger in Crusader Kings III, written at line 574 of its file. It takes no parameters: has_graphical_iran_region_trigger = yes (or no). No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_triggers/00_illustration_triggers.txt.

The comment above it in the file

Has graphical region Iran trigger

What it checks

  • If a check the game hides passes: the same again (3 lines)
    • Their capital province:
      • One of these

        • Is in the Persia region
        • or

          Is in the Tarim Basin region
        • or

          Is in the Central Steppe region

    Else if

    a check the game hides

    Then

    • If a check the game hides passes: the same again (3 lines)
      • Their host’s capital province:
        • One of these

          • Is in the Persia region
          • or

            Is in the Tarim Basin region
          • or

            Is in the Central Steppe region
      Else if a check the game hides passes: the same again (3 lines)
      • Their liege’s capital province:
        • One of these

          • Is in the Persia region
          • or

            Is in the Tarim Basin region
          • or

            Is in the Central Steppe region

      Else if

      a check the game hides

      Then

      • location.province_owner.capital_province = { … }

      Otherwise

      • always = yes

    Otherwise

    • always = 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 (55 lines of game script)
has_graphical_iran_region_trigger = {
	trigger_if = {
		limit = {
			exists = capital_province
		}
		capital_province = {
			OR = {
				geographical_region = world_middle_east_persia
				geographical_region = world_steppe_tarim
				geographical_region = world_steppe_central
			}
		}
	}
	trigger_else_if = {
		limit = {
			NOT = { exists = capital_province }
		}
		trigger_if = {
			limit = { exists = host.capital_province }
			host.capital_province = {
				OR = {
					geographical_region = world_middle_east_persia
					geographical_region = world_steppe_tarim
					geographical_region = world_steppe_central
				}
			}
		}
		trigger_else_if = {
			limit = {
				exists = liege.capital_province
			}
			liege.capital_province = {
				OR = {
					geographical_region = world_middle_east_persia
					geographical_region = world_steppe_tarim
					geographical_region = world_steppe_central
				}
			}
		}
		trigger_else_if = {
			limit = {
				exists = location.province_owner.capital_province
			}
			location.province_owner.capital_province = {
				OR = {
					geographical_region = world_middle_east_persia
					geographical_region = world_steppe_tarim
					geographical_region = world_steppe_central
				}
			}
		}
		trigger_else = { always = yes }
	}
	trigger_else = { always = yes }
}

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

Where it is used

No file of common/, events/ or history/ calls it.

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