• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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