Scripted effect
set_nickname_effect
set_nickname_effect = { NICKNAME = … }game/common/scripted_effects/00_nickname_effects.txt, line 1 (15 lines). Parameters: $NICKNAME$.
set_nickname_effect is a scripted effect in Crusader Kings III, written at line 1 of its file. A call passes 1 parameter: NICKNAME. The game's script calls it in 58 places, among them Sell Trivial Titles (decision), … The Nāga's Victim (event pilgrimage_seasia.700) and …: A Higher Power (event councillor_spouse_learning.2301). Patch 1.20.1.2, from game/common/scripted_effects/00_nickname_effects.txt.
What it does
If
Not all of these
has_bad_nickname = yesis_bad_nickname = $NICKNAME$
One of these
NOT = { has_any_nickname = yes }or
has_bad_nickname = yes
Then
- Gains the Nickname '…'
• 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 (15 lines of game script)
set_nickname_effect = {
if = {
limit = {
NAND = { # I cannot already have a bad nickname if the nickname I'm getting is also bad
has_bad_nickname = yes
is_bad_nickname = $NICKNAME$
}
OR = { # Has no nickname or a bad nickname
NOT = { has_any_nickname = yes }
has_bad_nickname = yes
}
}
give_nickname = $NICKNAME$
}
}As written in game/common/scripted_effects/00_nickname_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls set_nickname_effect.
Decisions (1)
Events (47)
- … The Nāga's Victim
pilgrimage_seasia.700 - …: A Higher Power
councillor_spouse_learning.2301 - …: The High Ground
ep2_tournament_events.1013 - A Strange Sailor
ep3_laamps.8080 - All Is Fair?
martial_strategy.2020 - All the Riches of Empire
ep3_frankokratia_events.0041
41 more
- Altering The Deal
stewardship_duty.4040 - Altering The Deal
stewardship_duty.4043 - Broken Dreams
martial_strategy.2022 - Broken Oath: …
coronation_events.0150 - Charlemagne's Dream
middle_europe_decisions.0005 - combat_event.2001
- councillor_spouse_learning.1602
- Exquisite Suffering
intrigue_dread.4002 - Exquisite Suffering
intrigue_dread.4006 - Exquisite Suffering
intrigue_dread.4007 - From Rome to Rome
roman_restoration.0150 - General Gossip
martial_strategy.1051 - Holy and Roman
roman_restoration.0003 - Ill-Advised: Interrogations
nomad_events.0006 - Justinian's Dream Realized
ep3_roman_restoration.0100 - Learn Language: The … that Cares
learn_language_ongoing.1100 - My Secret Exposed!
secrets.0004 - Naming Convention
lifestyle_nicknames.0001 - Naming Convention
lifestyle_nicknames.0002 - Pillow Talk
intrigue_temptation.2201 - Sacred Lineage
major_decisions.0100 - sell_titles.0004
- Silence is Golden
lifestyle_nicknames.0007 - Silence is Golden
lifestyle_nicknames.0008 - Speech is Silver
lifestyle_nicknames.0003 - Speech is Silver
lifestyle_nicknames.0004 - Study Rite: The … …
study_faith_ongoing.1100 - Sword of Reason
lifestyle_nicknames.0005 - Sword of Reason
lifestyle_nicknames.0006 - The Assembly of the Estates
middle_europe_decisions.0010 - The Dawn of a New Era
roman_restoration.0001 - The Domesday Book
stewardship_domain_special.1590 - The Empire of Heaven
middle_east_decisions.0001 - The Forest of Corpses
intrigue_dread.4201 - The Kingdom of Canarias
iberia_north_africa.9101 - The Kingdom of Portugal
iberia_north_africa.0001 - The Mad …
bp2_yearly.2025 - The Pen is Mightier
lifestyle_nicknames.0009 - The Pen is Mightier
lifestyle_nicknames.0010 - The Promised Land
middle_east_decisions.0005 - Trust Me
bp3_journey.1800
Scripted effects (7)
Scripted character templates (3)
- culture_defender_knight_template
- foreign_architect_template
- foreign_scholar_template
Source: game/common/scripted_effects/00_nickname_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.