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

create_put_on_notice_challenge_competitor_trade_opportunity_effect

create_put_on_notice_challenge_competitor_trade_opportunity_effect = { TARGET = … }

game/common/scripted_effects/gdp_merchant_trade_opportunity_scripted_effects.txt, line 367 (86 lines). Parameters: $TARGET$.

create_put_on_notice_challenge_competitor_trade_opportunity_effect is a scripted effect in Crusader Kings III, in the Silk and Silver files, written at line 367 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 1 place, among them Put on Notice (interaction). Patch 1.21.0, from game/common/scripted_effects/gdp_merchant_trade_opportunity_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 (86 lines of game script)
create_put_on_notice_challenge_competitor_trade_opportunity_effect = {
	save_temporary_scope_as = put_on_notice_actor
	random_trade_route = {
		limit = {
			has_trader = yes
			any_trade_market_on_route = {
				gdp_trade_opportunity_market_on_route_destination_available_trigger = { MERCHANT = scope:put_on_notice_actor }
				save_temporary_scope_as = trade_opportunity_market
				any_character_in_market = {
					this = $TARGET$
					gdp_put_on_notice_potential_rival_trigger = {
						ROUTE_OWNER = scope:put_on_notice_actor
						MARKET = scope:trade_opportunity_market
					}
				}
				NOR = {
					has_competitiveness_modifier_for_character = {
						character = scope:put_on_notice_actor
						modifier = gdp_challenge_competitor_trade_opportunity_success_critical_modifier
					}
					has_competitiveness_modifier_for_character = {
						character = scope:put_on_notice_actor
						modifier = gdp_challenge_competitor_trade_opportunity_success_modifier
					}
					has_competitiveness_modifier_for_character = {
						character = scope:put_on_notice_actor
						modifier = gdp_challenge_competitor_trade_opportunity_failure_modifier
					}
				}
			}
		}
		save_scope_as = route
		trader ?= { save_scope_as = associate }
		random_trade_market_on_route = {
			limit = {
				gdp_trade_opportunity_market_on_route_destination_available_trigger = { MERCHANT = scope:put_on_notice_actor }
				save_temporary_scope_as = trade_opportunity_market
				any_character_in_market = {
					this = $TARGET$
					gdp_put_on_notice_potential_rival_trigger = {
						ROUTE_OWNER = scope:put_on_notice_actor
						MARKET = scope:trade_opportunity_market
					}
				}
				NOR = {
					has_competitiveness_modifier_for_character = {
						character = scope:put_on_notice_actor
						modifier = gdp_challenge_competitor_trade_opportunity_success_critical_modifier
					}
					has_competitiveness_modifier_for_character = {
						character = scope:put_on_notice_actor
						modifier = gdp_challenge_competitor_trade_opportunity_success_modifier
					}
					has_competitiveness_modifier_for_character = {
						character = scope:put_on_notice_actor
						modifier = gdp_challenge_competitor_trade_opportunity_failure_modifier
					}
				}
			}
			save_scope_as = market
			trade_market_owner.title_province = { save_scope_as = destination }
		}
	}

	if = {
		limit = {
			exists = scope:destination
			exists = scope:associate
		}
		hidden_effect = { trade_opportunity_task_contract_scopes_effect = yes }

		create_task_contract = {
			task_contract_type = challenge_competitor
			task_contract_tier = scope:contract_tier
			target = $TARGET$
			location = scope:destination
			task_contract_employer = scope:associate
			save_scope_as = trade_opportunity
		}

		if = {
			limit = { exists = scope:trade_opportunity }
			manage_new_trade_opportunity_contract_effect = yes
		}
	}
}

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

Where it is used

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

Character interactions (1)

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