Scripted effect
assign_quirk_effect
assign_quirk_effect = yesgame/common/scripted_effects/00_personal_details_effects.txt, line 24 (302 lines). No parameters.
assign_quirk_effect is a scripted effect in Crusader Kings III, written at line 24 of its file. It takes no parameters: assign_quirk_effect = yes. The game's script calls it in 166 places, among them … in the Crowd (event prelude_events.0160), …: A Helping Hand (event councillor_spouse_stewardship.2004) and …: A Matter of Honor (event councillor_spouse_martial.1003). Patch 1.20.1.2, from game/common/scripted_effects/00_personal_details_effects.txt.
The comment above it in the file
Used to find a permanent quirk for a character Use get_quirk_character_effect for better performence as it also checks if root in an event is an AI!
What it does
Every line of it is script with no tooltip text: the script is below.
The script as written (120 lines of game script)
assign_quirk_effect = {
if = {
limit = {
exists = var:my_quirk
var:my_quirk = flag:fallback
}
remove_variable = my_quirk #to give character's that were assigned the fallback a chance for better things
}
if = {
limit = {
NOT = { exists = var:my_quirk }
}
hidden_effect = {
random_list = {
1 = {
trigger = {
OR = {
has_trait = shy
has_trait = pensive
}
}
set_variable = {
name = my_quirk
value = flag:shy
}
}
1 = {
trigger = { has_trait = arrogant }
set_variable = {
name = my_quirk
value = flag:arrogant
}
}
1 = {
trigger = { has_trait = impatient }
set_variable = {
name = my_quirk
value = flag:impatient
}
}
1 = {
trigger = { has_trait = lustful }
set_variable = {
name = my_quirk
value = flag:lustful
}
}
1 = {
trigger = { has_trait = chaste }
set_variable = {
name = my_quirk
value = flag:chaste
}
}
1 = {
trigger = { has_trait = temperate }
set_variable = {
name = my_quirk
value = flag:temperate
}
}
1 = {
trigger = { has_trait = gluttonous }
set_variable = {
name = my_quirk
value = flag:gluttonous
}
}
1 = {
trigger = { has_trait = greedy }
set_variable = {
name = my_quirk
value = flag:greedy
}
}
1 = {
trigger = {
OR = {
has_trait = diligent
has_trait = bossy
has_trait = curious
}
}
set_variable = {
name = my_quirk
value = flag:diligent
}
}
1 = {
trigger = { has_trait = lazy }
set_variable = {
name = my_quirk
value = flag:lazy
}
}
1 = {
trigger = { has_trait = wrathful }
set_variable = {
name = my_quirk
value = flag:wrathful
}
}
1 = {
trigger = {
OR = {
has_trait = calm
has_trait = pensive
}
}
set_variable = {
name = my_quirk
value = flag:calm
}
}
1 = {
trigger = { has_trait = impatient }
set_variable = {
name = my_quirk
value = flag:impatient
}As written in game/common/scripted_effects/00_personal_details_effects.txt.
The first 120 of its 302 lines; the rest is in game/common/scripted_effects/00_personal_details_effects.txt from line 24.
Where it is used
Every place in common/, events/ and history/ that calls assign_quirk_effect — the first 120 of 166.
Events (120)
- … in the Crowd
prelude_events.0160 - …: A Helping Hand
councillor_spouse_stewardship.2004 - …: A Matter of Honor
councillor_spouse_martial.1003 - …: A Promise's Value
coerce_and_leverage_contribution_ongoing.0020 - …: Aggressive Negotiations
coerce_tributary_ongoing.0010 - …: Broadening Horizons
councillor_spouse_learning.2602
114 more
- …: Closed Roads
coerce_tributary_ongoing.0001 - …: Eligible Bachelorette
councillor_spouse_diplomacy.2001 - …: Glittering Opportunity
councillor_spouse_stewardship.2002 - …: Opportunity for Peace
councillor_spouse_diplomacy.2003 - …: Rumor and Speculation
councillor_spouse_intrigue.1002 - …: Salvation in Gold
coerce_and_leverage_contribution_ongoing.0010 - A Better Contract
vassal.2451 - A Change of Direction
ep3_admin_events.0001 - A Coughing Crown
ach_coronation.0022 - A Devoted Follower
ep3_camp_temperament.0040 - A Fireside Story
culture_tradition_events.2100 - A Helping Hand
prelude_events.0001 - A Knife in the Dark
feast_default.8002 - A Lesson in Lucre
child_personality.7050 - A Liegeless …
tournament_events.9001 - A Little Language
court.9500 - A Mind Alike
imperial_examination_jay.0010 - A New …
tgp_japan_general.9100 - A Plague of Rumors
feast_default_alex.200 - A Road of Opportunity
tgp_dynastic_cycle_events.0040 - A Sneaking Suspicion
adultery.1003 - A Spot of Sin
pam_generic_events.0011 - A Story from the Past
childhood.7500 - A Timely Challenge
az_examination.0008 - A Toast to Virtue
tgp_movement_events.0120 - A Visit from the …
bp2_adult_education.9400 - A Welcome Visitor
tgp_movement_events.0010 - A Word of Advice
tgp_movement_events.0100 - Accusations
adultery.0003 - Addressing the Corruption
hold_court.3060 - Aggravating Attractions
seduce_ongoing.5011 - An Opportunity
peasant_affair.3004 - As … Wills It
vassal.1001 - As … Wills It
vassal.1101 - Belittering
diplomatic_scheme_lifestyle.3201 - Camp Dispute
martial_authority.2040 - Cautious Quarry
bp1_house_feud.0701 - Celebrating Another Culture
hold_court.3090 - Change of Path
tgp_dynastic_cycle_events.0030 - Confession
yearly.3002 - Confirmation: Servant of the Empire
ep3_decisions_event.2010 - Confirmation: Servant of the Empire
ep3_decisions_event.2011 - Confrontation
diplomatic_scheme_lifestyle.3101 - court_chaplain_task.3003
- Disbelieve Mandala: All But a Forgery
disbelieve_mandala_ongoing.0010 - Distant Longing
lover.3204 - Do You Know of …?
prelude_events.0150 - Fabricate Hook: A Matter of Taste
fabricate_hook_ongoing.0004 - Fabricate Hook: A Matter of Taste
fabricate_hook_ongoing.0005 - Fervent Feaster
vassal.2101 - Fit for a …
prelude_events.0090 - For a Bit of Gold...
ep3_landless_admin.1020 - For Our House
tgp_movement_events.0080 - Foremost …
court.8160 - Freedom and Friendliness
befriend_ongoing.6004 - Friendly Exchanges
debate_event.2020 - Glimmering Hope
vassal.2401 - Grace Upon Your Possessions
prelude_events.0130 - Hunger's Bold Hand
tgp_dynastic_cycle_events.0020 - Ill-Advised: Blood on the Bone
nomad_events.0009 - Ill-Advised: Interrogations
nomad_events.0006 - Ill-Advised: The Favor of Heaven
nomad_events.0008 - In … Chambers
seduce_outcome.2301 - In Any Other Court
seduce_outcome.3302 - In My Chambers
seduce_outcome.3301 - In Vino Voluptas
seduce_outcome.3010 - In Your Glorious Light
prelude_events.0140 - Injuria Gratis
rivalry.1019 - Inspiration Funded
fund_inspiration.0011 - Inspiration Funded
fund_inspiration.0031 - Inspiration Funded
fund_inspiration.0051 - Inspiration Funded
fund_inspiration.0081 - Inspiration Funded
fund_inspiration.0091 - Inspiration Funded
fund_inspiration.5011 - Knives at Rest
tgp_movement_events.0160 - Laughs Requested
hold_court.3040 - Learn Language: A Helping Hand
learn_language_ongoing.1140 - Learn Language: A Worn Manual
learn_language_ongoing.1030 - Learn Language: Lexical Love
learn_language_ongoing.1130 - Learn Language: Outside Help
learn_language_ongoing.1020 - learn_commander_trait.1000
- Let's Go Away
lover.1004 - Love Over Yonder
lover.3207 - Miraculous Healing
governor_contract_event.2060 - Monetary Ministrations
vassal.2201 - Monetary Ministrations
vassal.2205 - Morbid Insights
fp3_scholarship.2020 - My … Friend
lover.7001 - My … Paramour
seduce_outcome.2307 - My … Paramour
seduce_outcome.3307 - My … Rival
seduce_ongoing.5001 - My Beloved …
lover.7005 - My Beloved …
seduce_outcome.2306 - My Beloved …
seduce_outcome.2308 - My Beloved …
seduce_outcome.3306 - My Beloved …
seduce_outcome.3308 - My Beloved's Balcony
seduce_ongoing.4104 - My One and Only
lover.0303 - Nefarious Ink
tgp_movement_events.0060 - News From Home
prelude_events.0010 - Nickname: …
lifestyle_nicknames.1000 - Novel Perspectives
court_yearly.8120 - Offering Support
guest_intent_coronation_events.0010 - Old Wounds
tgp_movement_events.0090 - Onwards! Onwards!
tgp_movement_events.0020 - Our …, Pandemonium
ep3_governor_yearly.3100 - Overt Overindulgence
court.9300 - Petition: Second Opinion
petition_liege.0401 - Petition: Second Opinion
petition_liege.0421 - Petitioners
guest_intent_coronation_events.0100 - Privy Matters
seduce_outcome.3020 - Promising Buildings
prelude_events.0100 - Remember Your Friends
prelude_events.0120 - Reprisal
rivalry.1018
Source: game/common/scripted_effects/00_personal_details_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.