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_apply_league_focused_category_modifier_effect

gdp_apply_league_focused_category_modifier_effect = { CATEGORY = … CHARACTER = … }

game/common/scripted_effects/gdp_republic_effects.txt, line 3349 (69 lines). Parameters: $CATEGORY$, $CHARACTER$.

gdp_apply_league_focused_category_modifier_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 3349 of its file. A call passes 2 parameters: CATEGORY and CHARACTER. The game's script calls it in 3 places, among them gdp_league_focus_on_title_gain (on action), gdp_set_league_focused_category_effect (scripted effect) and trade_league (confederation types). Patch 1.21.0, from game/common/scripted_effects/gdp_republic_effects.txt.

What it does

Every line of it is script with no tooltip text: the script is below.

The script as written (69 lines of game script)
gdp_apply_league_focused_category_modifier_effect = {
	$CATEGORY$ = { save_temporary_scope_as = league_focus_category }
	$CHARACTER$ = {
		gdp_clear_league_focused_category_modifiers_effect = yes
		switch = {
			trigger = scope:league_focus_category
			trade_good_category:trade_category_alcohol = {
				add_character_modifier = league_focused_category_alcohol_modifier
			}
			trade_good_category:trade_category_comforts = {
				add_character_modifier = league_focused_category_comforts_modifier
			}
			trade_good_category:trade_category_cereals = {
				add_character_modifier = league_focused_category_cereals_modifier
			}
			trade_good_category:trade_category_meat = {
				add_character_modifier = league_focused_category_meat_modifier
			}
			trade_good_category:trade_category_beasts_of_burden = {
				add_character_modifier = league_focused_category_beasts_of_burden_modifier
			}
			trade_good_category:trade_category_salt = {
				add_character_modifier = league_focused_category_salt_modifier
			}
			trade_good_category:trade_category_clothes = {
				add_character_modifier = league_focused_category_clothes_modifier
			}
			trade_good_category:trade_category_fabrics = {
				add_character_modifier = league_focused_category_fabrics_modifier
			}
			trade_good_category:trade_category_dyes = {
				add_character_modifier = league_focused_category_dyes_modifier
			}
			trade_good_category:trade_category_alum = {
				add_character_modifier = league_focused_category_alum_modifier
			}
			trade_good_category:trade_category_stone = {
				add_character_modifier = league_focused_category_stone_modifier
			}
			trade_good_category:trade_category_carpentry_supplies = {
				add_character_modifier = league_focused_category_carpentry_supplies_modifier
			}
			trade_good_category:trade_category_base_metals = {
				add_character_modifier = league_focused_category_base_metals_modifier
			}
			trade_good_category:trade_category_luxury_items = {
				add_character_modifier = league_focused_category_luxury_items_modifier
			}
			trade_good_category:trade_category_jewelry_materials = {
				add_character_modifier = league_focused_category_jewelry_materials_modifier
			}
			trade_good_category:trade_category_precious_metals = {
				add_character_modifier = league_focused_category_precious_metals_modifier
			}
			trade_good_category:trade_category_medicaments = {
				add_character_modifier = league_focused_category_medicaments_modifier
			}
			trade_good_category:trade_category_incense = {
				add_character_modifier = league_focused_category_incense_modifier
			}
			trade_good_category:trade_category_luxury_consumption = {
				add_character_modifier = league_focused_category_luxury_consumption_modifier
			}
			trade_good_category:trade_category_books = {
				add_character_modifier = league_focused_category_books_modifier
			}
		}
	}
}

As written in game/common/scripted_effects/gdp_republic_effects.txt.

Where it is used

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

On actions (the game's own hooks) (1)

  • gdp_league_focus_on_title_gain

Confederation types (1)

  • trade_league

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