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

Scripted trigger · Roads to Power files

supports_chariot_team_trigger

supports_chariot_team_trigger = { TEAM = … }

game/common/scripted_triggers/07_ep3_triggers.txt, line 442 (57 lines). Parameters: $TEAM$.

supports_chariot_team_trigger is a scripted trigger in Crusader Kings III, in the Roads to Power files, written at line 442 of its file. A call passes 1 parameter: TEAM. The game's script calls it in 1 place, among them An Unlikely Triumph (event chariot_race.3050). Patch 1.20.1.2, from game/common/scripted_triggers/07_ep3_triggers.txt.

What it checks

  • If

    • $TEAM$ = flag:blues

    Then

    • One of these

      • All of these

        • Has “wager team” (a variable the game's script sets)
        • Wager team is blues
      • or

        All of these

        • Employs a Champion Charioteer
        • court_position:charioteer_court_position = { has_trait = charioteer_blue }

    Else if

    • $TEAM$ = flag:greens

    Then

    • One of these

      • All of these

        • Has “wager team” (a variable the game's script sets)
        • Wager team is greens
      • or

        All of these

        • Employs a Champion Charioteer
        • court_position:charioteer_court_position = { has_trait = charioteer_green }

    Else if

    • $TEAM$ = flag:whites

    Then

    • One of these

      • All of these

        • Has “wager team” (a variable the game's script sets)
        • Wager team is whites
      • or

        All of these

        • Employs a Champion Charioteer
        • court_position:charioteer_court_position = { has_trait = charioteer_white }

    Else if

    • $TEAM$ = flag:reds

    Then

    • One of these

      • All of these

        • Has “wager team” (a variable the game's script sets)
        • Wager team is reds
      • or

        All of these

        • Employs a Champion Charioteer
        • court_position:charioteer_court_position = { has_trait = charioteer_red }

    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 (57 lines of game script)
supports_chariot_team_trigger = {
	trigger_if = {
		limit = { $TEAM$ = flag:blues }
		OR = {
			AND = {
				has_variable = wager_team
				var:wager_team = flag:blues
			}
			AND = {
				employs_court_position = charioteer_court_position
				court_position:charioteer_court_position = { has_trait = charioteer_blue }
			}
		}
	}
	trigger_else_if = {
		limit = { $TEAM$ = flag:greens }
		OR = {
			AND = {
				has_variable = wager_team
				var:wager_team = flag:greens
			}
			AND = {
				employs_court_position = charioteer_court_position
				court_position:charioteer_court_position = { has_trait = charioteer_green }
			}
		}
	}
	trigger_else_if = {
		limit = { $TEAM$ = flag:whites }
		OR = {
			AND = {
				has_variable = wager_team
				var:wager_team = flag:whites
			}
			AND = {
				employs_court_position = charioteer_court_position
				court_position:charioteer_court_position = { has_trait = charioteer_white }
			}
		}
	}
	trigger_else_if = {
		limit = { $TEAM$ = flag:reds }
		OR = {
			AND = {
				has_variable = wager_team
				var:wager_team = flag:reds
			}
			AND = {
				employs_court_position = charioteer_court_position
				court_position:charioteer_court_position = { has_trait = charioteer_red }
			}
		}
	}
	trigger_else = {
		always = no
	}
}

As written in game/common/scripted_triggers/07_ep3_triggers.txt.

Where it is used

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

Events (1)

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