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

3 same item combined for an item how?

Status
Not open for further replies.
Level 3
Joined
Feb 14, 2011
Messages
43
  • Events
    • Unit - A unit Acquires an item
  • Conditions
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • ((Hero manipulating item) has an item of type Staff of Silence) Equal to True
        • (Custom value of (Item carried by (Hero manipulating item) of type Staff of Silence)) Equal to 3
      • Then - Actions
        • Item - Remove (Item carried by (Hero manipulating item) of type Staff of Silence)
        • Item - Remove (Item carried by (Hero manipulating item) of type Staff of Silence)
        • Item - Remove (Item carried by (Hero manipulating item) of type Staff of Silence)
        • Hero - Create OMG item and give it to (Triggering unit)
      • Else - Actions
how to make this? any solution?
 
  • Tr
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • Custom script: local integer i = 0
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item carried by (Triggering unit) in slot (Integer A))) Equal to Wand of the Wind
            • Then - Actions
              • Custom script: set i = i + 1
            • Else - Actions
      • Custom script: if i == 3 then
      • For each (Integer B) from 1 to 3, do (Actions)
        • Loop - Actions
          • Hero - Drop (Item carried by (Triggering unit) of type Wand of the Wind) from (Triggering unit)
          • Item - Set life of (Last dropped item) to 0.00
          • Item - Remove (Last dropped item)
      • Hero - Create Wand of Mana Stealing and give it to (Triggering unit)
      • Custom script: endif
 
Status
Not open for further replies.
Top