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.
Character interactions (4)
Task contracts (2)
- bountiful_harvest
- rampant_bandits
Events (10)
- …China's Grand Campaign: Sunset
tgp_china_ministry.0005 - …China's Grand Campaign: Sunset
tgp_china_ministry.0008 - author_book.1000
- Ceremonial Threads
coronation_events.1034 - Facade... For Now
tgp_ceremonial_liege_events.0040 - Find Secrets — Hook Opportunity
scheme_critical_moments.8070
4 more
- Find Secrets — Known Criminal
scheme_critical_moments.8071 - Grave Goods
funeral.1010 - Our Moment in Time
funeral.1050 - Pugnacious Peers
ep3_governor_yearly.8110
Scripted effects (2)
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.