Giving buff to a unit without the "cast a spell" part

LearningCode

New Member
Reaction score
24
The kind of buff I'm talking about is purely a cosmetic buff, no effects, just a look.
But I see no native to give a buff to a unit, only remove =/

Is there a way?
 

Hatebreeder

So many apples
Reaction score
381
Removing is.... [ljass]call UnitRemoveAbility('B000')[/ljass] <- Your Buff

try [ljass]call UnitAddAbility('B000')[/ljass]
 

LearningCode

New Member
Reaction score
24
I thought that abilities and buffs were different? ._.
*Enlightened*

Duh..
I can give them a spell based off an aura and affect themselves only -__-

Wait-
That won't work.
I need the buff to last only 10seconds.. =/

Wait-
I can use Add ability and use the rawcode of a buff? o.0
 

Hatebreeder

So many apples
Reaction score
381
I thought that abilities and buffs were different? ._.
*Enlightened*

Duh..
I can give them a spell based off an aura and affect themselves only -__-

Wait-
That won't work.
I need the buff to last only 10seconds.. =/

Wait-
I can use Add ability and use the rawcode of a buff? o.0

No Idea. Since removing buffs is UnitRemoveAbility(...), why wouldn't you be able to add buffs?

Though, you would have to use dynamic timers and unit attaching and what not...
 

LearningCode

New Member
Reaction score
24
It's [ljass]UnitRemoveBuffs or UnitRemoveBuffsEx[/ljass]

UnitRemoveAbility does not work xD
I tried.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
There is actually no way of applying a buff to a unit without casting a spell on it... :(
But you can remove the buff with [ljass]call UnitRemovedAbility(whichBuff)[/ljass], but you might also need to remove the ability which gives the unit the buff...
 

Viikuna

No Marlo no game.
Reaction score
265
ABuff system has this ABuffDisplay library which does what you want to do, by using tornado aura ability.

Check that testmap and see how its done.
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Komaqtion is right. Here's another way to think about it: as Blizzard created them, buffs in WC3 are meant to represent some kind of status affecting a unit, so a buff without having a spell or aura generating it would be sort of pointless. Of course, sometimes us mappers want to do something different, but too bad. :p

Thus, you can remove a buff, but not create one without some ability causing it.
 

LearningCode

New Member
Reaction score
24
Lol,
I got pissed off and gave made the trigger give the unit a modified "roar" ability that does nothing with zero casting time and all that other shit. xD

It works now =x

Give roar
Tell unit to roar
Remove roar

No need for dummy units xD
I'm too lazy to make dummy units and destroy them
 

Komaqtion

You can change this now in User CP.
Reaction score
469
You could also just make an aura with 0 range...
Much easier to handle ;)
 

LearningCode

New Member
Reaction score
24
But I want the effect to last for only 10seconds =/
And it's multiple units at a time, attacking gives the buff..

I don't know how to add so many timers to so many units xD
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top