CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

Scripted effect · Khans of the Steppe files

mpo_settlement_issue_reset_effect

mpo_settlement_issue_reset_effect = { ID = … NUMBER = … }

game/common/scripted_effects/09_mpo_settlement_issue_effects.txt, line 161 (36 lines). Parameters: $ID$, $NUMBER$.

mpo_settlement_issue_reset_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 161 of its file. A call passes 2 parameters: ID and NUMBER. The game's script calls it in 10 places, among them mpo_contract_events.0003 (event), mpo_contract_events.0013 (event) and mpo_contract_events.0023 (event). Patch 1.20.1.2, from game/common/scripted_effects/09_mpo_settlement_issue_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 (36 lines of game script)
mpo_settlement_issue_reset_effect = {
	scope:task_contract.task_contract_employer ?= {
		if = {
			limit = {
				NOT = { exists = scope:new_employer }
				is_alive = yes
				OR = {
					liege_or_court_owner = root
					employer = root
				}
			}
			save_scope_as = new_employer
		}
	}
	if = {
		limit = {
			NOT = { exists = scope:contract_province }
			OR = {
				scope:task_contract.task_contract_location.province_owner ?= root
				scope:task_contract.task_contract_location.province_owner.top_liege ?= root
			}
		}
		scope:task_contract.task_contract_location ?= {
			save_scope_as = contract_province
		}
	}

	scope:task_contract ?= { invalidate_contract = yes }

	remove_variable = nomadic_migration_contract_$NUMBER$

	trigger_event = {
		id = mpo_contract_events.$ID$
		days = 1
	}
}

As written in game/common/scripted_effects/09_mpo_settlement_issue_effects.txt.

Where it is used

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

Source: game/common/scripted_effects/09_mpo_settlement_issue_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.

Spotted a mistake on this page?