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

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.

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)

6 more

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.

Spotted a mistake on this page?