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

Item can be droped: false + Unit Inventory can dropb items = Can drop item..

Status
Not open for further replies.
Level 8
Joined
Sep 30, 2012
Messages
205
Hi i have a certain item that units can't /shouldn't be able to drop upon death.
so the item says it can't be dropped..
But the Unit Inventory says they can..
So they will drop even the undroppable items on death..
Anyone knows how to fix this?

These triggers are also useless..
Items are still considered owned, even if the unit is dead..
and an owned item isn't considered to be in any region.. so they aren't helpful at all..

  • DrpTm
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Lightning Balls
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Item being manipulated) is Owned) Equal to False
        • Then - Actions
          • Item - Remove (Item being manipulated)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Item being manipulated) is in (Entire map)) Equal to True
        • Then - Actions
          • Item - Remove (Item being manipulated)
        • Else - Actions
oh god the title is all messed up sorry...

cheers thx in advance
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,240
How about this
  • Untitled Trigger 118
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • For each (Integer i) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item carried by (Triggering unit) in slot i)) Equal to Claws of Attack +15
            • Then - Actions
              • Item - Remove (Item carried by (Triggering unit) in slot i)
            • Else - Actions
 
Status
Not open for further replies.
Top