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

update_merchant_known_along_the_route_effect

update_merchant_known_along_the_route_effect = yes

game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 595 (34 lines). No parameters.

update_merchant_known_along_the_route_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 595 of its file. It takes no parameters: update_merchant_known_along_the_route_effect = yes. The game's script calls it in 5 places, among them Of the People (lifestyle perk), on_perks_refunded (on action) and on_trade_route_created (on action). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.

What it does

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

The script as written (34 lines of game script)
update_merchant_known_along_the_route_effect = {
	hidden_effect = {
		remove_all_character_modifier_instances = merchant_known_along_the_route_modifier

		if = {
			limit = {
				government_has_flag = government_is_merchant
				has_perk = of_the_people_perk
			}
			save_scope_as = known_along_the_route_owner
			every_trade_route = {
				limit = {
					trigger_if = {
						limit = { exists = scope:destroyed_trade_route }
						NOT = { this = scope:destroyed_trade_route }
					}
				}
				every_trade_market_on_route = {
					limit = {
						NOT = { trade_market_owner.county.culture = { is_in_list = merchant_known_along_the_route_cultures } }
					}
					trade_market_owner.county.culture = {
						add_to_temporary_list = merchant_known_along_the_route_cultures
					}
					scope:known_along_the_route_owner = {
						add_character_modifier = {
							modifier = merchant_known_along_the_route_modifier
						}
					}
				}
			}
		}
	}
}

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

Lifestyle perks (1)

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

  • on_perks_refunded
  • on_trade_route_created
  • on_trade_route_destroyed
  • on_trade_route_edited

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?