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

Unit die give buff

Status
Not open for further replies.
Level 15
Joined
Jul 9, 2008
Messages
1,552
there is multiple ways of doing things with WE if you want specifics on how to do what you're asking you need to be more specific.



well there is this way where u create a dummy unit to cast your ability that gives the buff u want on the killing unit.

  • Events
    • Unit - A unit Dies
  • Conditions
    • (Owner of (Triggering unit)) Equal to Neutral Hostile
  • Actions
    • Set Temp_loc = (Position of (Triggering unit))
    • Unit - Create 1 DUMMY for (Owner of (Killing unit)) at Temp_loc facing Default building facing degrees
    • Unit - Add YOUR BUFF ABILITY to (Last created unit)
    • Unit - Order (Last created unit) to CAST YOUR BUFF ABILITY ON (Killing unit)
    • Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
    • Custom script: call RemoveLocation(udg_Temp_loc)
also remember not every 1 plays every game. so explain what these abilitys/buffs do in the future
 
Level 13
Joined
Oct 12, 2016
Messages
769
You could also make a custom powerup rune (found in the "item" section of the object editor) and change the ability on the rune to an ability with the buff you want.
You want a damage increase? Make a rune with the "Roar" ability, then make the item drop from the thing you kill.
If you spawn the unit, you can make the powerup item spawn after it dies at its location.
 
Status
Not open for further replies.
Top