[Spell] Distraction ability

Status
Not open for further replies.
Level 12
Joined
Jun 15, 2016
Messages
474
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?
 
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.
 
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.
Back
Top