• 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.

Respond to attacks with a custom spell

Status
Not open for further replies.
Level 4
Joined
Jan 22, 2005
Messages
62
I need help, yet again -.-. Remind me not to take a few months break off mapping :S lol. Well, my question is HOW can I make a unit respond to an attack with a custom spell?
This is what I have so far:



Events:
Unit - A unit is attacked

Conditions:
And - (All conditions) are true
---Conditions:
---(Unit type of (attacked unit)) equal to *insert name here*
---(Mana of (attacked unit)) equal to or greater than 100

Actions:
???



I want this unit to cast a custom version of a spell. The unit has this in his abilities list. I had a look through "Issue an order targeting 'so and so'" but it's obviously not listed. Any ideas? I hate using the AI editor, is there any way to do this using triggers? If I can't do this, my whole map is ruined. Pity I spent over 1 week on the terrain :(.
 
Level 16
Joined
Oct 30, 2004
Messages
1,277
You order the unit to cast the spell which the custom spell is based on.

Example: You got spell Fire Wrath, you made it by modifieing shockwawe.
Solution: you order your unit to cast shockwawe, and he will cast your custom spell Fire Wrath.
 
Status
Not open for further replies.
Top