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

[Trigger] Required level on items

Status
Not open for further replies.
Level 15
Joined
Aug 18, 2007
Messages
1,390
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
/Lord_of_Sausage

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
Joined
Jul 29, 2007
Messages
5,174
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 !
 
Status
Not open for further replies.
Top