I want to add an animation when a passive procs.

Demerzel2

New Member
Reaction score
0
I'm new to this, but how can I add a special effect when a passive procures? For example, I want to add the Incinerate buff special effect to my hero's hand when a critical strike takes place.
 
Then your critical hit, bash or whatever it is have to be triggered. Are you using GUI? Get a damage detection system, trigger your critical strike and suddenly its very easy to add the special effect :eek:
 
if you are new to this the most recommended thing is to forget about this.
there is no easy solution to what you are trying. even more experienced map makers will have their difficulty making something like this only for a critical strike because it will need at least a proper damage detection system.
and adding such stuff, or even creating one yourself, isnt for beginners and doing this only for a single ability, and furthermore only for a little eye candy of a single ability is not just overkill but pretty much overkill.
 
still needs a good damage detection system.
should also use a decent random number system since the editors build in random is not known to be the brightest star on the nightsky.
 
still needs a good damage detection system.

Why so ? Ever heard of the "A unit is attacked" event ? Unless there is a unit with major evasion chance or something, it shouldn't matter too much.

should also use a decent random number system since the editors build in random is not known to be the brightest star on the nightsky.

It's not that bad...
 
first of all it IS bad. period.

and the "unit is attacked" event is incredibly unreliable for such an ability like critical strike.

the major problem of that event is that it doesnt fire when the unit is "hitting" its target but, as the event says, when its "attacking". that means it fires before any damage is dealt.
this gives 2 problems.
1). we do not know how much damage the attack will deal since it hasnt landed so far and we cannot use any event response for it.

2). for every units whichs "combat - attack point" value is not equal to 0.00 this event can glitch if the player is mass issueing his unit to attack a target. because the event will fire each time the unit is "trying" to hit the enemy, a.k.a. "attacking". and you can order to attack => event firing, before attack is done order to attack => event is firing.
this can be done without waiting for any attack cooldown which gives us incredible attack speed + critical strike = imbalanced hero of hell.

the damage detection system is vital for a custom critical strike ability, it cannot be replaced by anything.
at least not effectively.
 
Accname said:
we do not know how much damage the attack will deal since it hasnt landed so far and we cannot use any event response for it.

Ashlebede said:
Constant damage factor




Accname said:
for every units whichs "combat - attack point" value is not equal to 0.00 this event can glitch if the player is mass issueing his unit to attack a target. because the event will fire each time the unit is "trying" to hit the enemy, a.k.a. "attacking". and you can order to attack => event firing, before attack is done order to attack => event is firing.
this can be done without waiting for any attack cooldown which gives us incredible attack speed + critical strike = imbalanced hero of hell.

That one does depend on your hero. If the hero already has a fast attack speed and/or the damage is not major, this doesn't matter so much. But I have to admit that is a lot of conditions. I'm just saying it can be done if those conditions are met without reaching imbalance.

And how is the random number generation so bad ? I feel like you're telling me "It's bad because it is"... elaborate pl0x.

Oh, and your "damage system" which sounds so complex to use can be summarized as follows :

Trigger:
  • //
    • Events
      • Unit - A unit Enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Add the event ((Triggering unit) Takes damage) to {Other Trigger} <gen>
 
yes what you did was a damage detection system. a leaking one. which isnt something we should encourage here.
a decently made damage detection system cannot be made with GUI since there are no GUI functions which will not result in memory leaks.
you need to use jass for a leak-less damage detection system.


and i doubt you could call an ability critical strike if it would deal constant damage (not a constant damage factor since a factor is something you multiply some other value, like the actual damage dealt, with.)

and the problem with the build in random function is that its not really random. of course there isnt a "real" random number in any computer programm but several people of the wc3 map making community made "random number" systems which allow for "more real" random numbers then the wc3 random function. basically since we are talking about numbers generated by a computer you should just swap every "random" in this text with unpredictable since that is what a "random" function of a computer should return and what the function of wc3 doesnt most of its time.

