Scripted effect · Roads to Power files
calculate_chariot_payout_effect
calculate_chariot_payout_effect = yesgame/common/scripted_effects/07_dlc_ep3_scripted_effects.txt, line 5132 (236 lines). No parameters.
calculate_chariot_payout_effect is a scripted effect in Crusader Kings III, in the Roads to Power files, written at line 5132 of its file. It takes no parameters: calculate_chariot_payout_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
- scope:activity › Every guest subset:
name = charioteers
• 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 (120 lines of game script)
calculate_chariot_payout_effect = {
scope:activity = {
every_guest_subset = {
name = charioteers
set_variable = {
name = win_payout
value = {
add = var:odds_win_b
subtract = {
value = var:odds_win_b
multiply = 0.3
}
save_temporary_value_as = temp_val
subtract = {
value = scope:temp_val
multiply = bookkeeper_small_commission_value
round = yes
}
divide = var:odds_win_a
add = 1
min = 1.1
}
}
set_variable = {
name = place_payout
value = {
add = var:odds_place_b
subtract = {
value = var:odds_place_b
multiply = 0.3
}
save_temporary_value_as = temp_val
subtract = {
value = scope:temp_val
multiply = bookkeeper_medium_commission_value
round = yes
}
divide = var:odds_place_a
add = 1
min = 1.1
}
}
set_variable = {
name = show_payout
value = {
add = var:odds_show_b
subtract = {
value = var:odds_show_b
multiply = 0.3
}
save_temporary_value_as = temp_val
subtract = {
value = scope:temp_val
multiply = bookkeeper_large_commission_value
round = yes
}
divide = var:odds_show_a
add = 1
min = 1.1
}
}
}
set_variable = {
name = blue_win_payout
value = {
add = var:blue_odds_win_b
subtract = {
value = var:blue_odds_win_b
multiply = bookkeeper_small_commission_value
round = yes
}
divide = var:blue_odds_win_a
add = 1
min = 1.1
}
}
set_variable = {
name = blue_place_payout
value = {
add = var:blue_odds_place_b
subtract = {
value = var:blue_odds_place_b
multiply = bookkeeper_medium_commission_value
round = yes
}
divide = var:blue_odds_place_a
add = 1
min = 1.1
}
}
set_variable = {
name = blue_show_payout
value = {
add = var:blue_odds_show_b
subtract = {
value = var:blue_odds_show_b
multiply = bookkeeper_large_commission_value
round = yes
}
divide = var:blue_odds_show_a
add = 1
min = 1.1
}
}
set_variable = {
name = green_win_payout
value = {
add = var:green_odds_win_b
subtract = {
value = var:green_odds_win_b
multiply = bookkeeper_small_commission_value
round = yes
}
divide = var:green_odds_win_a
add = 1
min = 1.1
}
}
set_variable = {As written in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt.
The first 120 of its 236 lines; the rest is in game/common/scripted_effects/07_dlc_ep3_scripted_effects.txt from line 5132.
Where it is used
Every place in common/, events/ and history/ that calls calculate_chariot_payout_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.