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

Scripted effect · The Fate of Iberia files

create_artifact_fp2_4p_chess_board_effect

create_artifact_fp2_4p_chess_board_effect = { OWNER = … }

game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt, line 1842 (27 lines). Parameters: $OWNER$.

create_artifact_fp2_4p_chess_board_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 1842 of its file. A call passes 1 parameter: OWNER. The game's script calls it in 1 place, among them A Stroke of Luck (event board_games.0051). Patch 1.20.1.2, from game/common/scripted_effects/03_dlc_fp2_scripted_effects.txt.

What it does

• 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 (27 lines of game script)
create_artifact_fp2_4p_chess_board_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_masterwork = yes
	create_artifact = {
		name = fp2_4p_chess_board
		description = fp2_4p_chess_board_desc
		type = miscellaneous_when_not_court
		visuals = fp2_4p_chess_board
		wealth = scope:wealth
		quality = scope:quality
		modifier = artifact_stress_gain_4_modifier
		save_scope_as = newly_created_artifact
	}
	scope:newly_created_artifact = {
		# Flag this as something that can be reforged for free.
		set_variable = {
			name = dlc_potential_court_artifact
			value = yes
		}
		# And used in board games.
		set_variable = {
			name = can_be_used_for_board_games
			value = yes
		}
		hidden_effect = { add_artifact_modifier = artifact_befriend_scheme_phase_duration_add_4_modifier }
	}
}

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

Where it is used

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

Events (1)

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