how to remove stack size from items

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
kelly1111
Posts: 349
Joined: Sun Jan 20, 2013 6:28 pm

how to remove stack size from items

Post by kelly1111 »

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."
},
}
}
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: how to remove stack size from items

Post by minmay »

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.
Post Reply