• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Trigger] Required level on items

Not open for further replies.
Level 15
Aug 18, 2007
ok, ive searched on both wc3campaings and THW but i couldn find any answers.
What i need is a code that makes heroes unable to pick up an item whichs "level" is higher than the heroes.
The trigger works, but theres only up to 8 item levels, and i need 75!
ive tryed whit health but that didnt go very well sience the
  • Item - Make (item) invulnerable
didnt worked, an heroes could damage the "level" of the item down.
does anyone got a solution? a way to increase max level on items or a trigger that simply makes this?

Thanks in advance

PS: it shouldn have a set unit type blah blah blah trigger in it, whit all the systems i got, i have to type values in nearly 5 times already, it takes 10 min to make an item!
Level 29
Jul 29, 2007
Since nothing in the object editor seems to work, just use variables like this

  • Untitled Trigger 001
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Item[1] = Claws of Attack +15
      • Set Item[2] = Crown of Kings +5
      • Set Item[3] = Kelen's Dagger of Escape
      • Set Item[4] = Mask of Death
      • Set Level[1] = 2
      • Set Level[2] = 7
      • Set Level[3] = 1
      • Set Level[4] = 4
  • Untitled Trigger 004
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • For each (Integer A) from 1 to {Number of your items}, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • And - All (Conditions) are true
                • Conditions
                  • (Item-type of (Item being manipulated)) Equal to Item[(Integer A)]
                  • Level[(Integer A)] Less than or equal to (Hero level of (Triggering unit))
            • Then - Actions
            • Else - Actions
              • Hero - Drop (Item being manipulated) from (Triggering unit)
              • Game - Display to (All players) the text: This item level is too high for you !
Not open for further replies.