This is a thread for searching help to achieve the static portraits's clothes changing function,and provide different clothes for different pops just like vanilla game.
I attempt to create an "empty" entity with PdxMeshPortrait, PdxMeshPortraitClothes, and PdxMeshPortraitHair shader,which means that everyone can add static portraits to it as clothes.
Howerver, it is hard for me to finish the job over code in Maya.
Is there anyone could help me to create an "empty" entity, so that everyone could use static portraits with appearence changing like vanilla game?
Many thanks.
ps. I made an example for test below to download.
And the picture shows that I addapt this idea with vanilla human female entity.(Obversly unusable)
The core code is below.
################
portraits = {
turumiku_osaka_female_01 = {
entity = "portrait_human_female_entity" #replace with an "empty" entity.
clothes_selector = "turumiku_osaka_female_01_clothes"
attachment_selector = "turumiku_osaka_female_01_piercing"
greeting_sound = "turumiku_osaka_female_01_greetings"
custom_attachment_label = "PIERCING"
}
}
turumiku_osaka_female_01_clothes = {
default = "gfx/models/portraits/turumiku/osaka_female_01.png"
game_setup = {
default = "gfx/models/portraits/turumiku/osaka_female_01.png"
}
species = {
default = "gfx/models/portraits/turumiku/osaka_female_01.png"
}
pop = {
default = "gfx/models/portraits/turumiku/osaka_female_01_suit.png"
}
leader = {
default = "gfx/models/portraits/turumiku/osaka_female_01_suit.png"
"gfx/models/portraits/turumiku/osaka_female_01_china.png" = { leader_class = scientist }
}
ruler = {
default = "gfx/models/portraits/turumiku/osaka_female_01_suit.png"
"gfx/models/portraits/turumiku/osaka_female_01_china.png" = { owner = { has_generic_government = yes NOT = { has_authority = auth_imperial } } }
}
}
I attempt to create an "empty" entity with PdxMeshPortrait, PdxMeshPortraitClothes, and PdxMeshPortraitHair shader,which means that everyone can add static portraits to it as clothes.
Howerver, it is hard for me to finish the job over code in Maya.
Is there anyone could help me to create an "empty" entity, so that everyone could use static portraits with appearence changing like vanilla game?
Many thanks.
ps. I made an example for test below to download.
And the picture shows that I addapt this idea with vanilla human female entity.(Obversly unusable)
The core code is below.
################
portraits = {
turumiku_osaka_female_01 = {
entity = "portrait_human_female_entity" #replace with an "empty" entity.
clothes_selector = "turumiku_osaka_female_01_clothes"
attachment_selector = "turumiku_osaka_female_01_piercing"
greeting_sound = "turumiku_osaka_female_01_greetings"
custom_attachment_label = "PIERCING"
}
}
turumiku_osaka_female_01_clothes = {
default = "gfx/models/portraits/turumiku/osaka_female_01.png"
game_setup = {
default = "gfx/models/portraits/turumiku/osaka_female_01.png"
}
species = {
default = "gfx/models/portraits/turumiku/osaka_female_01.png"
}
pop = {
default = "gfx/models/portraits/turumiku/osaka_female_01_suit.png"
}
leader = {
default = "gfx/models/portraits/turumiku/osaka_female_01_suit.png"
"gfx/models/portraits/turumiku/osaka_female_01_china.png" = { leader_class = scientist }
}
ruler = {
default = "gfx/models/portraits/turumiku/osaka_female_01_suit.png"
"gfx/models/portraits/turumiku/osaka_female_01_china.png" = { owner = { has_generic_government = yes NOT = { has_authority = auth_imperial } } }
}
}