DId they change something with the way traits work? I defined the traits in a file which is inside the traits folder inside the commons folder. I then put the 24 x 24 pixel icons into trraits folder inside the gfx folder. Finally, I made a new file in the interface folder called maiden_traits and put the following code in
Code:
spriteTypes = {
spriteType = {
name = "GFX_trait_maiden"
texturefile = "gfx/traits/maiden.tga”
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_trait_unfaithful"
texturefile = "gfx/traits/unfaithful.tga"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_trait_flowered"
texturefile = "gfx/traits/flowered.tga"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_trait_unflowered"
texturefile = "gfx/traits/unflowered.tga"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_trait_vigrinity_promised"
texturefile = "gfx/traits/vigrinity_promised.tga"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
}
I also made an alternative version where the trait icons were dds files instead of tga and put this in there
Code:
spriteTypes = {
spriteType = {
name = "GFX_trait_maiden"
texturefile = "gfx/traits/maiden.dds”
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_trait_unfaithful"
texturefile = "gfx/traits/unfaithful.dds"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_trait_flowered"
texturefile = "gfx/traits/flowered.dds"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_trait_unflowered"
texturefile = "gfx/traits/unflowered.dds"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
spriteType = {
name = "GFX_trait_vigrinity_promised"
texturefile = "gfx/traits/vigrinity_promised.dds"
noOfFrames = 1
norefcount = yes
effectFile = "gfx/FX/buttonstate.lua"
}
}
I have no clue, why, but there is no icon in game, but when I try the command add_trait maiden, it says added trait maiden and then nothing but a blank space. Any ideas
EDIT: Nevermind, it fixed itself. I have no clue why though...