Scripted effect
assign_cat_eye_color_effect
assign_cat_eye_color_effect = { COLOR = … }game/common/scripted_effects/00_animal_effects.txt, line 252 (65 lines). Parameters: $COLOR$.
assign_cat_eye_color_effect is a scripted effect in Crusader Kings III, written at line 252 of its file. A call passes 1 parameter: COLOR. The game's script calls it in 4 places, among them Pet Cat (story cycle), A Small Bundle of Joy (event trait_specific_ongoing.1004) and Proof Of Devotion (event court_ongoing.1032). Patch 1.20.1.2, from game/common/scripted_effects/00_animal_effects.txt.
The comment above it in the file
Assign the eye-color of the cat
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (65 lines of game script)
assign_cat_eye_color_effect = {
save_temporary_scope_value_as = {
name = eye_color
value = flag:$COLOR$
}
if = {
limit = { scope:eye_color = flag:random }
hidden_effect = {
random_list = {
50 = {
set_variable = {
name = cat_eye_color
value = flag:blue
}
}
50 = {
set_variable = {
name = cat_eye_color
value = flag:yellow
}
}
50 = {
set_variable = {
name = cat_eye_color
value = flag:green
}
}
50 = {
set_variable = {
name = cat_eye_color
value = flag:amber
}
}
50 = {
set_variable = {
name = cat_eye_color
value = flag:copper
}
}
50 = {
set_variable = {
name = cat_eye_color
value = flag:emerald
}
}
}
}
}
else_if = {
limit = {
OR = {
scope:eye_color = flag:blue
scope:eye_color = flag:yellow
scope:eye_color = flag:green
scope:eye_color = flag:amber
scope:eye_color = flag:copper
scope:eye_color = flag:emerald
}
}
set_variable = {
name = cat_eye_color
value = flag:$COLOR$
}
}
}As written in game/common/scripted_effects/00_animal_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls assign_cat_eye_color_effect.
Story cycles (1)
- Pet Cat
Events (2)
- A Small Bundle of Joy
trait_specific_ongoing.1004 - Proof Of Devotion
court_ongoing.1032
History files (the start of the game) (1)
- easteregg_anon_saltfish (characters)
Source: game/common/scripted_effects/00_animal_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.