Scripted effect · The Royal Court files
inspired_character_travel_to_court_effect
inspired_character_travel_to_court_effect = { INSPIRED_CHARACTER = … NEW_HOST = … }game/common/scripted_effects/00_ep1_inspiration_effects_sean.txt, line 799 (29 lines). Parameters: $INSPIRED_CHARACTER$, $NEW_HOST$.
inspired_character_travel_to_court_effect is a scripted effect in Crusader Kings III, in the The Royal Court files, written at line 799 of its file. A call passes 2 parameters: INSPIRED_CHARACTER and NEW_HOST. The game's script calls it in 2 places, among them grant_new_inspiration_in_character_realm_effect (scripted effect) and inspired_character_seek_out_new_royal_court_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_effects/00_ep1_inspiration_effects_sean.txt.
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (29 lines of game script)
inspired_character_travel_to_court_effect = {
$INSPIRED_CHARACTER$ = {
save_scope_as = ttc_inspired_character
inspiration = { save_scope_as = ttc_inspiration }
#Save our current host (so we don't return to their court too quickly!).
if = {
limit = { exists = host }
set_variable = {
name = last_visited_ruler
value = this.host
days = 1825
}
}
# If no current host, save as dummy character so we at least have something to compare to.
else = {
set_variable = {
name = last_visited_ruler
value = dummy_female
days = 1825
}
}
visit_court_of = $NEW_HOST$
add_character_flag = {
flag = inspired_character_recent_arrival
months = inspired_character_recent_arrival_duration_value
}
}
}As written in game/common/scripted_effects/00_ep1_inspiration_effects_sean.txt.
Where it is used
Every place in common/, events/ and history/ that calls inspired_character_travel_to_court_effect.
Source: game/common/scripted_effects/00_ep1_inspiration_effects_sean.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.