Scripted effect · Tours and Tournaments files
tournament_horse_race_fetch_horse_effect
tournament_horse_race_fetch_horse_effect = yesgame/common/scripted_effects/04_dlc_ep2_tournament_effects.txt, line 4957 (1111 lines). No parameters.
tournament_horse_race_fetch_horse_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 4957 of its file. It takes no parameters: tournament_horse_race_fetch_horse_effect = yes. The game's script calls it in 11 places, among them …: Place Your Bets (event tournament_events.1000), …: Sabotage (event tournament_events.6050) and A Mess of Legs (event jason_first_race_event.1). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.
The comment above it in the file
Fetch a randomized horse name
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
tournament_horse_race_fetch_horse_effect = {
save_temporary_scope_as = horse_owner
if = {
limit = {
OR = {
NOT = { exists = var:contest_horse_race_name }
NOT = { exists = var:contest_horse_race_gender }
}
}
hidden_effect = {
while = {
limit = {
OR = {
NOT = { exists = var:contest_horse_race_name }
# Stop multiple horses with same name
scope:activity = {
any_guest_subset = {
name = contestant
exists = var:contest_horse_race_name
this != scope:horse_owner
var:contest_horse_race_name = scope:horse_owner.var:contest_horse_race_name
}
}
}
}
random_list = {
## FAITH
# BUDDHISM
300 = { # Kanthaka - Siddhartha's
trigger = { religion = religion:buddhism_religion }
set_variable = { name = contest_horse_race_name value = flag:kanthaka }
}
# GODS/SAINTS
150 = {
trigger = {
NOT = {
religion = { is_in_family = rf_abrahamic }
}
}
modifier = {
factor = 2
faith = { has_doctrine = unreformed_faith_doctrine }
}
random_list = {
5 = { set_variable = { name = contest_horse_race_name value = flag:faith_fate_god } }
5 = { set_variable = { name = contest_horse_race_name value = flag:faith_knowledge_god } }
5 = { set_variable = { name = contest_horse_race_name value = flag:faith_night_god } }
5 = { set_variable = { name = contest_horse_race_name value = flag:faith_trickster_god } }
5 = { set_variable = { name = contest_horse_race_name value = flag:faith_war_god } }
5 = { set_variable = { name = contest_horse_race_name value = flag:faith_water_god } }
5 = { set_variable = { name = contest_horse_race_name value = flag:faith_wealth_god } }
}
}
# HINDUISM
300 = {
trigger = { religion = religion:hinduism_religion }
random_list = {
5 = { # Dadhi-krā - Dawn
set_variable = { name = contest_horse_race_name value = flag:dadhi_kra }
set_variable = { name = contest_horse_race_gender value = flag:male }
}
5 = { # Devadatta - Vishnu's
set_variable = { name = contest_horse_race_name value = flag:devadatta }
set_variable = { name = contest_horse_race_gender value = flag:male }
}
5 = { # Dyaus Pita - Sky Father
set_variable = { name = contest_horse_race_name value = flag:dyauspitar }
set_variable = { name = contest_horse_race_gender value = flag:male }
}
5 = { # Keshi - Kalki's
set_variable = { name = contest_horse_race_name value = flag:keshi }
set_variable = { name = contest_horse_race_gender value = flag:male }
}
5 = { # Uhchaihshravas - Horse King
set_variable = { name = contest_horse_race_name value = flag:uchchaihshravas }
set_variable = { name = contest_horse_race_gender value = flag:male }
}
}
}
# ISLAM
300 = {
trigger = { religion = religion:islam_religion }
random_list = {
5 = { # Abbayan - Muhammad's mares
set_variable = { name = contest_horse_race_name value = flag:abbayan }
set_variable = { name = contest_horse_race_gender value = flag:female }
}
5 = { # al-Murtajiz - Muhammad's stallions
set_variable = { name = contest_horse_race_name value = flag:al_murtajiz }
set_variable = { name = contest_horse_race_gender value = flag:male }
}
5 = { # al-Sakb - Muhammad's stallions
set_variable = { name = contest_horse_race_name value = flag:al_sakb }
set_variable = { name = contest_horse_race_gender value = flag:male }
}
5 = { # al-Ya'sub - Muhammad's stallions
set_variable = { name = contest_horse_race_name value = flag:al_yasub }
set_variable = { name = contest_horse_race_gender value = flag:male }
}
5 = { set_variable = { name = contest_horse_race_name value = flag:buraq } } # Buraq - Islam
5 = { # Habdan - Muhammad's mares
set_variable = { name = contest_horse_race_name value = flag:hadban }
set_variable = { name = contest_horse_race_gender value = flag:female }
}
5 = { # Haizum - Gabriel's
set_variable = { name = contest_horse_race_name value = flag:haizum }
set_variable = { name = contest_horse_race_gender value = flag:female }
}
5 = { # Hamdani - Muhammad's mares
set_variable = { name = contest_horse_race_name value = flag:hamdani }
set_variable = { name = contest_horse_race_gender value = flag:female }
}
5 = { # Kuhaylan - Muhammad's mares
set_variable = { name = contest_horse_race_name value = flag:kuhaylan }
set_variable = { name = contest_horse_race_gender value = flag:female }
}
5 = { # Lihaf - Muhammad's stallions
set_variable = { name = contest_horse_race_name value = flag:lihaf }
set_variable = { name = contest_horse_race_gender value = flag:male }
}As written in game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt.
The first 120 of its 1111 lines; the rest is in game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt from line 4957.
Where it is used
Every place in common/, events/ and history/ that calls tournament_horse_race_fetch_horse_effect.
Events (8)
- …: Place Your Bets
tournament_events.1000 - …: Sabotage
tournament_events.6050 - A Mess of Legs
jason_first_race_event.1 - A Turn at Speed
jason_race_events.2 - …: Contest Begins
contest_events.0500 - …: Enthusiastic Encouragement
contest_events.4600
2 more
- …: Tragic Tumble
contest_events.4500 - Horse Race: Contest Winner
contest_events.0505
Source: game/common/scripted_effects/04_dlc_ep2_tournament_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.