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."
},
}
}
how to remove stack size from items
Re: how to remove stack size from items
don't add stackable, stackSize, or multiple to the ItemComponent
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.