• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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