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

less_than_max_amount_of_mandala_capitals_trigger

less_than_max_amount_of_mandala_capitals_trigger = yes

game/common/scripted_triggers/tgp_mandala_triggers.txt, line 230 (32 lines). No parameters.

less_than_max_amount_of_mandala_capitals_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 230 of its file. It takes no parameters: less_than_max_amount_of_mandala_capitals_trigger = yes (or no). The game's script calls it in 13 places, among them mandala_capital_01 (great project), mandala_capital_02 (great project) and mandala_capital_03 (great project). Patch 1.20.1.2, from game/common/scripted_triggers/tgp_mandala_triggers.txt.

The comment above it in the file

Only 2 Mandala Capitals per De Jure Kingdom

What it checks

  • Their capital county’s kingdom › In de jure hierarchy (less than 2):
    • Title tier exactly Barony
    • Their province:
      • NOT = { this.county = scope:root_scope.capital_county }
      • One of these

        • All of these

        • or

          Any great project in province:
          • One of these

            • great_project_type = mandala_capital_01
            • or

              great_project_type = mandala_capital_02
            • or

              great_project_type = mandala_capital_03
            • or

              great_project_type = mandala_capital_04
            • or

              great_project_type = mandala_capital_05
          • One of these

            • great_project_construction_phase_is = in_progress
            • or

              great_project_construction_phase_is = completed

• 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 (32 lines of game script)
less_than_max_amount_of_mandala_capitals_trigger = {
	save_temporary_scope_as = root_scope
	capital_county.kingdom = {
		any_in_de_jure_hierarchy = {
			count < mandala_capitals_per_dejure_kingdom
			tier = tier_barony
			title_province = { 
				NOT = { this.county = scope:root_scope.capital_county } #We don't count our own great project since it needs to be upgradeable.
				OR = {
					AND = {
						has_building_with_flag = mandala_capital_building
						has_ruined_great_building = no
						is_ruined_building_being_reconstructed = no
					}
					any_great_project_in_province = {
						OR = {
							great_project_type = mandala_capital_01
							great_project_type = mandala_capital_02
							great_project_type = mandala_capital_03
							great_project_type = mandala_capital_04
							great_project_type = mandala_capital_05
						}
						OR = {
							great_project_construction_phase_is = in_progress
							great_project_construction_phase_is = completed
						}	
					}
				}						
			}
		}
	}
}

As written in game/common/scripted_triggers/tgp_mandala_triggers.txt.

Where it is used

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

Great projects (5)

  • mandala_capital_01
  • mandala_capital_02
  • mandala_capital_03
  • mandala_capital_04
  • mandala_capital_05

Story cycles (1)

  • story_mandala

On actions (the game's own hooks) (1)

  • on_game_start_after_lobby

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