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

Scripted trigger

has_terrain_danger_type

has_terrain_danger_type = { TRAVEL = … }

game/common/scripted_triggers/00_travel_triggers.txt, line 154 (44 lines). Parameters: $TRAVEL$.

has_terrain_danger_type is a scripted trigger in Crusader Kings III, written at line 154 of its file. A call passes 1 parameter: TRAVEL. No file of common/, events/ or history/ calls it. Patch 1.20.1.2, from game/common/scripted_triggers/00_travel_triggers.txt.

What it checks

  • One of these

    • travel_danger_type = { travel_plan = $TRAVEL$ terrain = hills }
    • or

      travel_danger_type = { travel_plan = $TRAVEL$ terrain = forest }
    • or

      travel_danger_type = { travel_plan = $TRAVEL$ terrain = mountains }
    • or

      travel_danger_type = { travel_plan = $TRAVEL$ terrain = desert_mountains }
    • or

      travel_danger_type = { travel_plan = $TRAVEL$ terrain = wetlands }
    • or

      travel_danger_type = { travel_plan = $TRAVEL$ terrain = floodplains }
    • or

      travel_danger_type = { travel_plan = $TRAVEL$ terrain = drylands }
    • or

      travel_danger_type = { travel_plan = $TRAVEL$ terrain = desert }
    • or

      travel_danger_type = { travel_plan = $TRAVEL$ terrain = jungle }
    • or

      travel_danger_type = { travel_plan = $TRAVEL$ terrain = steppe }

• 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 (44 lines of game script)
has_terrain_danger_type = {
	OR = {
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = hills
		}
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = forest
		}
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = mountains
		}
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = desert_mountains
		}
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = wetlands
		}
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = floodplains
		}
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = drylands
		}
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = desert
		}
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = jungle
		}
		travel_danger_type = {
			travel_plan = $TRAVEL$
			terrain = steppe
		}
	}
}

As written in game/common/scripted_triggers/00_travel_triggers.txt.

Where it is used

No file of common/, events/ or history/ calls it.

Source: game/common/scripted_triggers/00_travel_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?