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

Scripted trigger

befriend_scope_is_close_to_target_trigger

befriend_scope_is_close_to_target_trigger = yes

game/common/scripted_triggers/00_scheme_befriend_triggers.txt, line 30 (20 lines). No parameters.

befriend_scope_is_close_to_target_trigger is a scripted trigger in Crusader Kings III, written at line 30 of its file. It takes no parameters: befriend_scope_is_close_to_target_trigger = yes (or no). The game's script calls it in 2 places, among them befriend_ongoing_3009_spouse_trigger (local trigger) and befriend_ongoing_3013_spouse_trigger (local trigger). Patch 1.20.1.2, from game/common/scripted_triggers/00_scheme_befriend_triggers.txt.

What it checks

  • One of these

    • is_close_or_extended_family_of = scope:target
    • or

      is_consort_of = scope:target
    • or

      has_relation_friend = scope:target
    • or

      All of these

      • One of these

        • court_owner = scope:target
        • or

          liege ?= scope:target
        • or

          Any vassal:
          • this = scope:target
      • Opinion from target more than 30

• 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 (20 lines of game script)
befriend_scope_is_close_to_target_trigger = {
	OR = {
		is_close_or_extended_family_of = scope:target
		is_consort_of = scope:target
		has_relation_friend = scope:target
		AND = {
			OR = {
				court_owner = scope:target
				liege ?= scope:target
				any_vassal = {
					this = scope:target
				}
			}
			reverse_opinion = {
				target = scope:target
				value > 30
			}
		}
	}
}

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

Where it is used

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

Scripted triggers inside an event file (2)

  • befriend_ongoing_3009_spouse_trigger
  • befriend_ongoing_3013_spouse_trigger

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