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

Scripted effect · Silk and Silver files

gdp_minority_merchant_spawn_roll_effect

gdp_minority_merchant_spawn_roll_effect = yes

game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 3228 (30 lines). No parameters.

gdp_minority_merchant_spawn_roll_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 3228 of its file. It takes no parameters: gdp_minority_merchant_spawn_roll_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 (30 lines of game script)
gdp_minority_merchant_spawn_roll_effect = {
	if = {
		limit = { gdp_merchant_companies_below_cap_trigger = yes }
		random = {
			chance = gdp_minority_merchant_spawn_chance_value
			clear_global_variable_list = gdp_minority_merchant_cultures
			clear_global_variable_list = gdp_minority_merchant_faiths
			random_list = {
				1 = {
					set_global_variable = {
						name = gdp_minority_merchant_spawn_quota
						value = 2
					}
				}
				1 = {
					set_global_variable = {
						name = gdp_minority_merchant_spawn_quota
						value = 3
					}
				}
				1 = {
					set_global_variable = {
						name = gdp_minority_merchant_spawn_quota
						value = 4
					}
				}
			}
		}
	}
}

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_minority_merchant_spawn_roll_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.

Spotted a mistake on this page, or have an idea for the site?