Quick question about portrait modding: how can I apply the Clothing Override mechanism from M&M to courtiers not in a society?
I was creating a new Republic Government, and I used it to remove those out of place Renaissance hats from the characters of my government, only this works fine for rulers but not for courtiers (i.e. they still look like late 13th century Italian dudes). Apparently it doesn't recognize a courtier of a republic as valid for the "portrait_government = " scope.
This is the code I had written, with an added "liege =" scope, but it still does not work for courtiers. Again, the sprites show up fine on Rulers, so it seems it is not a problem of missing files.
Code:
portraitType = {
name = "PORTRAIT_clothing_roman_republic_male"
effectFile = "gfx/FX/portrait.lua"
portrait_is_female = no
weight = {
additive_modifier = {
value = 100000
portrait_clothing = yes
OR = {
portrait_government = merchant_republic_government
liege = {
portrait_government = merchant_republic_government
}
}
}
}
layer = {
"GFX_senate_male_clothes_behind:c0"
"GFX_empty:c1"
"GFX_senate_male_clothes:c2"
"GFX_empty:c3"
"GFX_empty:c4"
"GFX_empty:c5"
}
headgear_that_hides_hair = {}
allow_property_values = {
5 = {
0 = {
always = yes
}
}
}
}