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

Scripted effect · Tours and Tournaments files

traveler_danger_xp_effect

traveler_danger_xp_effect = { MAX = … MIN = … }

game/common/scripted_effects/04_dlc_ep2_tour_effects.txt, line 330 (38 lines). Parameters: $MAX$, $MIN$.

traveler_danger_xp_effect is a scripted effect in Crusader Kings III, in the Tours and Tournaments files, written at line 330 of its file. A call passes 2 parameters: MAX and MIN. The game's script calls it in 63 places, among them poi_battles (travel), poi_battles_historical (travel) and poi_silk_road_node (travel). Patch 1.20.1.2, from game/common/scripted_effects/04_dlc_ep2_tour_effects.txt.

What it does

• 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 (38 lines of game script)
traveler_danger_xp_effect = {
	if = {
		limit = { has_trait = lifestyle_traveler }
		if = {
			limit = {
				has_perk = journey_perk
			}
			add_trait_xp = {
				trait = lifestyle_traveler
				track = danger
				value = {
					integer_range = {
						min = {
							value = $MIN$
							add = 2
						}
						max = {
							value = $MAX$
							add = 2
						}
					}
				}
			}
		}
		else = {
			add_trait_xp = {
				trait = lifestyle_traveler
				track = danger
				value = {
					integer_range = {
						min = $MIN$
						max = $MAX$
					}
				}
			}
		}
	}
}

As written in game/common/scripted_effects/04_dlc_ep2_tour_effects.txt.

Where it is used

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

Travel (5)

  • poi_battles
  • poi_battles_historical
  • poi_silk_road_node
  • poi_special_buildings_economic
  • poi_special_buildings_martial

Events (57)

51 more

Scripted effects inside an event file (1)

  • ate_poisonous_plant_effect

Source: game/common/scripted_effects/04_dlc_ep2_tour_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?