at least for me the random functions seems to give out thrice or four times in a row the same result. and this doesnt happen rarely.
 
Try playing with the Art fields, especially the Art - Special field, although I think that effects the target, not the caster... but give it a go anyway. I know for pulverize, if you add an Art - Special, it will create that model on any enemy units caught by the effect :p
 
special attack animation is not easy to do.
its complex event of attack and damage and order.
also its possible only for melee units.

you must decide to do special attack BEFORE this attack happen, you cant change animation in progress (it will be async with damage and looks wierd).

if your critical factor not variable - add spellbook hidden critical strike, you can add 100% critical for event like kill, or keep hidden critical as part of other ability.

if you using variable (like agi% or health) you shoud calculate chance for next attack, to prevent abusing ('stop' spam or something like this) every attack shoud have damage window, if no damage deal in this window, critical factor will reset.

Attack event run animation and window
Damage event run damage and chances

If unit not actually attacks, it wont get chance to score critical.

Othewise players will stop spam and if critical scored - perform actual attack. (its easily monitored by animation)
 
@DioD: Thanks, I've decided to drop the idea :). I've replaced the theme of the ability to something simpler, and it also fits the hero more.
@da1nOnlyEd: Yeah I did notice that, but it only works for abilities whose base ability also has some sort of animation. Thanks though :).
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    +1
  • Varine Varine:
    I've been really into this
  • Varine Varine:
    It's a musical retelling of The Odyssey
  • Varine Varine:
    Also if you want mixed drinks without alcohol, there's a handful of non-alcoholic 'spirits'. Ritual Zero and Free Spirit are the two brands I've tried and they are alright. They don't have a TON of options, but they have some gin and whiskey alternatives that are fun to play with.
  • Varine Varine:
    I got a couple bottles to make some mixy drinks around holidays when I mostly want to drink, they aren't exact replacements but they are surprisingly close.
  • Varine Varine:
    I ended up with some hop water things that I really like instead for when I want to feel like I'm participating
  • Varine Varine:
    I just got moved to unsupervised probation, so I can get away with drinking a bit now. I technically am not supposed to, but I don't think I get checked anymore. I really want to smoke weed but it scares me
  • The Helper The Helper:
    Happy Wednesday! I am not feeling it today, my teeth are bothering me, or the fragments that were left behind are coming up and it is extra painful today. Don't ever let them tell you that getting full dental implants is easy. They have to pull all your teeth to do those and apparently they are not very good at getting all the teeth out all the time.
    +1
  • The Helper The Helper:
    That is true with Dentures too. I am taking the day off and working from home. The big difference is though, I am not drinking anymore so I have a nice tea and coffee regimen set up :)
  • Varine Varine:
    I wish i had a 3D scanner
  • Varine Varine:
    That would make what I'm doing SO much easier
  • Varine Varine:
    I guess I could just take a picture of it and then use that as a reference. I have a circuit board with some weird holes I can't get measured right
  • Varine Varine:
    Oh I got a Klipper mod for my big printer! It comes with a bunch of parts and I don't totally understand what it does but apparently it's way better than Marlin, which is I think what it currently runs
    +1
  • The Helper The Helper:
    Nice!
  • Varine Varine:
    You're people in Florida safe? The only couple I know are safe but I think they evacuated.
  • The Helper The Helper:
    They are without power but safe. Flood damage and stuff alot of tornados hit east Florida. No fatalities or injuries to any of my people that I know of
  • The Helper The Helper:
    They have been through all the Florida hurricanes they are like me I have been through every texas hurricane for the last 50 years.
  • The Helper The Helper:
    Never evacuated.
  • The Helper The Helper:
    Check out this bad ass Chicken Noodle soup recipe - https://www.thehelper.net/threads/crack-chicken-noodle-soup.196687/
  • The Helper The Helper:
    Happy Saturday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top