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

impale + blind spell

Status
Not open for further replies.
Level 4
Joined
Aug 7, 2010
Messages
77
Hi all, i need help on triggers with my spell.

Basically i am creating a spell such that if the unit is being hit by impale, the affected unit will be blind(miss) shortly. Any idea how do i bind the skill "curse"(miss) with "impale"?

Any form of help will be appreciated. Thanks in advance.
 
Level 8
Joined
Oct 26, 2008
Messages
387
Sure but i dont know how much you know of triggers.. so i will give you a solution and you tell me where you understand it or not.

Create a dummy ability and a dummy unit.
The dummy ability should be the "Blind" ability, which when cast on the unit it will cause it to miss. Then create a dummy unit and give to that unit the dummy ability!
When you cast impale, make a trigger to pick every unit in range from point matching conditions! Which should be like this,

Unit - Pick every unit in (Your Imaple Range) from (unit posisition of unit) matching,
(matching unit) has specific buff (Imaple) and do actions
Add (picked unit) in (your unit group)

Pick every unit in (your unit group)
Create 1 dummy unit at position of picked unit
Order last created unit to Dummy Ability picked unit
Give a 2 second expiration timer to last created unit

I believe this is helpfull, if not, tell me!

Edit: ofc you will have to eradicate point/unit group leaks
 
^ won't always work... Impale is a unit/ground target spell and it hits multiple targets... if you want to be able to curse all those who have been impaled without a problem, well you could make a triggered impale,

or use a custom buff for the impale stun, then create a trigger which picks all units that have that buff and make a dummy caster use the curse spell on them

@Maestros - that area check won't always work too, because most impale is not instant... unless he uses an instant impale, it won't work completely...
 
Level 5
Joined
Jan 5, 2012
Messages
134
What about making the trigger wait 1.5 second or something so they get stunned first. Then the blind can happen after the stun.
 
Level 8
Joined
Oct 26, 2008
Messages
387
Maybe but its gonna work faster, more efficient and far more error-free... :)

and he'll gonna need locals too if you use waits, if you want it to be MUI...

unit - unit starts the effect of an ability

ability being cast is equal to impale

wait 0,5 seconds

pick every unit in range from position of (triggering unit) matching (matching unit has Impale buff)
do stuff

I believe that is MUI because it uses (triggering unit)
 
Level 8
Joined
Oct 26, 2008
Messages
387
oh yeah... but really inefficient compared to using timed loops...


Efficiecny, in this forum, adopts a sense, i cannot understand..


and oh, please tell him to use a custom impale buff unless he's sure that he won't be using any other impale on that map...

Uhm.. use a custom impale buff unless you're sure that you won't be using any other impale on that map.... :grin::grin:
 
efficiency while you're running the scripts meaning when playing the map... because of course, writing wise, it might seem more efficient to write the wait based one because its shorter and easier...

anyway, I was browsing for an impale system and it seems there is none (unless you include the burrowstrike one)... so I might make one in the future for the reason that it will enable you to multi-impale a unit, which is not possible with the normal impale... plus of course the capability to create custom actions to be done to impaled units...
 
Level 8
Joined
Oct 26, 2008
Messages
387
efficiency while you're running the scripts meaning when playing the map... because of course, writing wise, it might seem more efficient to write the wait based one because its shorter and easier...

anyway, I was browsing for an impale system and it seems there is none (unless you include the burrowstrike one)... so I might make one in the future for the reason that it will enable you to multi-impale a unit, which is not possible with the normal impale...

That is because, the impaled unit, whilst airborne is invulnerable.. i tried everything i know of, to make it vulnerable... but i believe the only way to what you want is to do it manually... which will require extreme percission and great skills! Go for it :p
 
Level 8
Joined
Oct 26, 2008
Messages
387
not really, its actually for the whole impale duration, from the flying part to the stun part... you cannot reimpale a unit from the time its hit by impale until the time that the stun wears off...

also, Pause unit + Impale = Super funny disaster

Indeed, also dont try,
  • Unit - Make unit Invulnerable
  • Unit - Name unit Vulnerable
  • Unit - Remove Buff of Type Impale
  • Unit - Remove All Buffs
 
Status
Not open for further replies.
Top