I made a mod that reworks how expertise traits work. A part of that mod is the specialist trait.
It is supposed to do nothing as it's effect is implemented in the expertise traits. I edited the file for the intelligent species trait and put it in the "expertiseRework\gfx\interface\icons\traits\leader_trait_icons" folder as "leader_trait_specialist.dds". Ingame the icon looks like this:
The dds file looks like this in paint.net:
Obviously this is not what I intended to do. I created a sprite file in "expertiseRework\gfx\interface". The content of that file is
How can I make the icon show up ingame?
Code:
leader_trait_specialist = {
leader_trait_type = veteran
custom_tooltip = leader_trait_specialist_tooltip
inline_script = {
script = trait/icon
CLASS = scientist
ICON = "GFX_leader_trait_specialist"
RARITY = veteran
COUNCIL = yes
TIER = 1
}
leader_potential_add = {
has_paragon_dlc = yes
has_trait = subclass_scientist_councilor
}
leader_class = { scientist }
ai_weight = 100
selectable_weight = {
weight = @subclass_trait_weight
inline_script = paragon/council_weight_mult
}
}
leader_trait_specialist_2 = {
leader_trait_type = veteran
custom_tooltip = leader_trait_specialist_2_tooltip
replace_traits = { "leader_trait_specialist" }
inline_script = {
script = trait/icon
CLASS = scientist
ICON = "GFX_leader_trait_specialist"
RARITY = veteran
COUNCIL = yes
TIER = 2
}
leader_class = { scientist }
ai_weight = 100
}
leader_trait_specialist_3 = {
leader_trait_type = veteran
custom_tooltip = leader_trait_specialist_3_tooltip
replace_traits = { "leader_trait_specialist_2" }
inline_script = {
script = trait/icon
CLASS = scientist
ICON = "GFX_leader_trait_specialist"
RARITY = veteran
COUNCIL = yes
TIER = 3
}
leader_class = { scientist }
ai_weight = 100
}
It is supposed to do nothing as it's effect is implemented in the expertise traits. I edited the file for the intelligent species trait and put it in the "expertiseRework\gfx\interface\icons\traits\leader_trait_icons" folder as "leader_trait_specialist.dds". Ingame the icon looks like this:


Code:
spriteTypes = {
spriteType = {
name = "GFX_leader_trait_specialist"
texturefile = "gfx/interface/icons/traits/leader_traits/leader_trait_specialist.dds"
}
}