how to remove stack size from items
Posted: Fri Mar 06, 2015 9:21 pm
How do I make the folliwing item non-stackable?
I keep changing the code, but nothing changes ingame and the coins are still stackable. I treid removing stackzise and stackable and multiple, but even when I remove these the coins still appear with numbers and can be stacked -- I dont understand what I am doing wrong?
defineObject{
name = "coin_silver",
baseObject = "iron_key",
components = {
{
class = "Model",
model = "mod_assets/models/coin_silver.fbx",
},
{
class ="Item",
uiName = "Silver coin",
gfxAtlas = "mod_assets/textures/coins.tga",
gfxIndex = 2,
stackable = 1,
stackSize = 1,
multiple = 1,
weight = 0.1,
traits = { "coin" },
description = "A shiny coin."
},
}
}
I keep changing the code, but nothing changes ingame and the coins are still stackable. I treid removing stackzise and stackable and multiple, but even when I remove these the coins still appear with numbers and can be stacked -- I dont understand what I am doing wrong?
defineObject{
name = "coin_silver",
baseObject = "iron_key",
components = {
{
class = "Model",
model = "mod_assets/models/coin_silver.fbx",
},
{
class ="Item",
uiName = "Silver coin",
gfxAtlas = "mod_assets/textures/coins.tga",
gfxIndex = 2,
stackable = 1,
stackSize = 1,
multiple = 1,
weight = 0.1,
traits = { "coin" },
description = "A shiny coin."
},
}
}