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

cares_about_charioteer_trigger

cares_about_charioteer_trigger = { CHARIOTEER = … }

game/common/scripted_triggers/07_ep3_triggers.txt, line 399 (42 lines). Parameters: $CHARIOTEER$.

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

What it checks

  • One of these

    • $CHARIOTEER$ = { … }
    • or

      is_close_family_of = $CHARIOTEER$
    • or

      If has “wager target” (a variable the game's script sets):
      • One of these

        • Wager target is $CHARIOTEER$
        • or

          If wager target is root:
          • If

            • $CHARIOTEER$ = { has_trait = charioteer_blue }

            Then

            • Wager team is blues
          • If

            • $CHARIOTEER$ = { has_trait = charioteer_green }

            Then

            • Wager team is greens
          • If

            • $CHARIOTEER$ = { has_trait = charioteer_white }

            Then

            • Wager team is whites
          • If

            • $CHARIOTEER$ = { has_trait = charioteer_red }

            Then

            • Wager team is reds
        • or

          Otherwise: Never
    • or

      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 (42 lines of game script)
cares_about_charioteer_trigger = {
	OR = {
		$CHARIOTEER$ = {
			trigger_if = {
				limit = { has_court_position = charioteer_court_position }
				is_court_position_employer = {
					court_position = charioteer_court_position
					who = prev
				}
			}
			trigger_else = { always = no }
		}
		is_close_family_of = $CHARIOTEER$
		trigger_if = {
			limit = { has_variable = wager_target }
			OR = {
				var:wager_target = $CHARIOTEER$
				trigger_if = {
					limit = { var:wager_target = root }
					trigger_if = {
						limit = { $CHARIOTEER$ = { has_trait = charioteer_blue } }
						var:wager_team = flag:blues
					}
					trigger_if = {
						limit = { $CHARIOTEER$ = { has_trait = charioteer_green } }
						var:wager_team = flag:greens
					}
					trigger_if = {
						limit = { $CHARIOTEER$ = { has_trait = charioteer_white } }
						var:wager_team = flag:whites
					}
					trigger_if = {
						limit = { $CHARIOTEER$ = { has_trait = charioteer_red } }
						var:wager_team = flag:reds
					}
				}
				trigger_else = { always = no }
			}
		}
		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 cares_about_charioteer_trigger.

Events (2)

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?