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

Scripted trigger

does_religion_exist_in_world_region_trigger

does_religion_exist_in_world_region_trigger = { RELIGION = … }

game/common/scripted_triggers/00_religious_triggers.txt, line 1646 (66 lines). Parameters: $RELIGION$.

does_religion_exist_in_world_region_trigger is a scripted trigger in Crusader Kings III, written at line 1646 of its file. A call passes 1 parameter: RELIGION. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_triggers/00_religious_triggers.txt.

What it checks

  • If

    • Their location: Is in the Europe region

    Then

    • Any county in region:
      • region = world_europe
      • faith.religion = $RELIGION$

    Else if

    • Their location: Is in the Asia Minor region

    Then

    • Any county in region:
      • region = world_asia_minor
      • faith.religion = $RELIGION$

    Else if

    • Their location: Is in the Middle East region

    Then

    • Any county in region:
      • region = world_middle_east
      • faith.religion = $RELIGION$

    Else if

    • Their location: Is in the India region

    Then

    • Any county in region:
      • region = world_india
      • faith.religion = $RELIGION$

    Else if

    • Their location: Is in the Africa region

    Then

    • Any county in region:
      • region = world_africa
      • faith.religion = $RELIGION$

    Else if

    • Their location: Is in the Steppe region

    Then

    • Any county in region:
      • region = world_steppe
      • faith.religion = $RELIGION$

    Else if

    • Their location: Is in the East Asia region

    Then

    • Any county in region:
      • region = world_asia
      • faith.religion = $RELIGION$

    Else if

    • Their location: Is in the Southeast Asia region

    Then

    • Any county in region:
      • region = world_asia_southeast
      • faith.religion = $RELIGION$

    Else if

    • Their location: Is in the Tibet region

    Then

    • Any county in region:
      • region = world_tibet
      • faith.religion = $RELIGION$

    Otherwise

    • Never

• 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 (66 lines of game script)
does_religion_exist_in_world_region_trigger = { # The most efficient way I could think of to essentially do diplomatic range triggers on religions
	trigger_if = {
		limit = { location = { geographical_region = world_europe } } # Even though europe has many sub regions, it's overall size is small so no need to sub-divide!
		any_county_in_region = {
			region = world_europe
			faith.religion = $RELIGION$
		}
	}
	trigger_else_if = {
		limit = { location = { geographical_region = world_asia_minor } } # Maybe this should be grouped with both the one above and the one below...
		any_county_in_region = {
			region = world_asia_minor
			faith.religion = $RELIGION$
		}
	}
	trigger_else_if = {
		limit = { location = { geographical_region = world_middle_east } }
		any_county_in_region = {
			region = world_middle_east
			faith.religion = $RELIGION$
		}
	}
	trigger_else_if = {
		limit = { location = { geographical_region = world_india } }
		any_county_in_region = {
			region = world_india
			faith.religion = $RELIGION$
		}
	}
	trigger_else_if = {
		limit = { location = { geographical_region = world_africa } }
		any_county_in_region = {
			region = world_africa
			faith.religion = $RELIGION$
		}
	}
	trigger_else_if = {
		limit = { location = { geographical_region = world_steppe } }
		any_county_in_region = {
			region = world_steppe
			faith.religion = $RELIGION$
		}
	}
	trigger_else_if = {
		limit = { location = { geographical_region = world_asia } }
		any_county_in_region = {
			region = world_asia
			faith.religion = $RELIGION$
		}
	}
	trigger_else_if = {
		limit = { location = { geographical_region = world_asia_southeast } }
		any_county_in_region = {
			region = world_asia_southeast
			faith.religion = $RELIGION$
		}
	}
	trigger_else_if = {
		limit = { location = { geographical_region = world_tibet } }
		any_county_in_region = {
			region = world_tibet
			faith.religion = $RELIGION$
		}
	}
	trigger_else = { always = no } # This should always go at the end of this scripted trigger
}

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

Where it is used

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

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