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
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)
- A … …
coronation_events_klank.1008 - A Matter of Theology: …
laamp_base_learning_contract_events.4015 - Ceremonial Threads
coronation_events.1034 - The Weight of Expectation
az_examination.0019 - Verses Across the Table
coronation_events.1036
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.