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
- Event $ARRIVAL_EVENT$
• 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)
- A Confusion of Tongues
tgp_governor_contract_event.0026 - An Evil Presence
governor_contract_event.2050 - Buried Treasure
governor_contract_event.2070 - Contested Inheritance
tgp_governor_contract_event.0034 - Crumbling Bridge
tgp_governor_contract_event.0024 - Destroyed by Nature
tgp_natural_disaster_contract_event.0005
27 more
- Doddering Magistrate
tgp_governor_contract_event.0015 - Escaped Justice
governor_contract_events_tova.0055 - Food Shortage
tgp_natural_disaster_contract_event.0001 - Fraud in Broad Daylight
tgp_governor_contract_event.0022 - Hoarding Grain
tgp_governor_contract_event.0014 - Hoarding Mayor
governor_contract_event.1010 - Hungry Times
governor_contract_event.2110 - Inept Mayor
governor_contract_event.2010 - Irregular Accounting
tgp_governor_contract_event.0012 - Jail Inspection
tgp_governor_contract_event.0010 - Lines in the Soil
tgp_governor_contract_event.0020 - Missing Equipment
tgp_governor_contract_event.2000 - Monopoly in the Marketplace
tgp_governor_contract_event.0032 - Overdue Taxes
governor_contract_event.1000 - Potent Physick
tgp_governor_contract_event.0011 - Predatory Beasts
governor_contract_event.2040 - Public Land
governor_contract_event.2080 - Quaking in Panic
tgp_governor_contract_event.0030 - Raiding Peasants
governor_contract_event.2030 - Rampant Bandits
governor_contract_event.1030 - Reapers of Ruin
tgp_natural_disaster_contract_event.0015 - Salt Smugglers
tgp_governor_contract_event.0013 - Seditious Storytelling
tgp_governor_contract_event.0028 - The Mad Prophet
governor_contract_event.2090 - Treating the Unfortunate
tgp_natural_disaster_contract_event.0010 - Unsanctioned Deity
governor_contract_events_tova.0050 - Weaponize Monks
governor_contract_events_tova.0065
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.