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

there_is_any_valid_mandala_contract_spot_with_neighbor_trigger

there_is_any_valid_mandala_contract_spot_with_neighbor_trigger = yes

game/common/scripted_triggers/tgp_mandala_triggers.txt, line 1179 (44 lines). No parameters.

there_is_any_valid_mandala_contract_spot_with_neighbor_trigger is a scripted trigger in Crusader Kings III, in the All Under Heaven files, written at line 1179 of its file. It takes no parameters: there_is_any_valid_mandala_contract_spot_with_neighbor_trigger = yes (or no). The game's script calls it in 1 place, among them on_action_mandala_realm_contract_0012 (on action). Patch 1.20.1.2, from game/common/scripted_triggers/tgp_mandala_triggers.txt.

What it checks

  • One of these

    • Any sub realm county:
      • Any neighboring county:
        • Their holder: Is played by the AI
        • Their province:
          • has_holding = yes
      • Any county province:
        • has_holding = yes
        • Not: Holding is Occupied
        • NOT = { this = scope:mandala_ruler.capital_province }
        • Does not have “requested mandala ritual” (a variable the game's script sets)
        • Does not have “mandala ritual cooldown” (a variable the game's script sets)
    • or

      Any tributary › Any sub realm county:
      • Any neighboring county:
        • Their holder: Is played by the AI
        • Their province:
          • has_holding = yes
      • Any county province:
        • has_holding = yes
        • Not: Holding is Occupied
        • NOT = { this = scope:mandala_ruler.capital_province }
        • Does not have “requested mandala ritual” (a variable the game's script sets)
        • Does not have “mandala ritual cooldown” (a variable the game's script sets)

• 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 (44 lines of game script)
there_is_any_valid_mandala_contract_spot_with_neighbor_trigger = {
	OR = {
		any_sub_realm_county = {
			any_neighboring_county = {
				holder = {
					is_ai = yes
				}
				title_province = {
					has_holding = yes
				}
			}
			any_county_province = {
				has_holding = yes
				is_occupied = no
				NOR = {
					this = scope:mandala_ruler.capital_province
					has_variable = requested_mandala_ritual
					has_variable = mandala_ritual_cooldown
				}
			}
		}
		any_tributary = {
			any_sub_realm_county = {
				any_neighboring_county = {
					holder = {
						is_ai = yes
					}
					title_province = {
						has_holding = yes
					}
				}
				any_county_province = {
					has_holding = yes
					is_occupied = no
					NOR = {
						this = scope:mandala_ruler.capital_province
						has_variable = requested_mandala_ritual
						has_variable = mandala_ritual_cooldown
					}
				}
			}
		}
	}
}

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

Where it is used

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

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

  • on_action_mandala_realm_contract_0012

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?