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

Scripted trigger

potential_lifestyle_friend_availability_trigger

potential_lifestyle_friend_availability_trigger = { CHARACTER = … FOCUS = … }

game/common/scripted_triggers/00_lifestyle_triggers.txt, line 259 (24 lines). Parameters: $CHARACTER$, $FOCUS$.

potential_lifestyle_friend_availability_trigger is a scripted trigger in Crusader Kings III, written at line 259 of its file. A call passes 2 parameters: CHARACTER and FOCUS. The game's script calls it in 2 places, among them A Little Experimentation (event intrigue_temptation.3110) and potential_lifestyle_friend_saving_effect (scripted effect). Patch 1.20.1.2, from game/common/scripted_triggers/00_lifestyle_triggers.txt.

The comment above it in the file

Is the character available as a potential lifestyle friend for CHARACTER

What it checks

  • lifestyle_friend_trigger = { CHARACTER = $CHARACTER$ FOCUS = $FOCUS$ }
  • basic_is_available_ai = yes
  • NOT = { has_relation_friend = $CHARACTER$ }
  • NOT = { has_relation_rival = $CHARACTER$ }
  • NOT = { is_at_war_with = $CHARACTER$ }
  • Is an Adult
  • Opinion of $CHARACTER$ at least -20
  • save_temporary_scope_value_as = { name = trigger_focus value = flag:$FOCUS$ }
  • If

    • scope:trigger_focus = flag:intrigue_temptation_focus

    Then

• 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 (24 lines of game script)
potential_lifestyle_friend_availability_trigger = {
	lifestyle_friend_trigger = { CHARACTER = $CHARACTER$ FOCUS = $FOCUS$ }
	basic_is_available_ai = yes
	NOR = {
		has_relation_friend = $CHARACTER$
		has_relation_rival = $CHARACTER$
		is_at_war_with =  $CHARACTER$
	}
	is_adult = yes
	opinion = {
		target = $CHARACTER$
		value >= low_negative_opinion
	}
	save_temporary_scope_value_as = {
		name = trigger_focus
		value = flag:$FOCUS$
	}
	trigger_if = {
		limit = { scope:trigger_focus = flag:intrigue_temptation_focus }
		NOT = {
			dislikes_partner_cheating_trigger = { PARTNER = $CHARACTER$ }
		}
	}
}

As written in game/common/scripted_triggers/00_lifestyle_triggers.txt.

Where it is used

Every place in common/, events/ and history/ that calls potential_lifestyle_friend_availability_trigger.

Events (1)

Source: game/common/scripted_triggers/00_lifestyle_triggers.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?