Scripted effect · Wards and Wardens files
adopt_cultural_fashion_culture_effect
adopt_cultural_fashion_culture_effect = { CULTURE = … }game/common/scripted_effects/03_bp2_scripted_effects.txt, line 149 (28 lines). Parameters: $CULTURE$.
adopt_cultural_fashion_culture_effect is a scripted effect in Crusader Kings III, in the Wards and Wardens files, written at line 149 of its file. A call passes 1 parameter: CULTURE. The game's script calls it in 1 place, among them adopt_cultural_fashion_effect (scripted effect). Its body carries 2 texts of the game's own for the player. Patch 1.20.1.2, from game/common/scripted_effects/03_bp2_scripted_effects.txt.
What it does
If
- Their culture:
NOT = { has_clothing_gfx = $CULTURE$_clothing_gfx }
scope:advanced_culture:has_clothing_gfx = $CULTURE$_clothing_gfx
Then
- If opinion from primary_heir at least 50 › Their heir: Some of your subjects will dress like …, for as long as you or your current Primary Heir rule
- Otherwise: Some of your subjects will dress like … for as long as you rule
- Their culture:
• 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 (28 lines of game script)
adopt_cultural_fashion_culture_effect = {
if = {
limit = {
culture = {
NOT = { has_clothing_gfx = $CULTURE$_clothing_gfx }
}
scope:advanced_culture = { has_clothing_gfx = $CULTURE$_clothing_gfx }
}
set_variable = {
name = adopted_cultural_fashion
value = flag:$CULTURE$
}
if = {
limit = {
exists = primary_heir
reverse_opinion = { target = primary_heir value >= 50 }
}
primary_heir ?= {
set_variable = {
name = adopted_cultural_fashion
value = flag:$CULTURE$
}
custom_tooltip = bp2_yearly.6070.change_clothes_heir
}
}
else = { custom_tooltip = bp2_yearly.6070.change_clothes }
}
}As written in game/common/scripted_effects/03_bp2_scripted_effects.txt.
Where it is used
Every place in common/, events/ and history/ that calls adopt_cultural_fashion_culture_effect.
Scripted effects (1)
Source: game/common/scripted_effects/03_bp2_scripted_effects.txt and every file of common/, events/ and history/ that calls it, Crusader Kings III 1.20.1.2.