Scripted effect
get_period_of_time_word_setup_effect
get_period_of_time_word_setup_effect = { START_DATE = … }game/common/scripted_effects/00_custom_loc_effects.txt, line 4 (17 lines). Parameters: $START_DATE$.
get_period_of_time_word_setup_effect is a scripted effect in Crusader Kings III, written at line 4 of its file. A call passes 1 parameter: START_DATE. The game's script calls it in 2 places, among them A Friend Departs (event bp2_yearly.2040) and Call of the Road (event travel_events.0050). Patch 1.20.1.2, from game/common/scripted_effects/00_custom_loc_effects.txt.
The comment above it in the file
Custom Loc scripted effects all date calculations are done in DAYS to be run in the root character scope
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (17 lines of game script)
get_period_of_time_word_setup_effect = {
set_variable = {
name = start_date
value = $START_DATE$
}
set_variable = {
name = current_date
value = current_date
}
set_variable = {
name = period_of_time
value = {
value = var:current_date
subtract = var:start_date
}
}
}As written in game/common/scripted_effects/00_custom_loc_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls get_period_of_time_word_setup_effect.
Events (2)
- A Friend Departs
bp2_yearly.2040 - Call of the Road
travel_events.0050
Source: game/common/scripted_effects/00_custom_loc_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.