• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How to add attack type condition?

Level 11
Joined
Jul 22, 2015
Messages
223
I was trying to get the "Hero" attack type but i didnt know the reference to do that instead it will summon so many footman even not "Hero-attack type"
1764384807165.png
 
As Herly said, you need Bribe's DDS (Damage Detection System).

I'm going to assume you're on the latest WC3 patch since the latest version of Bribe's DDS will require that. Be sure to enable JassHelper and vJass first in your Trigger Editor before installing this mod.
 
You used the wrong condition
  • Damage
    • Events
      • Unit - A unit Takes damage
    • Conditions
      • (Damage From Normal Attack) Equal to True
      • (Unit: (Damage source)'s Weapon Integer Field: Attack Attack Type ('ua1t') at Index:0) Equal to 6
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Position of (Triggering unit)) facing Default building facing degrees
This works without need for a DDS, the damage type check is an integer condition and 6 is hero type

1764411770485.png
 
Back
Top