• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Item collection

Status
Not open for further replies.
Level 7
Joined
Dec 5, 2013
Messages
280
How to build system where unit is unlocked if player collects certain amount of items? Also what item stacks? I want item to stack for an example 10 times and then it can be converted into item which can be used to summon special unit.
 
Level 7
Joined
Dec 5, 2013
Messages
280
But how to make unit stack?

Items should be inactive until there are 10 items and then player click the 10 item stack and unit is summoned if unit is in summoning area.
 
Level 11
Joined
Nov 15, 2007
Messages
781
Add charges to the item via triggers whenever a new one is picked up, and remove the newly acquired item. Ideally you have two items - one that is used instantly when acquired, and one that you add to the unit's inventory through a trigger when the used instantly item is used. Otherwise your unit won't be able to pick up another charge if its inventory is full.
 
Status
Not open for further replies.
Top