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

Stacks items

Status
Not open for further replies.
Level 5
Joined
Jan 13, 2008
Messages
96
Hi...Can anyone help me with a ``map`` which is in it the trigger with stacks items...i want to stacks pot and requirement items...like stones and iron ore :)
 
Level 12
Joined
Apr 16, 2010
Messages
584
It will stack 'em too. You'll just need to move the items you want to stack to category Charged in OE.

Edit: try not to double-post. Use the
edit.gif
button below.
 
Level 5
Joined
Jan 13, 2008
Messages
96
i`m sory about that :(... i made it...i have 1 more problem, if you can help me. I want to create an item with a spel(i know this)...but if i have 10 stacks same items...like 10 claws of attack...when I use my spell takes only 5 of 10... can i do this?
 
You mean removal of 5 charges per use? If so,
  • It
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-class of (Item being manipulated)) Equal to Charged
    • Actions
      • Item - Set charges remaining in (Item being manipulated) to ((Charges remaining in (Item being manipulated)) - 4)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Charges remaining in (Item being manipulated)) Equal to 0
        • Then - Actions
          • Hero - Drop (Item being manipulated) from (Triggering unit)
          • Item - Set life of (Last dropped item) to 0.00
          • Item - Remove (Last dropped item)
        • Else - Actions
 
Status
Not open for further replies.
Top