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

How to set a level requirement on an item

Status
Not open for further replies.
Level 3
Joined
Apr 9, 2008
Messages
42
How do you make a lvl requirement on an item so the item requires a specific lvl e.g You need to be lvl 2 to equip the item.
and make it require a class eg.. ranger, warrior.
 
Last edited:
Level 14
Joined
Nov 4, 2006
Messages
1,241
  • Events
    • Unit - unit acquires an item
  • Conditions
    • level of triggering unit is equal to or less then 2
    • item-type of item being manipulated is equal to your item
  • Actions
    • drop item <- don't remember excactly but i think you can find it
you need a trigger for every item you have
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
I don't think that's possible without triggers or jass. You could use the item's HP or Level or custom value to indicate its level and make a trigger:

Whenever a hero picks up an item check if the hero's level is less than the item's chosen value, if true then drop the item from the inventory.

(Items also have a field I didn't check what is that for, it's called 'Stats - Level(Unlassified). You might want to use this instead of the latter fields.)
 
Last edited:
Level 11
Joined
Dec 11, 2007
Messages
888
if i understand it well.. you could use only 1 trigger:

  • Events:
    • Unit - A unit acquires an item
  • Conditions:
    • And - All Conditions are true
      • Hero level of triggering unit less than 2 equal to true
    • Or - Any conditions are true
      • Item-type of item being manipulated equal to item 1
      • Item-type of item being manipulated equal to item 2
      • and so on for each item you want
  • Actions:
    • Item - Drop item being manipulated at Hero's feet
 
Status
Not open for further replies.
Top