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!
I want to make item that have ability that have 20% chance casting crushing wave on attacked unit. I dont know what condition to use for hero manipulating item
If you're okay with it being an orb ability, there is the Orb of Slow ability, which can be customised to have crushing wave as a spell effect. (Might post pics later showing the ability field)
If you're comfortable with using a damage engine you could also trigger it that way, and even add a visible passive cooldown for it.
Using the event "A unit is Attacked" is exploitable as an attacking unit can animation-cancel their attacks - the event fires when an attack is initiated, not when an attack connects to the victim.
If you're okay with it being an orb ability, there is the Orb of Slow ability, which can be customised to have crushing wave as a spell effect. (Might post pics later showing the ability field)
Is there no way to set like: if attacking unit have that item than if random number between 1 and 100 is below 20 than create dummy on position of attacking unit that will cast crushing wave
If you're comfortable with using a damage engine you could also trigger it that way, and even add a visible passive cooldown for it.
Using the event "A unit is Attacked" is exploitable as an attacking unit can animation-cancel their attacks - the event fires when an attack is initiated, not when an attack connects to the victim.
I make this and it worked, but dont know is it proper way
Unit is attacked
If then else
If condition
attacking unit has an item x
Then
Random number between 1 and 100 is below 20
Than create dummy and other
Yeah that works, but as I said earlier, you can abuse that by spamming "S" on the attacking unit. Maybe that doesn't matter for you, but if you're making a multiplayer map people will abuse it. If that is a concern you'll need a damage engine and different triggers.
Yeah that works, but as I said earlier, you can abuse that by spamming "S" on the attacking unit. Maybe that doesn't matter for you, but if you're making a multiplayer map people will abuse it. If that is a concern you'll need a damage engine and different triggers.
It's also bug prone; you have to issue an attack command for it to work as one would expect (if a unit just smart attacks the effect will never fire), plus being an orb effect it has stacking issues and can also crash the game if the wielding unit has an artillery attack. Better to trigger it yourself so you can learn how to make other kinds of procs (e.g. % of effect on being struck).
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.