• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

How can hero take 1 item class??

Status
Not open for further replies.
Well you could use triggers. If they pick up one of those items then they will drop the current one they have.

You could do something like this..

Event - Hero picks up an Item.
Condition - Item = Helm or Helm 2 or Helm 3 is True
Action - Drop item Helm 1
Action - Drop item Helm 2..

And so on.. Anyways I doubt that is the most efficient way to do so, but it might work.

  • Helm 1
    • Events
      • Unit - Hero Acquires an item.
    • Conditions
      • ((Hero) has an item of type Helm 1) Equal to True
    • Actions
      • Hero - Drop (Helm2) from (Hero)
      • Hero - Drop (Helm3) from (Hero)
      • Hero - Drop (Helm4) from (Hero)
  • Helm 2
    • Events
      • Unit - Hero Acquires an item.
    • Conditions
      • ((Hero) has an item of type Helm 2) Equal to True
    • Actions
      • Hero - Drop (Helm1) from (Hero)
      • Hero - Drop (Helm3) from (Hero)
      • Hero - Drop (Helm4) from (Hero)
I don't know if it will work but you can try. Just make one for each item.. It probably isn't the most efficient way but it should work.
 
There is no condition of that kind. Here is a trigger:
  • Item Class Check
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-class of (Item carried by (Triggering unit) in slot 1)) Equal to (Item-class of (Item being manipulated))
          • (Item-class of (Item carried by (Triggering unit) in slot 2)) Equal to (Item-class of (Item being manipulated))
          • (Item-class of (Item carried by (Triggering unit) in slot 3)) Equal to (Item-class of (Item being manipulated))
          • (Item-class of (Item carried by (Triggering unit) in slot 4)) Equal to (Item-class of (Item being manipulated))
          • (Item-class of (Item carried by (Triggering unit) in slot 5)) Equal to (Item-class of (Item being manipulated))
          • (Item-class of (Item carried by (Triggering unit) in slot 6)) Equal to (Item-class of (Item being manipulated))
    • Actions
      • Hero - Drop (Item being manipulated) from (Triggering unit)
      • Game - Display to (Player group((Owner of (Triggering unit)))) the text: You allready have an item of that class!
 
Status
Not open for further replies.
Top