• 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!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Why doesn't this trigger work?

Status
Not open for further replies.
Level 11
Joined
Aug 6, 2009
Messages
697
I want the unit to use the ability when ordered to attack a unit, or when the legionary is attacking.
I based the Hasta Throw off of the Firebolt spell.
  • Hasta Throw
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Unit-type of (Ordered unit)) Equal to XI Legionary
    • Actions
      • Set HastaTarget = (Target unit of issued order)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(attack))
          • (Mana of (Ordered unit)) Greater than 0.00
        • Then - Actions
          • Unit - Order (Ordered unit) to Neutral - Firebolt HastaTarget
        • Else - Actions
  • Hasta Throw2
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to XI Legionary
      • ((Attacked unit) belongs to an ally of (Owner of (Attacking unit))) Equal to False
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than 0.00
        • Then - Actions
          • Unit - Order (Triggering unit) to Neutral - Firebolt (Attacked unit)
        • Else - Actions
 
Level 11
Joined
Aug 6, 2009
Messages
697
Ok well, it still isn't working, if you have any ideas post them, I will have to deal with this tomorrow it's 1 AM.

  • Hasta Throw
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Unit-type of (Ordered unit)) Equal to XI Legionary
    • Actions
      • Set HastaTarget = (Target unit of issued order)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(smart))
          • (Mana of (Ordered unit)) Greater than 0.00
          • Or - Any (Conditions) are true
            • Conditions
              • (Issued order) Equal to (Order(attack))
        • Then - Actions
          • Unit - Order (Ordered unit) to Neutral - Firebolt HastaTarget
        • Else - Actions
  • Hasta Throw2
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacking unit)) Equal to XI Legionary
      • ((Attacked unit) belongs to an ally of (Owner of (Attacking unit))) Equal to False
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than 0.00
        • Then - Actions
          • Unit - Order (Attacking unit) to Neutral - Firebolt (Attacked unit)
        • Else - Actions
 
Status
Not open for further replies.
Top