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

Scripted effect · The Royal Court files

get_adventure_inspiration_start_location

get_adventure_inspiration_start_location = { ADVENTURER = … }

game/common/scripted_effects/00_ep1_inspiration_effects.txt, line 714 (215 lines). Parameters: $ADVENTURER$.

get_adventure_inspiration_start_location is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 714 of its file. A call passes 1 parameter: ADVENTURER. The game's script calls it in 4 places, among them Search for Treasures (decision), courtier_guest_management.1001 (event) and fund_adventure_inspiration_start_effect (local effect). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_inspiration_effects.txt.

What it does

  • scope:adventurer:
    • If

      a check the game hides

      Then

      • Depending on adventure destination:
        • When adventure destination is africa › One random county in region:
          • region = world_africa
        • When adventure destination is africa west › One random county in region:
          • region = world_africa_west
        • When adventure destination is africa north › One random county in region:
          • region = world_africa_north
        • When adventure destination is africa east › One random county in region:
          • region = world_africa_east
        • When adventure destination is europe › One random county in region:
          • region = world_europe
        • When adventure destination is europe north › One random county in region:
          • region = world_europe_north
        • When adventure destination is europe south › One random county in region:
          • region = world_europe_south
        • When adventure destination is europe west › One random county in region:
          • region = world_europe_west
        • When adventure destination is europe east › One random county in region:
          • region = world_europe_east
        • When adventure destination is middle east › One random county in region:
          • region = world_middle_east
        • When adventure destination is middle east jerusalem › One random county in region:
          • region = world_middle_east_jerusalem
        • When adventure destination is middle east arabia › One random county in region:
          • region = world_middle_east_arabia
        • When adventure destination is middle east persia › One random county in region:
          • region = world_middle_east_persia
        • When adventure destination is india › One random county in region:
          • region = world_india
        • When adventure destination is india deccan › One random county in region:
          • region = world_india_deccan
        • When adventure destination is india bengal › One random county in region:
          • region = world_india_bengal
        • When adventure destination is india rajastan › One random county in region:
          • region = world_india_rajastan
        • When adventure destination is siberia › One random county in region:
          • region = world_siberia
        • When adventure destination is Steppe › One random county in region:
          • region = world_steppe
        • When adventure destination is steppe west › One random county in region:
          • region = world_steppe_west
        • When adventure destination is steppe central › One random county in region:
          • region = world_steppe_central
        • When adventure destination is steppe east › One random county in region:
          • region = world_steppe_east
        • When adventure destination is steppe tarim › One random county in region:
          • region = world_steppe_tarim
        • When adventure destination is asia minor › One random county in region:
          • region = world_asia_minor
        • When adventure destination is tibet › One random county in region:
          • region = world_tibet
        • When adventure destination is Cathay › One random county in region:
          • region = world_asia_china
        • When adventure destination is korea › One random county in region:
          • region = world_asia_korea
        • When adventure destination is sakhalin hokkaido › One random county in region:
          • region = world_asia_sakhalin_hokkaido
        • When adventure destination is japan › One random county in region:
          • region = world_asia_japan
        • When adventure destination is east asia › One random county in region:
          • region = world_asia_east
        • When adventure destination is southeast asia › One random county in region:
          • region = world_asia_southeast
        • When adventure destination is southeast asia islands › One random county in region:
          • region = world_asia_southeast_islands
        • When adventure destination is southeast asia mainland › One random county in region:
          • region = world_asia_southeast_mainland
        • When adventure destination is north east asia › One random county in region:
          • region = world_asia_north_east

• 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 (120 lines of game script)
get_adventure_inspiration_start_location = {
	$ADVENTURER$ = { save_scope_as = adventurer }
	scope:adventurer = {
		if = {
			limit = { exists = var:adventure_destination }
			switch = {
				trigger = var:adventure_destination
				flag:africa = { # Africa
					random_county_in_region = {
						region = world_africa
						title_province = { save_scope_as = location }
					}
				}
				flag:africa_west = { # West Africa
					random_county_in_region = {
						region = world_africa_west
						title_province = { save_scope_as = location }
					}
				}
				flag:africa_north = { # North Africa
					random_county_in_region = {
						region = world_africa_north
						title_province = { save_scope_as = location }
					}
				}
				flag:africa_east = { # East Africa
					random_county_in_region = {
						region = world_africa_east
						title_province = { save_scope_as = location }
					}
				}
				flag:europe = { # Europe
					random_county_in_region = {
						region = world_europe
						title_province = { save_scope_as = location }
					}
				}
				flag:europe_north = { # North Europe
					random_county_in_region = {
						region = world_europe_north
						title_province = { save_scope_as = location }
					}
				}
				flag:europe_south = { # South Europe
					random_county_in_region = {
						region = world_europe_south
						title_province = { save_scope_as = location }
					}
				}
				flag:europe_west = { # West Europe
					random_county_in_region = {
						region = world_europe_west
						title_province = { save_scope_as = location }
					}
				}
				flag:europe_east = { # East Europe
					random_county_in_region = {
						region = world_europe_east
						title_province = { save_scope_as = location }
					}
				}
				flag:middle_east = { # Middle East
					random_county_in_region = {
						region = world_middle_east
						title_province = { save_scope_as = location }
					}
				}
				flag:middle_east_jerusalem = { # Middle East - Jerusalem
					random_county_in_region = {
						region = world_middle_east_jerusalem
						title_province = { save_scope_as = location }
					}
				}
				flag:middle_east_arabia = { # Middle East - Arabia
					random_county_in_region = {
						region = world_middle_east_arabia
						title_province = { save_scope_as = location }
					}
				}
				flag:middle_east_persia = { # Middle East - Persia
					random_county_in_region = {
						region = world_middle_east_persia
						title_province = { save_scope_as = location }
					}
				}
				flag:india = { # India
					random_county_in_region = {
						region = world_india
						title_province = { save_scope_as = location }
					}
				}
				flag:india_deccan = { # India - Deccan
					random_county_in_region = {
						region = world_india_deccan
						title_province = { save_scope_as = location }
					}
				}
				flag:india_bengal = { # India - Bengal
					random_county_in_region = {
						region = world_india_bengal
						title_province = { save_scope_as = location }
					}
				}
				flag:india_rajastan = { # India - Rajastan
					random_county_in_region = {
						region = world_india_rajastan
						title_province = { save_scope_as = location }
					}
				}
				flag:siberia = { # Siberia
					random_county_in_region = {
						region = world_siberia
						title_province = { save_scope_as = location }
					}
				}
				flag:steppe = { # The Steppe
					random_county_in_region = {
						region = world_steppe
						title_province = { save_scope_as = location }
					}

As written in game/common/scripted_effects/00_ep1_inspiration_effects.txt.

The first 120 of its 215 lines; the rest is in game/common/scripted_effects/00_ep1_inspiration_effects.txt from line 714.

Where it is used

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

Scripted effects inside an event file (1)

  • fund_adventure_inspiration_start_effect

Source: game/common/scripted_effects/00_ep1_inspiration_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?