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

[Solved] If an unit is killed by artillary (explode) it drops "undropable" item

Level 12
Joined
Oct 28, 2019
Messages
475
If an unit is killed by artillary (explode) it drops "undropable" item

If anyone knows my myth map, units has bounty, its a item that it gains if the unit kills a unit, it cant be dropped, sell etc... all assets in Object editor are right.

But a problem or a bug is happening, if the unit is killed by explosion artilhary the item drops in the ground, im trying making a trigger to remove this item.

Other solution is change "to can´t raise does not decay" this solve the problem, but the corpse is removed from the battleground, and I want it remais there

So this is the trigger Im trying doing
  • Loses Bounty
    • Events
      • Unit - A unit Loses an item
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 3
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 4
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 5
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 1
          • (Item-type of (Last dropped item)) Equal to Bounty Hunter 2
    • Actions
      • Item - Remove (Last dropped item)
any help will be welcome
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,546
If an unit is killed by artillary (explode) it drops "undropable" item
Use (Item being manipulated) not (Last dropped item).
1705625533480.png

See the tip at the bottom "When responding to...", it explains which Event it's used with.
 
Top