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

Scripted trigger

likes_character_trigger

likes_character_trigger = { CHARACTER = … }

game/common/scripted_triggers/00_relation_triggers.txt, line 400 (29 lines). Parameters: $CHARACTER$.

likes_character_trigger is a scripted trigger in Crusader Kings III, written at line 400 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 24 places, among them … praise… the … (activity pulse), apa_communal_prayer (activity pulse) and apa_prayer (activity pulse). Patch 1.20.1.2, from game/common/scripted_triggers/00_relation_triggers.txt.

What it checks

  • One of these

    • has_relation_lover = $CHARACTER$
    • or

      has_relation_friend = $CHARACTER$
    • or

      has_relation_crush = $CHARACTER$
    • or

      has_relation_potential_friend = $CHARACTER$
    • or

      has_relation_elder = $CHARACTER$
    • or

      has_relation_disciple = $CHARACTER$
    • or

      All of these

      • Has the Trait: Loyal
      • One of these

        • liege ?= $CHARACTER$
        • or

          is_consort_of = $CHARACTER$
        • or

          is_close_or_extended_family_of = $CHARACTER$
    • or

      Opinion of $CHARACTER$ at least 25
  • NOT = { has_relation_victim = $CHARACTER$ }
  • NOT = { has_relation_bully = $CHARACTER$ }
  • NOT = { has_relation_rival = $CHARACTER$ }
  • NOT = { is_at_war_with = $CHARACTER$ }
  • NOT = { is_imprisoned_by = $CHARACTER$ }

• 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 (29 lines of game script)
likes_character_trigger = {
	OR = {
		has_relation_lover = $CHARACTER$
		has_relation_friend = $CHARACTER$
		has_relation_crush = $CHARACTER$
		has_relation_potential_friend = $CHARACTER$
		has_relation_elder = $CHARACTER$
		has_relation_disciple = $CHARACTER$
		AND = {
			has_trait = loyal
			OR = {
				liege ?= $CHARACTER$
				is_consort_of = $CHARACTER$
				is_close_or_extended_family_of = $CHARACTER$
			}
		}
		opinion = {
			target = $CHARACTER$
			value >= 25
		}
	}
	NOR = {
		has_relation_victim = $CHARACTER$
		has_relation_bully = $CHARACTER$
		has_relation_rival = $CHARACTER$
		is_at_war_with = $CHARACTER$
		is_imprisoned_by = $CHARACTER$
	}
}

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

Where it is used

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

Activity pulse actions (13)

  • … praise… the …
  • apa_communal_prayer
  • apa_prayer
  • apa_sight_seeing_group
  • apa_silent_contemplation
  • apa_spiritual_journey
7 more
  • excellent_food
  • impressed_guest_honor
  • lauded_food
  • spouse_gives_hook
  • spouse_gives_host_prestige
  • spouse_impresses_clergy
  • spouse_manages_feast_splendidly

Task contracts (1)

  • laamp_transport_gold

Events (5)

Scripted triggers inside an event file (3)

  • ach_coronation_0029_friend_trigger
  • bp3_good_relations_trigger
  • travel_bp3_relevant_character_trigger

Script values (2)

  • base_legend_promote_ai
  • mpo_tsagaan_sar_gift_likely_value

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