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

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