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

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 13
Joined
Nov 4, 2006
Messages
1,239
  • 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,597
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