• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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