• 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.

[Trigger] Apply Buff?

Status
Not open for further replies.
Level 3
Joined
Nov 22, 2007
Messages
38
I made an ability for my map called Adrenaline. Upon use, it makes the triggering unit move faster for a few seconds, it applies it's Adrenaline buff.

Now, I also made another buff, I want it to come in at a certain time, but i don't know how to do that. Preferably, I want the buff to come in when the Adrenaline buff disappears.

The buff I want to come in is called "Exhaustion".

Here's what I have so far:
  • Unit - A unit starts the effect of an ability
  • (Ability being cast) equal to Adrenaline
  • Wait 7.60 Seconds
The wait time is how long the Adrenaline effect lasts.

Please help me out here, feel free to come up with your own if you see mine is redundant.
I am in a pickle here ! :grin:

Regards,
Ryku650
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
You need to get a dummy caster unit (usually invisible (locust ability) with no shadow and no sounds) to cast a dummy spell (an ability which does nothing) with the buff (duration set to buff duration).

Normally this is done by firstly making a unit.
Secondly getting the unit to cast the dummy ability (could be bloodlust for example) on the unit who wants to receive the buff.
Finally adding an expiration timer to the dummy unit so it does not leak.

Little stumbling blocks people often have. Firstly the dummy needs to be a ward or building so it has no need to rotate to face the target when casting. Secondly the animation value for the cast backwards swing etc needs to be set to 0 so it is instant cast. Finally make sure the dummy ability has 0 cooldown, 0 mana cost and 0 casting delay and hits the target instantly.

In blizzard's upcomming game Starcraft II, you can directly add buffs with proper interface appearnce via triggers and they support variable degrees of stacking.
 
Status
Not open for further replies.
Top