• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to make item that can store up to 10 stacks at 1 slot and then trigger it to become another item

Status
Not open for further replies.
Level 6
Joined
Aug 31, 2018
Messages
167
I want to create an item (for example coal) so everytime i pick/get coal, to be stacked in 1 inventory slot only. For example i have 2 coal, picking 2 more from the ground = 4 (in 1 slot only, not 4 different slots)

Trigger - I want to trigger the coal, so when i have 10 stacks of coal, it gonna be combined into a different item.

I know how to make the trigger, but i dont know how to make it transform when there are 10 stacks of an item. I know how to make item+item=different item. But dont know how to make that work with 10 stacks, because the trigger gonna work even if you have just 1 stack.
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
I want to create an item (for example coal) so everytime i pick/get coal, to be stacked in 1 inventory slot only. For example i have 2 coal, picking 2 more from the ground = 4 (in 1 slot only, not 4 different slots)
Check out the resource section they have plenty of item stacking systems like this one for example : Item Stacking System
Trigger - I want to trigger the coal, so when i have 10 stacks of coal, it gonna be combined into a different item.
You will likely need a integer variable that increases by 1 every time the hero picks up a type of item until it gets to 10 then remove the old item and replace it with the new one.
 
Status
Not open for further replies.
Top