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

Scripted effect · Roads to Power files

distribute_charioteer_trait_xp_effect

distribute_charioteer_trait_xp_effect = { VALUE = … }

game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 6924 (97 lines). Parameters: $VALUE$.

distribute_charioteer_trait_xp_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 6924 of its file. A call passes 1 parameter: VALUE. The game's script calls it in 4 places, among them A Prize for the Winner (event chariot_race.0400), Showing Off (event chariot_race_ongoing_jp.0500) and chariot_race_on_action (on action). Patch 1.20.1.2, from game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

What it does

• 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 (97 lines of game script)
distribute_charioteer_trait_xp_effect = {
	switch = {
		trigger = has_trait
		charioteer_blue = {
			if = {
				limit = { has_court_position = charioteer_court_position }
				employer = {
					send_interface_toast = {
						title = charioteer_trait_xp_gain_message
						left_icon = prev
						prev = {
							add_trait_xp = {
								trait = charioteer_blue
								value = $VALUE$
							}
						}
					}
				}
			}
			else = {
				add_trait_xp = {
					trait = charioteer_blue
					value = $VALUE$
				}
			}
		}
		charioteer_green = {
			if = {
				limit = { has_court_position = charioteer_court_position }
				employer = {
					send_interface_toast = {
						title = charioteer_trait_xp_gain_message
						left_icon = prev
						prev = {
							add_trait_xp = {
								trait = charioteer_green
								value = $VALUE$
							}
						}
					}
				}
			}
			else = {
				add_trait_xp = {
					trait = charioteer_green
					value = $VALUE$
				}
			}
		}
		charioteer_white = {
			if = {
				limit = { has_court_position = charioteer_court_position }
				employer = {
					send_interface_toast = {
						title = charioteer_trait_xp_gain_message
						left_icon = prev
						prev = {
							add_trait_xp = {
								trait = charioteer_white
								value = $VALUE$
							}
						}
					}
				}
			}
			else = {
				add_trait_xp = {
					trait = charioteer_white
					value = $VALUE$
				}
			}
		}
		charioteer_red = {
			if = {
				limit = { has_court_position = charioteer_court_position }
				employer = {
					send_interface_toast = {
						title = charioteer_trait_xp_gain_message
						left_icon = prev
						prev = {
							add_trait_xp = {
								trait = charioteer_red
								value = $VALUE$
							}
						}
					}
				}
			}
			else = {
				add_trait_xp = {
					trait = charioteer_red
					value = $VALUE$
				}
			}
		}
	}
}

As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.

Where it is used

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

Events (2)

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

  • chariot_race_on_action

Source: game/common/scripted_effects/07_dlc_ep3_scripted_effects.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?