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_merchant_spent_indebted_hook_effect

gdp_merchant_spent_indebted_hook_effect = { DESC = … TITLE = … }

game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 5810 (33 lines). Parameters: $DESC$, $TITLE$.

gdp_merchant_spent_indebted_hook_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 5810 of its file. A call passes 2 parameters: DESC and TITLE. The game's script calls it in 2 places, among them Indebted (hook types) and Saved from Bankruptcy (hook types). 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 (33 lines of game script)
gdp_merchant_spent_indebted_hook_effect = {
	if = {
		limit = { government_has_flag = government_is_merchant }
		send_interface_toast = {
			type = event_toast_text_and_effect_neutral
			title = $TITLE$
			desc = $DESC$
			left_icon = root
			right_icon = scope:target
			add_trait_xp = {
				trait = lifestyle_merchant
				track = creditor
				value = lifestyle_merchant_xp_gain_minor_value
			}
			merchant_creditor_capstone_prestige_effect = yes
			if = {
				limit = {
					has_realm_law = company_purpose_creditor
					scope:target = { is_landed = yes }
				}
				dynasty ?= {
					add_dynasty_prestige = {
						value = miniscule_dynasty_prestige_gain
						multiply = {
							value = scope:target.highest_held_title_tier
							min = 1
						}
					}
				}
			}
		}
	}
}

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

Hook types (2)

  • Indebted
  • Saved from Bankruptcy

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?