.

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
im pretty sure there is an event, a unit recieves a buff, make a condition that the triggering unit has the stun buff, and remove that stun buff
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
idk no editor here, thought there was one, you could use a damage system and every time a unit takes damage if its got that buff remove it
 

merlinds

Member
Reaction score
15
mmm there is no event for a unit recives a buff, and the damage system will only work for the debuffs that does damage.
i belive that the only way is checking that every time a unit finishes the effect of an ability. Make a list of all abilitys that have a debuff and if the ability being cast is in that list you remove all debuff from the target of the ability being cast.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
read the OP please merlinds, the ability does damage :)
 

merlinds

Member
Reaction score
15
I Quote:
"I'm making a passive ability which when learned, it removes all debuffs (stun, purge, etc) from the unit. For example, if you casted storm bolt on this unit, the unit will still take damage from the stormbolt but will no be stunned from it."
Purge does not do damage, he only give an example with storm bolt.
 

Dirac

22710180
Reaction score
147
Merlinds i don't see your point, you stated something entirely irrelevant, plus the example on storm bolt makes pretty clear that abilities that place buffs will do the damage, but the buff will be removed anyways.

Sadly there's no such thing as "unit gains buff" event, if you want your ability to be passive or have a specific duration you would have to do the periodic timer that removes all harmful buffs.
Another way to make things more accurate is removing the harmful buffs from the unit when it takes damage because most (not every) buff is applied that way.
 

tommerbob

Minecraft. :D
Reaction score
110
Maybe you could make your passive ability more interesting, instead of it being constant, make it proc-based. So there is like a 50% chance whenever the hero takes damage to remove all negative buffs, or something like that. :thup:
 

merlinds

Member
Reaction score
15
Dirac, i was answering to gfreak, using a damage detect system will not work because some debuffs does not deal damage.
And again, it is not "accurate" if it does not applies to all debuffs.
So, please read before posting.
And in my opinion the most accurated way is to check when the effect of the ability starts. It will take more work, but will work for every debuff.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top