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

Changing Teh Generic Attack To A Spell

Status
Not open for further replies.

EdgeOfChaos

E

EdgeOfChaos

Just trigger it

Unit Attacks A Unit
Unit-Type equal to (whatever unit)
Then in the actions, simulate a spell. Deal some damage, make an effect, whatever.
You can also use damage detection so that it happens upon damage if you want.
 
Check out the system I made: /_files/Rogue.w3x

I disabled both attacks. I set it up for both melee and ranged attacks. It uses 'smart' order and checks to see if the target of the order is an enemy within range. Then I order the unit to Stomp. Warstomp is a dummy spell that plays the animation. Then I trigger the damage in the Unit casts and ability trigger. Here I check to find the closest unit and then do damage to that unit. It works just like attack only the unit does nothing unless you click on the enemy.

You can trigger an acquisition range if you like. So a unit comes within 500 of your_hero. If unit is an enemy of your_hero then order your unit to move to enemy unit. Once the unit is with attack range, order your-unit to cast attack ability.
 
Status
Not open for further replies.
Top