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

need help with spell-trigger (taunting guard)

Status
Not open for further replies.
Level 1
Joined
Jun 1, 2007
Messages
1
is there anyway to get the ability Defend(footman) to trigger the taunt ability on use? if possible please post a way to get it working or some other way to get it done world edit only if possible
 
Last edited:
Level 7
Joined
Oct 24, 2006
Messages
110
Here..

If the unit has the taunt ability:
  • Defend and Taunt
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal To Defend
  • Actions
    • Unit - Order (Casting Unit) to Taunt
If you want the unit to taunt without the taunt ability:

  • Defend and Taunt Triggered
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal To Defend
  • Actions
    • Set UnitsNearCaster = (Units within 250.00 of (Position of (Casting Unit))
    • Unit Group - Pick every unit in UnitsNearCaster then do (Actions)
      • Loop - Actions
        • Unit - Order (Picked Unit) to Attack (Casting Unit)
    • Custom Script: call DestroyGroup (udg_UnitsNearCaster)
There are many Taunt abilitys, like the Mountain Giant taunt and Neutral Hostile taunt. Just find it.
 
  • Like
Reactions: Rui
Level 14
Joined
Nov 25, 2004
Messages
1,185
Here..

If the unit has the taunt ability:
  • Defend and Taunt
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal To Defend
  • Actions
    • Unit - Order (Casting Unit) to Taunt
If you want the unit to taunt without the taunt ability:

  • Defend and Taunt Triggered
  • Events
    • Unit - A unit Begins casting an ability
  • Conditions
    • (Ability being cast) Equal To Defend
  • Actions
    • Set UnitsNearCaster = (Units within 250.00 of (Position of (Casting Unit))
    • Unit Group - Pick every unit in UnitsNearCaster then do (Actions)
      • Loop - Actions
        • Unit - Order (Picked Unit) to Attack (Casting Unit)
    • Custom Script: call DestroyGroup (udg_UnitsNearCaster)
There are many Taunt abilitys, like the Mountain Giant taunt and Neutral Hostile taunt. Just find it.

hahaha fool

you did your best to fix the group leak yet you leaked a location :D
 
  • Angry
Reactions: Rui

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
[TRIGGER=Function](Position of (Casting Unit))[/TRIGGER]
This leaks. You must also set a variable to save this location and delete it afterwards, as you did with UnitsNearCaster.

However, the rest of the post is totally right. I have considered giving you some reputation. Thanks for trying to help!


DarkHellFire, please consider introducing yourself to the Hive Workshop Community! You can do so here.
 
Status
Not open for further replies.
Top