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

Item system problem

Status
Not open for further replies.
Level 7
Joined
Apr 7, 2009
Messages
241
Just wondering why this trigger
  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • Or - Any (Conditions) are true
      • Conditions
        • (Item-type of (Item being manipulated)) Equal to Iron Helmet
        • (Item-type of (Item being manipulated)) Equal to Steel Helmet
        • (Item-type of (Item being manipulated)) Equal to Mercenary Armor
        • (Item-type of (Item being manipulated)) Equal to Buckler
        • (Item-type of (Item being manipulated)) Equal to Hexagonal Shield
        • (Item-type of (Item being manipulated)) Equal to Halberd
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • (Unit-type of (Hero manipulating item)) Equal to Berserker
      • Then - Actions
        • Do nothing
      • Else - Actions
        • Hero - Drop (Item being manipulated) from (Hero manipulating item)
and this trigger:
  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • Or - Any (Conditions) are true
      • Conditions
        • (Item-type of (Item being manipulated)) Equal to Mercenary Armor
        • (Item-type of (Item being manipulated)) Equal to Wooden Club
        • (Item-type of (Item being manipulated)) Equal to Axe
        • (Item-type of (Item being manipulated)) Equal to Steelsword
        • (Item-type of (Item being manipulated)) Equal to Bloodclaw
        • (Item-type of (Item being manipulated)) Equal to Shady Hat
        • (Item-type of (Item being manipulated)) Equal to Wolf Cap
        • (Item-type of (Item being manipulated)) Equal to Crescent
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • ((Unit-type of (Hero manipulating item)) Equal to Berserker) or ((Unit-type of (Hero manipulating item)) Equal to Bladerunner)
      • Then - Actions
        • Do nothing
      • Else - Actions
        • Hero - Drop (Item being manipulated) from (Hero manipulating item)
works, while this trigger dosnt work at all:
  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • Or - Any (Conditions) are true
      • Conditions
    • (Item-type of (Item being manipulated)) Equal to Wooden Staff
    • (Item-type of (Item being manipulated)) Equal to Magic Wand
    • (Item-type of (Item being manipulated)) Equal to Wizard Hat
    • (Item-type of (Item being manipulated)) Equal to Apprentice Mask
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • Or - Any (Conditions) are true
          • Conditions
            • (Unit-type of (Hero manipulating item)) Equal to Mage
      • Then - Actions
        • Do nothing
      • Else - Actions
        • Hero - Drop (Item being manipulated) from (Hero manipulating item)
That last trigger does nothing at all in my map, everyone can still pick up those items while the other two works perfectly : /
 
Status
Not open for further replies.
Top