• 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.

Can i make unit to have an inventory like a hero?

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
Can i make it so that if i give artifact to a unit say from a hero i can not take it back?
  • Example
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Artifact
      • ((Triggering unit) is A Hero) Equal to False
    • Actions
      • Item - Make (Item being manipulated) Undroppable
This doesn't care how or from whom you received the item, just that you received it.

If you want advanced control over your Items I suggest learning how to use this:
You could track the "last owner" of an Item in a Unit array variable. Or just track if it was a Hero or not in a Boolean array variable.
 
Last edited:
Top