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

Spell

Status
Not open for further replies.
Level 4
Joined
Aug 6, 2004
Messages
52
I'm interesting in making a spell where if the hero is attacked (passive %) it will move the unit to the hero and deal 2x the heros main attribute, i dont know how to do this so some help would be grand.
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
You can move the unit instantly through (move unit... lala) and order the (Attacked Unit) to Damage (Attacking Unit) for ((Main Attribute)*2). How to check the main attribute... Hmm, to get the Main Attribute if you give it to only one hero you will know which it is. Else, check what the hero's type is and depending on it, change the Attribute.
 
Status
Not open for further replies.
Top