CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · Wards and Wardens files

assign_rock_color_effect

assign_rock_color_effect = { COLOR = … }

game/common/scripted_effects/03_bp2_scripted_effects.txt, line 1791 (58 lines). Parameters: $COLOR$.

assign_rock_color_effect is a scripted effect in Crusader Kings III, in the Wards and Wardens files, written at line 1791 of its file. A call passes 1 parameter: COLOR. The game's script calls it in 1 place, among them Pet Rock (story cycle). Patch 1.20.1.2, from game/common/scripted_effects/03_bp2_scripted_effects.txt.

The comment above it in the file

Assign the colour of your rock

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (58 lines of game script)
assign_rock_color_effect = {
	save_temporary_scope_value_as = {
		name = rock_color
		value = flag:$COLOR$
	}
	if = {
		limit = { scope:rock_color = flag:random }
		hidden_effect = {
			random_list = {
				50 = {
					set_variable = {
						name = rock_color
						value = flag:brown
					}
				}
				50 = {
					set_variable = {
						name = rock_color
						value = flag:gray
					}
				}
				50 = {
					set_variable = {
						name = rock_color
						value = flag:black
					}
				}
				50 = {
					set_variable = {
						name = rock_color
						value = flag:white
					}
				}
				50 = {
					set_variable = {
						name = rock_color
						value = flag:sandy
					}
				}
			}
		}
	}
	else_if = {
		limit = {
			OR = {
				scope:rock_color = flag:brown
				scope:rock_color = flag:gray
				scope:rock_color = flag:black
				scope:rock_color = flag:white
				scope:rock_color = flag:sandy
			}
		}
		set_variable = {
			name = rock_color
			value = flag:$COLOR$
		}
	}
}

As written in game/common/scripted_effects/03_bp2_scripted_effects.txt.

Where it is used

Every place in common/, events/ and history/ that calls assign_rock_color_effect.

Story cycles (1)

  • Pet Rock

Source: game/common/scripted_effects/03_bp2_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?