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!
Is there any way to do it? Is it possible to replace the generic attack? I want to replace it with a spell,and I want the unit that contains the spell will use it automatically. Thanks in advance
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.
Attack A Unit has a bit of bug. Because it detects when the unit received an order to attack. Meaning,if I Stop the unit,then the unit attacks again. That would make the trigger detect continuosly and the spell will be cast multiple times.
I'll try the damage detection you recommend. Thanks x)
Base the spell off Slow with zero effects and use a dummy to execute it in triggers/jass.
As for hiding the ability, make a spellbook (item ability), add your spell to the spell list and disable it using Player - Disable YOURSPELLBOOK for [PLAYER]
That way you can set the event to ...starts the effect of an ability.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.