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

merchant_broke_commission_fallout_effect

merchant_broke_commission_fallout_effect = { ROUTE = … }

game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 4803 (14 lines). Parameters: $ROUTE$.

merchant_broke_commission_fallout_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 4803 of its file. A call passes 1 parameter: ROUTE. The game's script calls it in 1 place, among them on_trade_route_destroyed (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 (14 lines of game script)
merchant_broke_commission_fallout_effect = {
	$ROUTE$ = {
		commissioner = { save_scope_as = old_commissioner }
	}
	scope:old_commissioner = {
		add_prestige = $ROUTE$.gdp_commission_route_reimbursement_value
	}
	add_dealbreaker_secret_effect = yes
	reveal_dealbreaker_secret_effect = { REVEAL_TO = scope:old_commissioner }
	reverse_add_opinion = {
		modifier = broke_deal_opinion
		target = scope:old_commissioner
	}
}

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

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

  • on_trade_route_destroyed

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?