• 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] Distraction ability

Status
Not open for further replies.
Level 12
Joined
Jun 15, 2016
Messages
472
I'm trying to create an ability that will distract enemy units, i.e cause them to go to a predetermined location (think MGS guards walking around saying "what was that noise?!"), and I'm in a bit of a rut.
The ability itself is based on flamestrike, so that the player will be able to see the range of units affected, and so far I've tried achieving it by:

1. Ordering units to spell location (the units instead instantly attack the caster).
2. Creating a dummy caster which casts taunt (units will not try getting close to a taunting unit with locust or invulnerability). Making the dummy caster a flier also didn't work because the units which are supposed to be distracted can attack it (even though they're specified to attack ground units only), maybe something with hover movement? I dunno.

Any ideas?
 
Level 21
Joined
Aug 13, 2011
Messages
739
You could use a dummy silence to disable their attacks when affected by the spell. After they're silenced, your initial ideas to send them to the distraction point should work without any issues.

And when you want the distraction to be over, you could forcibly remove the buff. Obviously you could remove the buff under other circumstances like taking damage or coming within range of another unit.
 
Level 30
Joined
Aug 29, 2012
Messages
1,385
You can also use a custom Permanent invisibility ability with a -1 duration, it has a unique field that allows/prevents auto acquisition of targets. Add this to affected units and they won't go for the caster.
 
Level 9
Joined
Sep 20, 2015
Messages
385
Well for that kind of ability i would base it of Healing guard, you can choose the spawned unit and with tirggers you can make all around units to go there.

Create a custom unit and make it not able to move. Go under Movement speed and set it to 0.

Create a unit variable named TempDistraction. Then make these triggers

Trigger Distraction

Events
A unit generate a summoned unit
Contidions
Summoned unit-type is equal to YourCustomunit
Actions
Set TempDistraction = Summoned unit
Unit Gruop - Pick every units in ( Units within x range of Position of TempDistraction and do Actions
Actions
Order picked unit to move to position of TempDistracion



You can make the custom unit have no model so yo can add some other effect.
 
Status
Not open for further replies.
Top