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

Custom critical strike

Status
Not open for further replies.
Level 3
Joined
May 3, 2004
Messages
46
How to make a custom critical strike that does, for instance, knockback on hit?

There are two issues I'm having here,
The first is what spell to base it on? Make a dummy attribute-bonus ability, use critical strike(uhm, when it procs it shows numbers, me don't want) or bash(who unfortunately stuns). Best choice I think would be the dummy-spell unless there is a better way?

Second issue is, how do I 'detect' when it procs? Of course I could base it of a trigger that rolls a number and check whether it procs or not, but is there a better way? And even if there are no better ways I'd like to get some hints or examples. Thank you :)

Also, I am pretty sure there are other threads about this, but I searched and did not find any so either I'm blind or just a crappy 'searcher'.
 
Level 3
Joined
May 3, 2004
Messages
46
you can still make from bash and set the stun to minimum time+knockback as a trigger

But wouldn't that still stun the unit, interrupting it?
I know it's my fault for using knockback as an example, but what if you only want to damage the target or give it another debuff?


And how do one best detect abilities like Bash? When combining them with triggers.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
There is no way to detect a standart ability's proc (like evasion/critical/bash etc).
The only way to do such a thing is to recreate the ability:
Events:
Unit is attacked
Conditions:
Attacking Unit has Custom Critical
Random integer between 1-100 is less than 30
Actions
Cause Attacking unit to damage Triggering unit for 20 damage of blah blah

That is just an example.
Note that the unit is attacked event fires when the attack begins, not when it is finished. Meaning if you spam Stop, you will get a lot of procs.
There are systems to detect the actual attack(i.e. Attack detection engine, on attack templete). Just search for them in wc3campaigns.net.
Reproducing the effect of the real critical strike is another issue.
 
Status
Not open for further replies.
Top