HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Buff Detection

06-18-2005, 06:28 PM#1
Tim.
Is there a way to detect when a unit is under the effect of a buff? I thought perhaps the "Unit - A unit Starts the effect of an ability" but I guess it only works for activateable abilities.

Thanks for any input.

- Tim.
06-18-2005, 06:42 PM#2
Elven Ronin
Are you trying to detect bash or something?
06-18-2005, 06:58 PM#3
Azhag
If it is a pissive ability, I haven't seen any way to detect if a passive ability being triggered.
06-18-2005, 07:55 PM#4
Elven Ronin
I think there have been various threads on it. A search might be helpful.
06-18-2005, 09:52 PM#5
Tim.
I ran a search and came up with nothing.

The way I attach my Gun models to the palm of my Hand models is by using an aura. The aura only effects the unit who has the aura. The SFX attached is a Gun model, instead of an aura attached to the Base.

What I need to do is know when certain weapons are equipped. Now I'm well aware of various ways of doing this with variables and booleans. Fine fine. However if it is possible to know when a unit posses an aura, or is under the effect of an aura, I think that might be a little easier for the game to handle.
06-21-2005, 06:33 PM#6
PitzerMike
There should be a "Unit has buff" condition (boolean comparison) in the editor already.

If not, at least "Get unit ability level" should also work with buffcodes and return 1 if the unit has the buff.
06-21-2005, 08:07 PM#7
Tim.
Yes, there is a Buff Comparison condition, however, it only alows checks such as Bash equals Bash or Bash does not equal Bash. How do I alter that to get the effect I want?
06-21-2005, 09:07 PM#8
PitzerMike
As I already said it's a BOOLEAN comparison "Unit - Unit has specific buff"

(not buff comparison)
06-21-2005, 09:38 PM#9
Tim.
Aha, correct. Sorry about that. Thanks for the help, works fine now.