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_invalidating_settlement_contract_effect

mpo_invalidating_settlement_contract_effect = yes

game/common/scripted_effects/09_mpo_settlement_issue_effects.txt, line 128 (32 lines). No parameters.

mpo_invalidating_settlement_contract_effect is a scripted effect in Crusader Kings III, in the Khans of the Steppe files, written at line 128 of its file. It takes no parameters: mpo_invalidating_settlement_contract_effect = yes. The game's script calls it in 2 places, among them on_travel_plan_abort (on action) and on_travel_plan_cancel (on action). 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 (32 lines of game script)
mpo_invalidating_settlement_contract_effect = {
	switch = {
		trigger = has_variable
		nomadic_migration_contract_1 = { 
			random_character_active_contract = {
				limit = {
					has_task_contract_type = nomadic_migration_contract_1
				}
				save_scope_as = task_contract
			}
			trigger_event = { id = mpo_contract_events.0003 } 
		}
		nomadic_migration_contract_2 = { 
			random_character_active_contract = {
				limit = {
					has_task_contract_type = nomadic_migration_contract_2
				}
				save_scope_as = task_contract
			}
			trigger_event = { id = mpo_contract_events.0013 } 
		}
		nomadic_migration_contract_3 = { 
			random_character_active_contract = {
				limit = {
					has_task_contract_type = nomadic_migration_contract_3
				}
				save_scope_as = task_contract
			}
			trigger_event = { id = mpo_contract_events.0023 } 
		}
	}
}

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

On actions (the game's own hooks) (2)

  • on_travel_plan_abort
  • on_travel_plan_cancel

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?