Warcraft III resources & community, 2003–2006 · archived

Help with a taunt ability

5 posts
#1

Help with a taunt ability

I trying to make a taunt ability but somehow it did not work. Below is two trigger I do.

Hatred Taunt
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Hatred
(Unit-type of (Casting unit)) Equal to Magtheridon
Actions
Set caster = (Casting unit)
Trigger - Turn on Hatred pull <gen>
Wait 4.00 seconds
Trigger - Turn off Hatred pull <gen>

Hatred pull
Events
Time - Every 0.25 seconds of game time
Conditions
(Unit-type of (Casting unit)) Equal to Magtheridon
Actions
Unit Group - Pick every unit in (Units within 300.00 of (Position of caster) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an ally of (Owner of Caster)) Equal to False) and (((Matching unit) has buff Hatred ) Equal to True)))) and do (Actions)
Loop - Actions
Set caster = (Casting unit)
Unit - Order (Picked unit) to Attack Caster

Could anyone help me as the unit with the Hatred buff don't seems to attack my hero, and somehow if i use the hero <GEN>viarable it works.
#2
so what exactly is going wrong here?
#3
The problem is when i activate the trigger the unit with the buff don't seems to attack my hero.
#4
ahhh.

dont use loop actions just need to order matching unit to attack caster.
#5
Your periodic event is what's messed up. Take out who the casting unit is and just make the units attack yuor hero directly. Instead of setting casting unit to your hero, set your hero as a global variable and just keep that varaible (like at instalation or whenever he's defined, set him = HeroVariable. That way you just have to amke referance to him that way.)

I have something similar to this. Keep the rest (such as checking for buff etc.) and it should work. Your conditions might also be wrong on the actual tirgger...dunno.