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

add_scaling_trade_modifier_to_char_effect

add_scaling_trade_modifier_to_char_effect = { DOMICILE_TITLE = … DURATION = … MODIFIER = … TRADE_CATEGORY = … }

game/common/scripted_effects/gdp_republic_effects.txt, line 1683 (8 lines). Parameters: $DOMICILE_TITLE$, $DURATION$, $MODIFIER$, $TRADE_CATEGORY$.

add_scaling_trade_modifier_to_char_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1683 of its file. A call passes 4 parameters: DOMICILE_TITLE, DURATION, MODIFIER and TRADE_CATEGORY. The game's script calls it in 13 places, among them gdp_republic_great_plaza_basilica_project (great project), gdp_republic_great_plaza_civic_hospital_project (great project) and gdp_republic_great_plaza_civic_ward_project (great project). Patch 1.21.0, from game/common/scripted_effects/gdp_republic_effects.txt.

The comment above it in the file

Effect for applying a modifier scaling with the level of a selected trade good category
$TRADE_CATEGORY$	the category the modifier should scale with
$MODIFIER$		the modifier that should be applied
$DOMICILE_TITLE$	the title to get the trade experience level from
$DURATION$		how long the modifier should last

What it does

  • Gains the modifier “$MODIFIER$”

• 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 (8 lines of game script)
add_scaling_trade_modifier_to_char_effect = {
	$DOMICILE_TITLE$ = { save_scope_as = domicile_title_for_trade_xp_level }
	trade_good_category:$TRADE_CATEGORY$ = { save_scope_as = target_trade_category_for_modifier }
	add_character_modifier = {
		modifier = $MODIFIER$
		years = $DURATION$
	}
}

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

Where it is used

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

Great projects (13)

  • gdp_republic_great_plaza_basilica_project
  • gdp_republic_great_plaza_civic_hospital_project
  • gdp_republic_great_plaza_civic_ward_project
  • gdp_republic_great_plaza_clock_tower_project
  • gdp_republic_great_plaza_council_chamber_project
  • gdp_republic_great_plaza_debt_office_project
7 more
  • gdp_republic_great_plaza_fountain_project
  • gdp_republic_great_plaza_league_chapter_house_project
  • gdp_republic_great_plaza_loggia_project
  • gdp_republic_great_plaza_podesta_residence_project
  • gdp_republic_great_plaza_saint_sanctuary_project
  • gdp_republic_great_plaza_statute_hall_project
  • gdp_republic_great_plaza_weigh_house_project

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?