Scripted effect
add_clan_unity_interaction_effect
add_clan_unity_interaction_effect = { CHARACTER = … DESC = … REVERSE_NON_HOUSE_TARGET = … TARGET = … VALUE = … }game/common/scripted_effects/00_interaction_effects.txt, line 5157 (51 lines). Parameters: $CHARACTER$, $DESC$, $REVERSE_NON_HOUSE_TARGET$, $TARGET$, $VALUE$.
add_clan_unity_interaction_effect is a scripted effect in Crusader Kings III, written at line 5157 of its file. A call passes 5 parameters: CHARACTER, DESC, REVERSE_NON_HOUSE_TARGET, TARGET and VALUE. The game's script calls it in 165 places, among them Abandon Hook (interaction), Accuse of Decadence (interaction) and Accuse of Violating Sumptuary Law (interaction). Patch 1.20.1.2, from game/common/scripted_effects/00_interaction_effects.txt.
What it does
If
$CHARACTER$ = { government_has_flag = government_is_clan }$TARGET$ = { government_has_flag = government_is_clan }$CHARACTER$.house = $TARGET$.houseIf
scope:actor != scope:recipient
Then
NOT = { $CHARACTER$ = $TARGET$ }
Then
Else if
$REVERSE_NON_HOUSE_TARGET$ = yes$CHARACTER$ = { government_has_flag = government_is_clan }$CHARACTER$.house ?= { house_head = $CHARACTER$ }One of these
All of these
exists = $TARGET$.houseNOT = { $CHARACTER$.house = $TARGET$.house }
or
$TARGET$ = { is_lowborn = yes }
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 (51 lines of game script)
add_clan_unity_interaction_effect = {
if = {
limit = { # Check if unity is relevant
$CHARACTER$ = { government_has_flag = government_is_clan }
$TARGET$ = { government_has_flag = government_is_clan }
exists = $CHARACTER$.house
exists = $TARGET$.house
$CHARACTER$.house = $TARGET$.house
trigger_if = {
limit = {
exists = scope:actor
exists = scope:recipient
scope:actor != scope:recipient
}
NOT = { $CHARACTER$ = $TARGET$ } # As a safety, let's make sure that we are not interacting with ourselves
}
}
apply_clan_unity_interaction_effect = {
CHARACTER = $CHARACTER$
TARGET = $TARGET$
DESC = $DESC$
VALUE = $VALUE$
VALUE_REVERSED = no
}
}
else_if = {
limit = { # Only apply reversed effect for the house head to keep the gauge in check
$REVERSE_NON_HOUSE_TARGET$ = yes
$CHARACTER$ = { government_has_flag = government_is_clan }
$CHARACTER$.house ?= {
house_head = $CHARACTER$
}
OR = {
AND = {
exists = $TARGET$.house
NOT = { $CHARACTER$.house = $TARGET$.house }
}
$TARGET$ = { is_lowborn = yes }
}
}
apply_clan_unity_interaction_effect = {
CHARACTER = $CHARACTER$
TARGET = $TARGET$
DESC = $DESC$
VALUE = $VALUE$
VALUE_REVERSED = yes
}
}
}As written in game/common/scripted_effects/00_interaction_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls add_clan_unity_interaction_effect — the first 120 of 165.
Character interactions (102)
- Abandon Hook
- Accuse of Decadence
- Accuse of Violating Sumptuary Law
- ai_make_concubine_interaction
- Appoint as Republican Overseer
- Ask for Dynasty Banner
96 more
- Ask for Military Assistance
- Ask for Pardon
- Ask to Join Military Order
- Ask to Take Monastic Vows
- Ask to Take Vows
- Bargain Fealty
- Blackmail
- Blind
- Break Betrothal
- Break Up With Lover
- Buy Artifact Claim
- Buy Claim
- Castrate Prisoner
- Challenge for Artifact
- Challenge House Head
- Challenge to Board Game
- Challenge to Duel
- Claim Liege Title
- Claim Throne (Scheme)
- Claim Title
- Demand Artifact
- Demand Council Position
- Demand Hostage
- Demand Payment
- Demand Submission
- Demand Surrender in Vassal War
- Denounce
- Designate Sacrifice
- Disinherit
- Disinherit a Child
- Dismiss Concubine
- Dismiss Hook
- Dismiss Hook
- Divorce
- Enforce Truce
- Exchange Hostages
- Excommunicate
- Expose a Secret
- Extol Virtuousness
- Find Concubine
- Find Spouse
- Foment Revolt
- Force to Join Faction
- Force Vote
- Forgive
- Gift Artifact
- Grant Independence
- Grant Pardon
- Grant Vassal
- Hire as Mercenaries
- Host as Honored Guest
- Imprison
- Indebt Guest
- Invite To Activity
- Issue Religious Condemnation
- Join My Side
- Legitimize Bastard (House)
- Lift Excommunication
- Literalist Debate
- Make Concubine
- Make Declaration of Repentance
- Move to Dungeon
- Negotiate Alliance
- Negotiate Release
- Offer Concubine
- Offer Guardianship
- Offer Hostage
- Offer Military Assistance
- Offer to Join War
- Offer Ward
- Pay Ransom
- Propose Alliance
- Protect Vassal
- Purchase Truce
- Reaffirm Oath of True Friendship
- Refute Sacrifice
- Release your Anger
- Remove Co-Ruler
- Remove Guardian
- Request Claim
- Request Divorce
- Request Divorce
- Request Excommunication
- Restore Inheritance
- Reveal As Witch
- Seek Indulgences
- Send Poem
- Send to the Varangian Guard (Dynasty)
- Share Secrets
- Sponsor Inspiration
- Stop Vassal War
- Sun Trial
- Swear Blood Brotherhood
- Swear Oath of True Friendship
- Synergize Friendship
- Trial-by-Combat
Events (18)
- A Proper Position
fp3_clan.8005 - A Questionable Position
fp3_clan.8017 - Bleeding Them Dry
fp3_clan.8008 - Bonds of Faith
fp3_clan.8002 - Bonds of Fear
fp3_clan.8004 - Budding Profits
steward_task.2008
12 more
- Challenge Met: House …
fp3_misc_decisions.0020 - Clan Quarrel
fp3_clan.8001 - Commander Promoted?
marshal_task.0304 - Family Entombed
dungeon_ongoing.0013 - Hammam Havoc
fp3_clan.8016 - marshal_task.0306
- My … Entombed
dungeon_ongoing.0011 - Promised Child
clan.1001 - Promised Child
clan.1002 - Ravaged Tulips
fp3_clan.3000 - Scandalous Scion
fp3_clan.8015 - Set the Scale
fp3_yearly.2021
Source: game/common/scripted_effects/00_interaction_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.