Scripted trigger
is_within_diplo_range
is_within_diplo_range = { CHARACTER = … }game/common/scripted_triggers/00_available_for_events_triggers.txt, line 857 (11 lines). Parameters: $CHARACTER$.
is_within_diplo_range is a scripted trigger in Crusader Kings III, written at line 857 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 56 places, among them Avenge the Battle of Nahrawan (decision), Avenge the Battle of Tours (decision) and Build a Glass Monument (decision). Patch 1.20.1.2, from game/common/scripted_triggers/00_available_for_events_triggers.txt.
What it checks
- Their capital province:
$CHARACTER$.capital_province ?= { … }
• 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 (11 lines of game script)
is_within_diplo_range = {
capital_province ?= {
save_temporary_scope_as = my_capital
$CHARACTER$.capital_province ?= {
squared_distance = {
target = scope:my_capital
value < 200000
}
}
}
}As written in game/common/scripted_triggers/00_available_for_events_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls is_within_diplo_range.
Decisions (18)
Casus belli (2)
Council tasks (9)
- Convert Faith in County
- Fabricate Claim on County
- Find Secrets
- Increase Control
- Increase Control
- Increase Control
3 more
- Increase Control
- Increase Control in County
- Train Commanders
Task contracts (3)
- laamp_raid_contract
- laamp_steal_artifact_contract
- laamp_transport_explorer
Buildings (1)
Events (12)
- A Sacred Text
learning_scholarship.5000 - Charlemagne's Dream
middle_europe_decisions.0005 - Defenders of …
east_europe.0016 - From Rome to Rome
roman_restoration.0150 - global_culture.0001
- global_culture.0011
6 more
- global_culture.0031
- Holy and Roman
roman_restoration.0003 - Little Birds
legend_spread_events.5325 - Religious Study: … of the Rule
study_scripture_outcome.1060 - The Dawn of a New Era
roman_restoration.0001 - The Kingdom of Toledo
fp2_other_decisions.1100
Scripted effects inside an event file (1)
- majapahit_reward_island_title_claims_list_effect
Scripted triggers inside an event file (1)
- pam_study_scripture_pastoral_county_trigger
On actions (the game's own hooks) (1)
- on_war_started
Factions (8)
- Ceremonial Claimant Faction
- Claimant Faction
- Dissolution Faction
- Imperial Policy Faction
- Independence Faction
- Install Ruling Regent Faction
2 more
- Liberty Faction
- Restore Ceremonial Monarch Faction
Source: game/common/scripted_triggers/00_available_for_events_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.