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

Scripted effect · All Under Heaven files

mandala_invalidate_contracts_effect

mandala_invalidate_contracts_effect = yes

game/common/scripted_effects/tgp_mandala_scripted_effects.txt, line 2897 (25 lines). No parameters.

mandala_invalidate_contracts_effect is a scripted effect in Crusader Kings III, in the All Under Heaven files, written at line 2897 of its file. It takes no parameters: mandala_invalidate_contracts_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/tgp_mandala_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 (25 lines of game script)
mandala_invalidate_contracts_effect = {
	if = {
		limit = {
			any_character_active_contract = { is_a_mandala_contract_trigger = yes }
		}
		random_character_active_contract = {
			limit = { is_a_mandala_contract_trigger = yes }
			save_scope_as = invalidating_task_contract
			task_contract_taker = {
				save_scope_as = task_contract_character
				send_interface_message = {
					type = event_generic_bad_with_text
					title = mandala_contract_invalidated_title
					left_icon = scope:task_contract_character
					desc = mandala_contract_invalidated_desc
				}
				scope:invalidating_task_contract = { invalidate_contract = yes }
			}
		}
	}
	if = {
		limit = { has_character_flag = recently_completed_mandala_contract }
		remove_character_flag = recently_completed_mandala_contract
	}
}

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

Where it is used

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

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

  • on_travel_plan_abort
  • on_travel_plan_cancel

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