• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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!
 
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.
Back
Top