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

How to add a buff to a unit!

Status
Not open for further replies.
Level 6
Joined
Feb 5, 2012
Messages
1,685
Just simple create a trigger with an even of EVENT- EVERY 0.05 SECONDS

Then add the unit to a group...or you can directly create a UNIT-VARIABLE...set Unit=Your unit..

Add the IF THEN ELSE.....IF REAL(MANA OF Your Unit is greater that or equal to (Mana Required)

Unit- Create a dummy to the position of Your Unit
Unit - Add Cripple to the dummy

Set the cripple slow percentage to AS-0% MS-0% DAMAGE REDUCTION-0 Targets Allowed AllieS,HERO,GROUND,AIR,FRIEND

Cripple for me can create a buff without hurting your unit..

So you can also change the buff of Cripple to your want...

But the trigger is really depend on where you will use it...
 
Level 7
Joined
Sep 9, 2007
Messages
253
you are creating the dummy unit at position of triggering uint. you need to be using the position of picked unit isntead. Otherwise it should work although there are a few leaks which could be cleaned up.

Also you can show us your trigger as text in the forum. You can copy your trigger as text: above the Events in your triger is the name "Hunger" right click on that and go to "copy as text". Then you can paste all that text in the forums....
 
Status
Not open for further replies.
Top