• 🏆 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!

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