HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Buff problems

04-05-2008, 02:40 AM#1
dabest2503
I want to make a trigger which does <Actions> if a unit has <buff>.

It could be something like when a unit is attacked and attacking unit has <buff>, do <actions>.

But I can't find out how to do so.
04-05-2008, 02:46 AM#2
Malf
Trigger:
Trigger
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
((Attacking unit) has buff <YourBuff>) Equal to True
Collapse Actions
<Do your actions>
04-05-2008, 04:47 AM#3
dabest2503
So, what I did was this.
Trigger:
lol aura test
Collapse Events
Unit - A unit Is attacked
Collapse Conditions
((Attacking unit) has buff LoL Aura ) Equal to True
Collapse Actions
Unit - Add Ghost to (Attacking unit)
Unit - Add Permanent Invisibility to (Attacking unit)
When a unit doesnt have the buff anymore, I cant seem to remove it. How do you remove the Ghost and Permanent Invisibility when the unit doesn't have the buff anymore?

And I can't seem to add the 2 abilities to a unit even if the unit doesn't do anything.
04-06-2008, 03:50 PM#4
[VDM]Amn
you're kinda trying to make the attacking unit dissapear for a while
if that's what u want, you can use the cyclone ability on the attacker.
just remove the effects.
04-06-2008, 08:22 PM#5
Anitarf
I'd say my ABuff system is the answer to all your problems, but I get the feeling I say that too often. Besides, you need to know some jass in order to use it.

Buffs are a pain to trigger, though. To try using only GUI... well, maybe it can be done painlessly enough, depending on what you want to do exactly; a description of the ability you need this for would be helpful.
04-07-2008, 04:01 AM#6
Hydrolisk
He probably wants whenever a unit with the buff attacks, it gets complete invisibility for a short time.

I guess you would have to use a local Timer and a local unit variable too... Although, that would require some JASS knowledge.

(Shoot, I really need to learn JASS some time soon.)
04-07-2008, 09:08 AM#7
Gorman
Quote:
Originally Posted by Anitarf
I'd say my ABuff system is the answer to all your problems, but I get the feeling I say that too often.

Yes.

But it does fix everything.