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

abilities/spells

Status
Not open for further replies.
Level 4
Joined
Oct 13, 2009
Messages
43
guys, how can I make percentage based ability like -"20% that normal attack will create chain lightning, hex or entangle attacked unit" using ability editor?

or I must use triggers to do that? and if yes-show me how please. ty. plz:ogre_hurrhurr:
 
Level 25
Joined
Jul 10, 2006
Messages
3,315
Using triggers.

Event - unit is attacked
Condition - level of ability for attacking unit
Actions:
If (random percentage) less than or equal to 20, do actions:
Create 1 dummy unit (dont forget to clean memory leaks here)
Add Chain Lightning to last created unit
Order last created unit to chain lightning triggering unit
Add a 1.00 sec expiration timer to last created unit
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
the way to do it with object editor is taking orb of lightning(new) and giving it chance to proc and spell being chain lightning.
However you can only have 1 working orb effect at a unit, any other orb effects wont work
Also this will not proc from smart order(attack ground) but you must directly attack one unit
 
@ruler - I hope you realize that it is spammable if you use unit is attacked... if a person is fast enough to press buttons and the unit has a hexing ability triggered using that + long range attack, you could just spam the stop button while you unit is auto-attacking and you'd probably land a hex in less than a second...


either do it using edo's orb of lightning suggestion or use ruler's idea but use a damage detection system...
 
Status
Not open for further replies.
Top