I would like to create a custom portrait property to add more random customization (forehead tattoos) to the new ethnicity I made.
There is a .dds file with 5 frames that contains all the tattoos.
From the CK2 wiki on portrait modding (Link), I understood that to create a custom property, one just needs to add the follwoing:
To the portrait definitions file:
To the interface\portrait_properties\custom_properties.txt:
Did everything exactly this way, yet only the 1st frame ever shows up. Sometimes, no frames show up, or tattoos switch at random intervals for no reason. Where is the mistake?
There is a .dds file with 5 frames that contains all the tattoos.
From the CK2 wiki on portrait modding (Link), I understood that to create a custom property, one just needs to add the follwoing:
To the portrait definitions file:
spriteType = {
name = "GFX_tattoosF_male"
texturefile = "gfx\\characters\\Atlantian\\forehead_tattoos_male.dds"
noOfFrames = 5
norefcount = yes
}
To the interface\portrait_properties\custom_properties.txt:
Where factor is a random chance a particular frame of a tattoo gets assigned to the character's portrait permanently.50 = { #New property number
0 = {
factor = 20
}
1 = {
factor = 20
}
2 = {
factor = 20
}
3 = {
factor = 20
}
4 = {
factor = 20
}
}
Did everything exactly this way, yet only the 1st frame ever shows up. Sometimes, no frames show up, or tattoos switch at random intervals for no reason. Where is the mistake?