• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Get your art tools and paintbrushes ready and enter Hive's 34th Texturing Contest: Void! Click here to enter!

Attack ground?

Status
Not open for further replies.
Level 12
Joined
Dec 2, 2016
Messages
733
This tower is unique, it can only do X damage to lets say a certain hero while against a certain type of ground unit it can do 5x the base damage.

I triggered it

  • Wall tower frenchman damage
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Unit-type of (Attacking unit)) Equal to Wall Tower
          • (Unit-type of (Triggering unit)) Equal to Frenchman
        • Then - Actions
          • Unit - Set life of (Triggering unit) to ((Percentage life of (Triggering unit)) - 1000.00)
        • Else - Actions
This works if the tower targets the unit via the attack command. But this tower has a ground exploding ability: Gyazo - b4d22a7aac83117ffd7e5efdeb030173.gif

This trigger doesn't seem to work with that ability. How can I make this work?
 
Level 12
Joined
Dec 2, 2016
Messages
733
  • On AOE
    • Events
      • Game - AOEDamageEvent becomes Equal to 1.00
    • Conditions
    • Actions
      • Set AOEString = ((Name of DamageEventSource) + has dealt AOE damage to )
      • Unit Group - Pick every unit in DamageEventAOEGroup and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Picked unit)) Equal to Frenchman
            • Then - Actions
              • Unit - Kill (Picked unit)
            • Else - Actions
          • Set AOEString = (AOEString + ((Name of (Picked unit)) + , ))
      • Game - Display to (All players) the text: ((Substring(AOEString, 1, ((Length of AOEString) - 2))) + .)
I have this, this code works in the test map that comes with the engine. But when I transferred it to my map it no longer works.
 
Status
Not open for further replies.
Top