Scripted trigger
object_of_importance_exist_trigger
object_of_importance_exist_trigger = { LOVER = … }game/common/scripted_triggers/00_romance_and_seduction_triggers.txt, line 348 (49 lines). Parameters: $LOVER$.
object_of_importance_exist_trigger is a scripted trigger in Crusader Kings III, written at line 348 of its file. A call passes 1 parameter: LOVER. The game's script calls it in 5 places, among them Let's Go Away (event lover.1005), Love Over Yonder (event lover.3207) and Personal Memento (event lover.3219). Patch 1.20.1.2, from game/common/scripted_triggers/00_romance_and_seduction_triggers.txt.
The comment above it in the file
To check if either of two lovers have a object of importance saved Use LOVER to slot in the non-scope character!
What it checks
One of these
All of these
has_variable_list = lover_object_of_importancevariable_list_size = { name = lover_object_of_importance value = 2 }is_target_in_variable_list = { name = lover_object_of_importance target = $LOVER$ }
or
All of these
has_variable_list = lover_object_of_importance_2variable_list_size = { name = lover_object_of_importance_2 value = 2 }is_target_in_variable_list = { name = lover_object_of_importance_2 target = $LOVER$ }
or
$LOVER$ = { … }
• 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 (49 lines of game script)
object_of_importance_exist_trigger = {
save_temporary_scope_as = original_scope
OR = {
AND = {
has_variable_list = lover_object_of_importance
variable_list_size = {
name = lover_object_of_importance
value = 2
}
is_target_in_variable_list = {
name = lover_object_of_importance
target = $LOVER$
}
}
AND = {
has_variable_list = lover_object_of_importance_2
variable_list_size = {
name = lover_object_of_importance_2
value = 2
}
is_target_in_variable_list = {
name = lover_object_of_importance_2
target = $LOVER$
}
}
$LOVER$ = {
has_variable_list = lover_object_of_importance
variable_list_size = {
name = lover_object_of_importance
value = 2
}
is_target_in_variable_list = {
name = lover_object_of_importance
target = scope:original_scope
}
}
$LOVER$ = {
has_variable_list = lover_object_of_importance_2
variable_list_size = {
name = lover_object_of_importance_2
value = 2
}
is_target_in_variable_list = {
name = lover_object_of_importance_2
target = scope:original_scope
}
}
}
}As written in game/common/scripted_triggers/00_romance_and_seduction_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls object_of_importance_exist_trigger.
Events (4)
- Let's Go Away
lover.1005 - Love Over Yonder
lover.3207 - Personal Memento
lover.3219 - The Perfect Gift
lover.3201
Customizable localization (1)
- GreetingToLover
Source: game/common/scripted_triggers/00_romance_and_seduction_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.