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_disrupt_trade_routes_discovered_effect

gdp_disrupt_trade_routes_discovered_effect = yes

game/common/scripted_effects/gdp_trade_scheme_effects.txt, line 165 (25 lines). No parameters.

gdp_disrupt_trade_routes_discovered_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 165 of its file. It takes no parameters: gdp_disrupt_trade_routes_discovered_effect = yes. The game's script calls it in 2 places, among them Disrupt Trade Routes: Failure (event gdp_trade_scheme.0013) and Disrupt Trade Routes: Success (event gdp_trade_scheme.0012). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_trade_scheme_effects.txt.

The comment above it in the file

on_scheme_discovered only covers mid-scheme exposure, so resolution pays here.
Run in scheme owner scope.

What it does

  • If

    a check the game hides

    Then

• 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 (25 lines of game script)
gdp_disrupt_trade_routes_discovered_effect = {
	if = {
		limit = { exists = scope:scheme_discovered }
		scope:target ?= {
			add_opinion = {
				modifier = gdp_disrupt_trade_routes_discovered_opinion
				target = scope:owner
			}
		}
		# No route was touched, so the damage toast never runs to name the culprit.
		if = {
			limit = { NOT = { exists = scope:disrupted_trade_route } }
			hidden_effect = {
				scope:target ?= {
					send_interface_toast = {
						type = event_toast_effect_bad
						title = gdp_disrupt_trade_routes_target_caught_notification
						left_icon = scope:owner
						custom_tooltip = gdp_disrupt_trade_routes_target_caught_tt
					}
				}
			}
		}
	}
}

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

Where it is used

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

Events (2)

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