• 🏆 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!

Cant get enemy unit to cast spell based on impale

Status
Not open for further replies.
Level 5
Joined
Feb 1, 2009
Messages
111
so i created a spell, based it on impale, provided enough mana for the enemy unit to cast it but it doesn't cast !

  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacked unit)) Equal to Tauren
    • Actions
      • Unit - Order (Attacked unit) to Undead Crypt Lord - Impale (Position of (Attacking unit))
Also tried:

  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacked unit)) Equal to Tauren
    • Actions
      • Unit - Order (Attacked unit) to Undead Crypt Lord - Impale (Attacked unit)

The text-order string ID is not used by any other custom spell.

Anyone can tell me what I'm missing ?
 
Level 10
Joined
Apr 18, 2009
Messages
576
Change ownership of the impale-casting enemy unit to player 1 or whatever player you're testing the map as. Check if you can manually cast impale and if everything seems normal.
 
Level 13
Joined
Dec 21, 2010
Messages
541
It really wont work lol!!!

you see.. u have ordered the attacked unit to impale itself ..

  • OLD TRIGGER
    • Events
      • Unit - Unit is attacked
    • Conditions
      • (Unit type of (Attacked unit)) Equal to Tauren
    • Actions
      • Unit - Order (Attacked unit) to Undead Crypt Lord - Impale (Attacked unit)
  • NEW TRIGGER
    • Events
      • Unit - Unit is attacked
    • Conditions
      • (Unit type of (Attacked unit)) Equal to Tauren
    • Actions
      • Unit - Order (Attacked unit) to Undead Crypt Lord - Impale (Attacking unit)
Plus the first trigger leaks points so you must create a variable for the point and destroy it..
 
Status
Not open for further replies.
Top