Scripted trigger
can_set_relation_friend_trigger
can_set_relation_friend_trigger = { CHARACTER = … }game/common/scripted_triggers/00_relation_triggers.txt, line 14 (9 lines). Parameters: $CHARACTER$.
can_set_relation_friend_trigger is a scripted trigger in Crusader Kings III, written at line 14 of its file. A call passes 1 parameter: CHARACTER. The game's script calls it in 138 places, among them Befriend (activity intent), apa_bonded_during_studies (activity pulse) and apa_cheering_on_competitors (activity pulse). Patch 1.20.1.2, from game/common/scripted_triggers/00_relation_triggers.txt.
What it checks
Every line of it is script with no tooltip text: the script is below.
The script as written (9 lines of game script)
can_set_relation_friend_trigger = {
NOR = {
this = $CHARACTER$
has_relation_friend = $CHARACTER$
has_relation_best_friend = $CHARACTER$
has_relation_rival = $CHARACTER$
has_relation_nemesis = $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 can_set_relation_friend_trigger — the first 120 of 138.
Activity intents (1)
- Befriend
Activity pulse actions (6)
- apa_bonded_during_studies
- apa_cheering_on_competitors
- apa_friendly_discussions
- bonding_spouse_family
- children_bonding
- relation_gains_friend
Events (109)
- … Charm
bp1_yearly.8160 - … Grand Ensemble
feast_tsagaan_sar_events.0260 - …: A Higher Power
councillor_spouse_learning.2301 - …: A Matter of Honor
councillor_spouse_martial.1003 - …: Fortified Monuments
travel_events_cities.1020 - …: Suq al-Warraqin
travel_events_cities.1010
103 more
- A Blessing from …
coronation_events.1028 - A Collection of Sorts
feast_default.6405 - A Crash of Inks
az_examination.0009 - A Deviant on the Loose
yearly.8400 - A Feast of Revelation
pam_ritual_celebrations_events.0001 - A Foreign Treat
travel_events.3030 - A Gruesome Morning
travel_events_oltner_2.1230 - A Heavy Crown
learning_medicine.2030 - A Heretic at …
pam_secular_faith_events.0017 - A Lesson in Lucre
child_personality.7050 - A Matter of Faith?
bp2_adult_education.1080 - A Mind Alike
imperial_examination_jay.0010 - A New Relation
parent.1009 - A Poetic Life: An Exchange of Verses
tgp_japan_yearly_events.1262 - A Ritual Wash
ep2_wedding.1100 - A Sheet of Paper
imperial_examination.4100 - A Sweet Farewell
intrigue_temptation.3000 - A Toast To...
feast.7201 - An Extra Hand
martial_authority.2051 - An Unthinkable Bargain
british_isles.1011 - Around The Fire
bp1_yearly.5721 - Behind a Locked Door
feast_default.2008 - Blossoming Friendship
childhood.0003 - bp1_yearly.1080
- Can't Get Away
ep2_wedding.1310 - Captive, Captivated
bp2_yearly.6130 - Challenge of the Cup
feast_tsagaan_sar_events.0270 - Commentaries
learning_theology_special.1102 - Compassionate Discord
yearly.5011 - councillor_spouse_learning.1001
- councillor_spouse_learning.1002
- councillor_spouse_learning.1301
- councillor_spouse_learning.1302
- councillor_spouse_learning.1304
- councillor_spouse_learning.1602
- councillor_spouse_learning.1603
- councillor_spouse_martial.0007
- court_chaplain_task.4102
- courtier_guest_management.3001
- Disloyal Vassal
stewardship_duty.5021 - Eccentric Ideas
bp2_adult_education.9300 - ep3_interactions_events.0601
- ep3_laamp_decision_event.1300
- ep3_travel_option_events.0003
- Eradicate the …
tgp_japan_general.9551 - Explorers from the South
fp1_yearly.0041 - Family Epic: A Work Completed
commission_epic.9101 - Family Epic: A Work Completed
commission_epic.9102 - Family Epic: A Work Completed
commission_epic.9103 - Family Epic: A Work Completed
commission_epic.9104 - Firm Friends
bp2_yearly.5054 - Fishy Business
fp1_yearly.0551 - Foreigners in This Land
bp2_adult_education.1050 - From Fight to Friendship
child_personality.2004 - Fully Grown
bp2_hostage_system.0200 - God…
pam_secular_faith_events.0025 - Going for a Swim
playdate.3008 - Gone In The Night
yearly.1010 - Lasting Heartbreak
bp2_yearly.5109 - Murders At Court: The Mistake
murders_at_court.9099 - My Rescuer
child_personality.2006 - Mysteries of the …
child_personality.7060 - Not Forgotten
bp2_yearly.6122 - Not Interested
ep2_wedding.3020 - Old as Stone
ep2_locale_events.5500 - One of the …
bp2_adult_education.1030 - Parting Ways
festival.2000 - Passage of Arms
tournament_events.1102 - Poisonous Relations
ep2_wedding.1220 - Provisional Catastrophe
bp1_yearly.7058 - Raunchy Runestone
fp1_yearly.2500 - Remember Your Friends
prelude_events.0120 - Schools of Thought
bp2_adult_education.1040 - Scrounger Life
court_yearly.6040 - Shared Conviction
pam_secular_faith_events.0046 - Successor's Squabble
diplomacy_family_special.2231 - The Beautiful …
prelude_events.0060 - The Borders of Faith
fp2_struggle.2006 - The Calling
pilgrimage.6800 - The Deserter
martial_authority_special.1501 - The Disputation of …
pilgrimage.6760 - The Evening Meal
intrigue_dread.1501 - The Forgone …
bp2_yearly.6121 - The Goliards
bp2_adult_education.1020 - The High Table Breaks
feast_main_befriend.1001 - The Kitten
childhood.2001 - The Kitten
childhood.2006 - The Language of the Master
bp2_adult_education.1012 - The Lonely Child
bp2_yearly.5104 - The Puppy
childhood.2003 - The Puppy
childhood.2005 - The Sermon
child_personality.7010 - The Sights of …
bp3_journey.0015 - The Stolen Keg
child_personality.7001 - The Travelling Troupe
travel_events_oltner_2.1240 - The Way Diverges
debate_event.2030 - The Way Diverges
imperial_examination.4080 - Thundering Feet
playdate.5009 - To Forgive, Divine
feast_events_flavor.0002 - Welcome Home!
bp1_yearly.1081 - What Once Was
mentor_student.0002 - What You Don't See...
tour_grounds_events.7000 - yearly.4001
Scripted effects inside an event file (4)
- bp1_yearly_2030_relationship_effect
- ep1_flavour_0011_friendly_diplomats_effect
- ep3_interactions_events_0601_friendship
- nomad_events_0190_friendship_effect
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.