CK3 DatabaseCrusader Kings III · 1.20.1.2 “Crozier” · unofficial
Silk & Silverout Tue, Nov 17What's free, what needs the DLC, price →

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

• 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.

History files (the start of the game) (1)

  • easteregg_lucia_dzediti (characters)

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.

Spotted a mistake on this page?