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

Scripted effect

governor_contract_travel_or_progress_effect

governor_contract_travel_or_progress_effect = { ARRIVAL_EVENT = … DESTINATION = … }

game/common/scripted_effects/00_task_contract_scripted_effects.txt, line 24 (12 lines). Parameters: $ARRIVAL_EVENT$, $DESTINATION$.

governor_contract_travel_or_progress_effect is a scripted effect in Crusader Kings III, written at line 24 of its file. A call passes 2 parameters: ARRIVAL_EVENT and DESTINATION. The game's script calls it in 33 places, among them A Confusion of Tongues (event tgp_governor_contract_event.0026), An Evil Presence (event governor_contract_event.2050) and Buried Treasure (event governor_contract_event.2070). Patch 1.20.1.2, from game/common/scripted_effects/00_task_contract_scripted_effects.txt.

What it does

  • If

    • location != $DESTINATION$

    Then

    • Sets out on a journey (a travel plan)

    Otherwise

• 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 (12 lines of game script)
governor_contract_travel_or_progress_effect = {
	if = {
		limit = { location != $DESTINATION$ }
		start_travel_plan = {
			destination = $DESTINATION$
			on_arrival_event = $ARRIVAL_EVENT$
			on_travel_planner_cancel_event = governor_contract_event.1012
			on_arrival_destinations = all_but_last
		}
	}
	else = { trigger_event = $ARRIVAL_EVENT$ }
}

As written in game/common/scripted_effects/00_task_contract_scripted_effects.txt.

Where it is used

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

Events (33)

27 more

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