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_2p_chess_board_effect

create_artifact_fp2_2p_chess_board_effect = { OWNER = … }

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

create_artifact_fp2_2p_chess_board_effect is a scripted effect in Crusader Kings III, in the The Fate of Iberia files, written at line 1794 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 (47 lines of game script)
create_artifact_fp2_2p_chess_board_effect = {
	$OWNER$ = { save_scope_as = owner }
	set_artifact_rarity_common = yes
	if = {
		limit = {
			location = {
				bg_game_type_region_go_trigger = yes
			}
		}
		create_artifact = {
			name = tgp_go_board
			description = tgp_go_board_desc
			type = miscellaneous_when_not_court
			visuals = go_board_game_artifact
			wealth = scope:wealth
			quality = scope:quality
			modifier = artifact_stress_gain_2_modifier
			save_scope_as = newly_created_artifact
		}
	}
	else = { #Chess is the fallback
		create_artifact = {
			name = fp2_2p_chess_board
			description = fp2_2p_chess_board_desc
			type = miscellaneous_when_not_court
			visuals = fp2_2p_chess_board
			wealth = scope:wealth
			quality = scope:quality
			modifier = artifact_stress_gain_2_modifier
			save_scope_as = newly_created_artifact
		}
	}
	#Same followup modifiers:
	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_2_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_2p_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?