Scripted effect · Silk and Silver files
gdp_merchant_population_cull_effect
gdp_merchant_population_cull_effect = yesgame/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 3207 (20 lines). No parameters.
gdp_merchant_population_cull_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 3207 of its file. It takes no parameters: gdp_merchant_population_cull_effect = yes. The game's script calls it in 1 place, among them gdp_merchant_population_global_pulse (on action). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_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 (20 lines of game script)
gdp_merchant_population_cull_effect = {
if = {
limit = { gdp_merchant_companies_over_cap_trigger = yes }
ordered_in_global_list = {
variable = merchants_tally
limit = { gdp_merchant_company_cullable_trigger = yes }
order_by = {
value = 0
subtract = holder.gdp_merchant_company_strength_value
}
max = merchant_companies_to_cull_value
check_range_bounds = no
holder = { add_to_temporary_list = merchants_to_cull }
}
every_in_list = {
list = merchants_to_cull
destroy_merchant_effect = { MERCHANT = this }
}
}
}As written in game/common/scripted_effects/gdp_merchant_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls gdp_merchant_population_cull_effect.
On actions (the game's own hooks) (1)
- gdp_merchant_population_global_pulse
Source: game/common/scripted_effects/gdp_merchant_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.21.0.