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_scholastic_exceptions_effect

update_merchant_scholastic_exceptions_effect = yes

game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 561 (33 lines). No parameters.

update_merchant_scholastic_exceptions_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 561 of its file. It takes no parameters: update_merchant_scholastic_exceptions_effect = yes. The game's script calls it in 5 places, among them Clerical Justifications (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 (33 lines of game script)
update_merchant_scholastic_exceptions_effect = {
	hidden_effect = {
		remove_all_character_modifier_instances = merchant_scholastic_exceptions_modifier

		if = {
			limit = {
				government_has_flag = government_has_merchant_company
				has_perk = clerical_justifications_perk
			}
			save_scope_as = scholastic_exceptions_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 = { is_in_list = merchant_scholastic_exceptions_markets }
						trade_market_owner.county.faith != scope:scholastic_exceptions_owner.faith
					}
					add_to_temporary_list = merchant_scholastic_exceptions_markets
					scope:scholastic_exceptions_owner = {
						add_character_modifier = {
							modifier = merchant_scholastic_exceptions_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_scholastic_exceptions_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?