Scripted effect
set_random_lover_reason
set_random_lover_reason = { TARGET = … }game/common/scripted_effects/00_relation_effects.txt, line 1143 (59 lines). Parameters: $TARGET$.
set_random_lover_reason is a scripted effect in Crusader Kings III, written at line 1143 of its file. A call passes 1 parameter: TARGET. The game's script calls it in 14 places, among them Closer Quarters (event ep3_laamp_flavour_ewan.2041), courtier_guest_management.3001 (event) and ep3_laamp_decision_event.1300 (event). Patch 1.20.1.2, from game/common/scripted_effects/00_relation_effects.txt.
What it does
- Gains a 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 (59 lines of game script)
set_random_lover_reason = {
show_as_tooltip = {
set_relation_lover = $TARGET$
}
hidden_effect = {
random_list = {
10 = {
trigger = {
$TARGET$ = {
is_female = yes
}
}
set_relation_lover = { reason = lover_random_1 target = $TARGET$ }
}
10 = {
set_relation_lover = { reason = lover_random_2 target = $TARGET$ }
}
10 = {
set_relation_lover = { reason = lover_random_3 target = $TARGET$ }
}
10 = {
trigger = {
$TARGET$ = {
is_male = yes
}
}
set_relation_lover = { reason = lover_random_4 target = $TARGET$ }
}
10 = {
set_relation_lover = { reason = lover_random_5 target = $TARGET$ }
}
10 = {
set_relation_lover = { reason = lover_random_6 target = $TARGET$ }
}
10 = {
trigger = {
$TARGET$ = {
is_male = yes
}
}
set_relation_lover = { reason = lover_random_7 target = $TARGET$ }
}
10 = {
set_relation_lover = { reason = lover_random_8 target = $TARGET$ }
}
10 = {
trigger = {
$TARGET$ = {
is_female = yes
}
}
set_relation_lover = { reason = lover_random_9 target = $TARGET$ }
}
10 = {
set_relation_lover = { reason = lover_random_10 target = $TARGET$ }
}
}
}
}As written in game/common/scripted_effects/00_relation_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_random_lover_reason.
Events (11)
- Closer Quarters
ep3_laamp_flavour_ewan.2041 - courtier_guest_management.3001
- ep3_laamp_decision_event.1300
- ep3_travel_option_events.0004
- Follower Returned: …
ep3_laamp_flavour_ewan.9511 - fund_inspiration.6513
5 more
- Innocence Lays Here
feast_default.6302 - stewardship_duty_special.2052
- Two Ships In The Night
bp1_yearly.2010 - Wanderlust
fp1_yearly.2000 - yearly.4001
History files (the start of the game) (1)
- easteregg_lucia_dzediti (characters)
Scripted effects (2)
Source: game/common/scripted_effects/00_relation_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.