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

Scripted effect · All Under Heaven files

add_merit_if_relevant_effect

add_merit_if_relevant_effect = { MERIT = … }

game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt, line 1365 (10 lines). Parameters: $MERIT$.

add_merit_if_relevant_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 1365 of its file. A call passes 1 parameter: MERIT. The game's script calls it in 18 places, among them Ask for Pardon (interaction), Blackmail (interaction) and Expose a Secret (interaction). Patch 1.20.1.2, from game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

The comment above it in the file

Adds Merit if your government has it
Required Parameter MERIT
Reminder, the values are
miniscule_merit_value
minor_merit_value
medium_merit_value
major_merit_value
massive_merit_value
monumental_merit_value

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 (10 lines of game script)
add_merit_if_relevant_effect = {
	if = {
		limit = {
			government_has_flag = government_has_merit
			top_liege != this
			$MERIT$ != 0
		}
		change_merit = $MERIT$
	}
}

As written in game/common/scripted_effects/10_dlc_tgp_scripted_effects.txt.

Where it is used

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

Task contracts (2)

  • bountiful_harvest
  • rampant_bandits

Events (10)

4 more

Source: game/common/scripted_effects/10_dlc_tgp_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?