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

Scripted effect

get_quirk_character_effect

get_quirk_character_effect = yes

game/common/scripted_effects/00_personal_details_effects.txt, line 330 (17 lines). No parameters.

get_quirk_character_effect is a scripted effect in Crusader Kings III, written at line 330 of its file. It takes no parameters: get_quirk_character_effect = yes. The game's script calls it in 23 places, among them A Mother's Love (event mpo_hunt.0020), A Secret for a Secret (event ep3_landless_admin.1030) and A Sneaking Suspicion (event adultery.1002). Patch 1.20.1.2, from game/common/scripted_effects/00_personal_details_effects.txt.

The comment above it in the file

Used to make sure that a character used for a quirk has one
Utilises assign_quirk_effect, and must always be placed in the same file, after that one.

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 (17 lines of game script)
get_quirk_character_effect = {
	if = {
		limit = {
			root = { is_ai = no }
		}
		if = {
			limit = {
				has_variable = my_quirk
			}
			save_scope_as = quirk_character
		}
		else = {
			assign_quirk_effect = yes
			save_scope_as = quirk_character
		}
	}
}

As written in game/common/scripted_effects/00_personal_details_effects.txt.

Where it is used

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

Events (23)

17 more

Source: game/common/scripted_effects/00_personal_details_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?