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

chariot_race_remove_variables_effect

chariot_race_remove_variables_effect = yes

game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 6547 (50 lines). No parameters.

chariot_race_remove_variables_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 6547 of its file. It takes no parameters: chariot_race_remove_variables_effect = yes. The game's script calls it in 1 place, among them Chariot Race (activity). 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 (50 lines of game script)
chariot_race_remove_variables_effect = {
	scope:activity = {
		# Clean up variables we used for calculations on both Charioteers and Spectators
		every_guest_subset = {
			name = charioteers
			remove_variable = odds_win_a
			remove_variable = odds_win_b
			remove_variable = odds_place_a
			remove_variable = odds_place_b
			remove_variable = odds_show_a
			remove_variable = odds_show_b
			remove_variable = percent_chance_to_win
			remove_variable = percent_chance_to_place
			remove_variable = percent_chance_to_show
			remove_variable = win_payout
			remove_variable = place_payout
			remove_variable = show_payout
			remove_variable = current_place_in_race
		}
		every_guest_subset = {
			name = spectators
			remove_variable = wager_team
			remove_variable = wager_type
			remove_variable = wager_target
			remove_variable = wager_value
			if = {
				limit = { has_character_flag = successful_bet }
				remove_character_flag = successful_bet
			}
		}
		# Really for error suppression only since variables saved on activities are destroyed when the activity is over
		switch = {
			trigger = has_variable
			blue_percent_chance_to_win = { remove_variable = blue_percent_chance_to_win }
			blue_percent_chance_to_show = { remove_variable = blue_percent_chance_to_show }
			blue_percent_chance_to_place = { remove_variable = blue_percent_chance_to_place }
			green_percent_chance_to_win = { remove_variable = green_percent_chance_to_win }
			green_percent_chance_to_place = { remove_variable = green_percent_chance_to_place }
			green_percent_chance_to_show = { remove_variable = green_percent_chance_to_show }
			white_percent_chance_to_place = { remove_variable = white_percent_chance_to_place }
			white_percent_chance_to_win = { remove_variable = white_percent_chance_to_win }
			white_percent_chance_to_show = { remove_variable = white_percent_chance_to_show }
			red_percent_chance_to_win = { remove_variable = red_percent_chance_to_win }
			red_percent_chance_to_place = { remove_variable = red_percent_chance_to_place }
			red_percent_chance_to_show = { remove_variable = red_percent_chance_to_show }
			dead_charioteers = { remove_variable = dead_charioteers }
		}
		clear_placement_variables_effect = yes
	}
}

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 chariot_race_remove_variables_effect.

Activities (1)

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?