About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Stackable items in Inventory
Author Message
Ogniok Offline
Member

Post: #1
Stackable items in Inventory
Hi.

In my game i need to allow players to stack items in their inventory. Currently, I'm using inventory from Esenthel tutorial. Is there any way to change this that it will allow users to stack only certain types of items?

Thanks for any help, because i don't have any ideas for it. ;]

And sorry for my english. ;]
04-21-2011 07:36 PM
Find all posts by this user Quote this message in a reply
rndbit Offline
Member

Post: #2
RE: Stackable items in Inventory
there is. good luck.
04-21-2011 08:41 PM
Find all posts by this user Quote this message in a reply
Ogniok Offline
Member

Post: #3
RE: Stackable items in Inventory
Barthap's idea was to point items in list to items stacks. Currently, I'm writing new inventory class which will handle stackable items and many more. ;]
04-21-2011 10:06 PM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #4
RE: Stackable items in Inventory
Why making a list? just check how many items you have and set a counter for that item. There is no need to keep all item objects in memory..

There is always evil somewhere, you just have to look for it properly.
04-21-2011 10:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply