Frictional Games Forum (read-only)
"GiveItem" does not stack items? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: "GiveItem" does not stack items? (/thread-20743.html)



"GiveItem" does not stack items? - ehovda321 - 03-14-2013

Here is my function:

GiveItem("battery", "item_battery.ent", "battery", "inventory_battery.tga", 1);

The function works, but when the number is ABOVE 1, then the items will not stack- they will appear separately in the inventory. Is there any way to solve this ? Thanks!


RE: "GiveItem" does not stack items? - Adrianis - 03-14-2013

Hmm, is there any particular reason you want the player to get them through the script, and not pick them up from in the environment?


RE: "GiveItem" does not stack items? - Your Computer - 03-14-2013

Whether picked up or given through a script, they shouldn't stack if they're not of an item type that are designed to stack.


RE: "GiveItem" does not stack items? - ingedoom - 03-15-2013

This is not something you can do through your .hps file. You need to snoop around in the .ent file of tinderboxes and eventually open it in model editor. But don't get your hopes up to soon. It shouldn't be easy.. If it's not stricktly neccesary that they stack, then don't let yourself be bothered with it for too long if you can't get it working.