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_patron_fund_buildings_fulfill_promise_if_matching_effect

gdp_merchant_patron_fund_buildings_fulfill_promise_if_matching_effect = yes

game/common/scripted_effects/gdp_merchant_scripted_effects.txt, line 1213 (28 lines). No parameters.

gdp_merchant_patron_fund_buildings_fulfill_promise_if_matching_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 1213 of its file. It takes no parameters: gdp_merchant_patron_fund_buildings_fulfill_promise_if_matching_effect = yes. The game's script calls it in 1 place, among them Sponsor Construction (interaction). Its body carries 1 text of the game's own for the player. Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_scripted_effects.txt.

What it does

  • If merchant patron fund buildings promise is scope:recipient › scope:recipient:
    • … fulfilled … promise to sponsor a construction in … lands
    • If played by the AI: Opinion: Respect (+15)

• 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 (28 lines of game script)
gdp_merchant_patron_fund_buildings_fulfill_promise_if_matching_effect = {
	if = {
		limit = { var:merchant_patron_fund_buildings_promise ?= scope:recipient }#
		save_temporary_scope_as = merchant_temp
		send_interface_toast = {
			type = event_toast_effect_neutral
			title = gdp_merchant_patron_fund_buildings_promise_fulfilled_toast
			right_icon = scope:recipient
			remove_variable = merchant_patron_fund_buildings_promise
			scope:recipient = {
				send_interface_toast = {
					type = event_toast_effect_good
					title = gdp_merchant_patron_fund_buildings_promise_fulfilled_toast
					right_icon = scope:merchant_temp
					custom_tooltip = gdp_merchant_patron_fund_buildings_promise_fulfilled_tt
					if = {
						limit = { is_ai = yes }
						add_opinion = {
							target = scope:merchant_temp
							modifier = respect_opinion
							opinion = 15
						}
					}
				}
			}
		}
	}
}

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

Character interactions (1)

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?