Scripted effect · The Royal Court files
set_adventure_location_effect
set_adventure_location_effect = { BASE_SCOPE = … NO_DESTINATION = … }game/common/scripted_effects/00_ep1_inspiration_effects.txt, line 152 (561 lines). Parameters: $BASE_SCOPE$, $NO_DESTINATION$.
set_adventure_location_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 152 of its file. A call passes 2 parameters: BASE_SCOPE and NO_DESTINATION. The game's script calls it in 4 places, among them courtier_guest_management.1001 (event), Inspiration Funded (event fund_inspiration.0051) and inspiration_adventure_create_artifact_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_inspiration_effects.txt.
The comment above it in the file
Where is the adventurer going?
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
set_adventure_location_effect = {
save_temporary_scope_value_as = {
name = allow_no_destination_option
value = $NO_DESTINATION$
}
hidden_effect = { #If they haven't specified where they're going we decide it here (might still leave it up to the sponsor if allow_no_destination_option = yes!)
$BASE_SCOPE$ = {
if = {
limit = {
NOT = { exists = var:adventure_destination }
}
random_list = {
10 = {
# Africa
trigger = {
trigger_if = {
limit = { exists = location }
location = {
NOT = { geographical_region = world_africa }
}
adventurer_potential_destination_distance_check = {
REGION = world_africa
}
}
}
set_variable = {
name = adventure_destination
value = flag:africa
}
}
10 = {
# West Africa
trigger = {
trigger_if = {
limit = { exists = location }
adventurer_potential_destination_distance_check = {
REGION = world_africa_west
}
}
}
set_variable = {
name = adventure_destination
value = flag:africa_west
}
}
10 = {
# North Africa
trigger = {
trigger_if = {
limit = { exists = location }
adventurer_potential_destination_distance_check = {
REGION = world_africa_north
}
}
}
set_variable = {
name = adventure_destination
value = flag:africa_north
}
}
10 = {
# East Africa
trigger = {
trigger_if = {
limit = { exists = location }
adventurer_potential_destination_distance_check = {
REGION = world_africa_east
}
}
}
set_variable = {
name = adventure_destination
value = flag:africa_east
}
}
10 = {
# Europe
trigger = {
trigger_if = {
limit = { exists = location }
location = {
NOT = { geographical_region = world_europe }
}
adventurer_potential_destination_distance_check = {
REGION = world_europe
}
}
}
set_variable = {
name = adventure_destination
value = flag:europe
}
}
5 = {
# North Europe
trigger = {
trigger_if = {
limit = { exists = location }
adventurer_potential_destination_distance_check = {
REGION = world_europe_north
}
}
}
set_variable = {
name = adventure_destination
value = flag:europe_north
}
}
10 = {
# South Europe
trigger = {
trigger_if = {
limit = { exists = location }
adventurer_potential_destination_distance_check = {
REGION = world_europe_south
}
}
}
set_variable = {
name = adventure_destinationAs written in game/common/scripted_effects/00_ep1_inspiration_effects.txt.
The first 120 of its 561 lines; the rest is in game/common/scripted_effects/00_ep1_inspiration_effects.txt from line 152.
Where it is used
Every place in common/, events/ and history/ that calls set_adventure_location_effect.
Events (2)
- courtier_guest_management.1001
- Inspiration Funded
fund_inspiration.0051
Scripted effects (1)
Inspirations (1)
- Adventure Inspiration
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.