Scripted effect · The Royal Court files
select_random_saint_effect
select_random_saint_effect = yesgame/common/scripted_effects/00_ep1_artifact_creation_effects.txt, line 15659 (173 lines). No parameters.
select_random_saint_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 15659 of its file. It takes no parameters: select_random_saint_effect = yes. The game's script calls it in 1 place, among them get_artifact_feature_references_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
What it does
- 1 of 11 things will happen:
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
- 9%: Nothing else happens
• 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)
select_random_saint_effect = {
save_scope_as = owner
random_list = {
1 = {
trigger = {
OR = {
faith = faith:catholic
faith = faith:orthodox
faith = faith:nestorian
}
}
set_variable = {
name = saint
value = flag:brigid
days = 5
}
}
1 = {
trigger = {
OR = {
faith = faith:catholic
faith = faith:orthodox
faith = faith:nestorian
}
}
set_variable = {
name = saint
value = flag:matthew
days = 5
}
}
1 = {
trigger = {
OR = {
faith = faith:catholic
faith = faith:orthodox
faith = faith:nestorian
}
}
set_variable = {
name = saint
value = flag:joseph
days = 5
}
}
1 = {
trigger = {
OR = {
faith = faith:catholic
faith = faith:orthodox
faith = faith:nestorian
}
}
set_variable = {
name = saint
value = flag:catherine
days = 5
}
}
1 = {
trigger = {
OR = {
faith = faith:catholic
faith = faith:orthodox
faith = faith:nestorian
}
}
set_variable = {
name = saint
value = flag:george
days = 5
}
}
1 = {
trigger = {
OR = {
faith = faith:catholic
faith = faith:orthodox
faith = faith:nestorian
}
}
set_variable = {
name = saint
value = flag:nicholas
days = 5
}
}
1 = {
trigger = {
OR = {
faith = faith:miaphysitism
faith = faith:armenian_apostolic
}
}
set_variable = {
name = saint
value = flag:marina
days = 5
}
}
1 = {
trigger = {
OR = {
faith = faith:miaphysitism
faith = faith:armenian_apostolic
}
}
set_variable = {
name = saint
value = flag:matthew
days = 5
}
}As written in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt.
The first 120 of its 173 lines; the rest is in game/common/scripted_effects/00_ep1_artifact_creation_effects.txt from line 15659.
Where it is used
Every place in common/, events/ and history/ that calls select_random_saint_effect.
Scripted effects (1)
Source: game/common/scripted_effects/00_ep1_artifact_creation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.