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 Royal Court files

create_artifact_book_base_effect

create_artifact_book_base_effect = { TYPE = … }

game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt, line 3806 (59 lines). Parameters: $TYPE$.

create_artifact_book_base_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 3806 of its file. A call passes 1 parameter: TYPE. The game's script calls it in 1 place, among them create_artifact_book_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.

The comment above it in the file

Base effect handles selecting visuals depending on if there is a defined author, and whether they or the owner makes indian books or not

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 (59 lines of game script)
create_artifact_book_base_effect = {
	if = {
		limit = { exists = scope:author }
		if = {
			limit = { scope:author = { artifacts_use_indian_books_trigger = yes } }
			create_artifact = {	
				name = placeholder # Will be regenerated in the post-creation effects
				creator = scope:author
				description = placeholder # Will be regenerated in the post-creation effects
				visuals = indian_book
				type = $TYPE$
				modifier = artifact_placeholder_modifier
				save_scope_as = newly_created_artifact
				wealth = scope:wealth
				quality = scope:quality
			}
		}
		else = {
			create_artifact = {	
				name = placeholder # Will be regenerated in the post-creation effects
				creator = scope:author
				description = placeholder # Will be regenerated in the post-creation effects
				visuals = book
				type = $TYPE$
				modifier = artifact_placeholder_modifier
				save_scope_as = newly_created_artifact
				wealth = scope:wealth
				quality = scope:quality
			}
		}
	}
	else = {
		if = {
			limit = { artifacts_use_indian_books_trigger = yes }
			create_artifact = {	
				name = placeholder # Will be regenerated in the post-creation effects
				description = placeholder # Will be regenerated in the post-creation effects
				visuals = indian_book
				type = $TYPE$
				modifier = artifact_placeholder_modifier
				save_scope_as = newly_created_artifact
				wealth = scope:wealth
				quality = scope:quality
			}
		}
		else = {
			create_artifact = {	
				name = placeholder # Will be regenerated in the post-creation effects
				description = placeholder # Will be regenerated in the post-creation effects
				visuals = book
				type = $TYPE$
				modifier = artifact_placeholder_modifier
				save_scope_as = newly_created_artifact
				wealth = scope:wealth
				quality = scope:quality
			}
		}
	}
}

As written in game/common/scripted_effects/01_ep1_court_artifact_creation_effects.txt.

Where it is used

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

Scripted effects (1)

Source: game/common/scripted_effects/01_ep1_court_artifact_creation_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?