Scripted trigger
should_be_naked_trigger
should_be_naked_trigger = yesgame/common/scripted_triggers/00_clothing_triggers.txt, line 1 (25 lines). No parameters.
should_be_naked_trigger is a scripted trigger in Crusader Kings III, written at line 1 of its file. It takes no parameters: should_be_naked_trigger = yes (or no). The game's script calls it in 12 places, among them The Emperor's New Clothes (achievement), A Serf and … … (event tour_travel.1001) and Conversion (event faith_conversion.1001). Patch 1.20.1.2, from game/common/scripted_triggers/00_clothing_triggers.txt.
What it checks
- Is an Adult
One of these
- Has the Modifier: No Raiment
or
Has the Modifier: Court Naturismor
has_character_flag = is_nakedor
Their rite: The rite has Adherents do not wear clothesor
Their culture: The Culture has the Characters of this Culture will be nude Traditionor
If
- Their rite: The rite has Priests and zealous characters do not wear clothes.
Then
One of these
- Government is a Theocratic-type Government
or
has_council_position = councillor_court_chaplainor
Has the Trait: Monkor
Has the Trait: Zealousor
Ai zeal at least 50
• 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 (25 lines of game script)
should_be_naked_trigger = {
# Character must be an adult.
exists = this
is_adult = yes
# Character must have a valid reasion to be naked.
OR = {
has_character_modifier = diplomacy_majesty_4090_no_raiment_modifier # Lunatic event where character goes naked instead of buying new clothes.
has_character_modifier = natural_primitivism_court_naturism_modifier
has_character_flag = is_naked # Special flag used in certain events.
rite = { rite_has_parameter = naked_adherents_active }
culture = { has_cultural_parameter = naked_culture_active }
trigger_if = {
limit = {
rite = { rite_has_parameter = naked_priests_active }
}
OR = {
government_has_flag = government_is_theocracy
has_council_position = councillor_court_chaplain
has_trait = devoted
has_trait = zealous
ai_zeal >= 50
}
}
}
}As written in game/common/scripted_triggers/00_clothing_triggers.txt.
Where it is used
Every place in common/, events/ and history/ that calls should_be_naked_trigger.
Achievements (1)
Events (5)
- A Serf and … …
tour_travel.1001 - Conversion
faith_conversion.1001 - Distaste to Detest
bp1_yearly.7100 - The Naked Truth
pam_secular_faith_events.0041 - Trappings of Majesty
diplomacy_majesty.4090
On actions (the game's own hooks) (1)
- on_game_start_after_lobby
Source: game/common/scripted_triggers/00_clothing_triggers.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.