Warcraft III resources & community, 2003–2006 · archived

Custom Critical

not rated
Submitted by wikidmeTrigger Enhanced471 downloads16 KB
Screenshot
Screenshot
A Short demo Map showing how to trigger passive abilities like bash and critical strike



Does not use `Unit is Attacked` Event.
File Name
CustomCritical.w3x
Author
wikidme
Download

Comments

14
I'll have to check it, may be I made a mistake, but the inverse way would require adding events and mess with unit group, so it may turns things to a bad and laggy situation.
You can make it the inverse way, you detect the damage and if the unit summons an illusion after that you know it is attack
Are you sure about that arcanister?

i tried it and to me it appears the trigger fires before the combat damage is done.

check the new map i uploaded, you will see that UNIT_DAMAGED trigger fires for the first time on the same attack you score a critical hit, meaning the trigger executes before the combat damaged.

if the combat damage was done first, the trigger would display the damage done on the next attack.
I tried to make it work exactly like Critical Strike, and found that it's not that simple. The event you use fires after the target unit takes damage, so creating a trigger to detect the damage taken is no longer possible, and there is no generic event for Unit takes damage.

The orb ability doesn't stack, and shows a disabled icon, so basically you can't have 2 abilities using the orb.

Other than that, this is one of the best way to trigger passive abilities.
sry daelin, i didnt mean to sound harsh :)

anyway, this is not an official wikidme 'spell' submission, it is a submission merely to show people the only way you can detect orb of lightning, and how to 'GET' the attacked unit if you want to make a custom combat ability.

and arcanister's conditions will ensure it wont mess up with any other spell.
Wikidme... I wasn't saying it as a bad thing... i was just trying to point out the problems. Don't be so harsh when people are trying to point out the problems. I understand that I could change it but... I don't want to. It's your spell. You should make your spells as good as possible and with as few bugs as possible. And as for another method, I'm sure there is an don't worry. I will find it if you really meant it.

And for the first stuff... I don't think you cleared it. Explain more accurately please.
Dealin, all those points you make are easy to work around by using extra conditions

1) level of ability for wand of illusion users = blah blah.


2) i know its not critical strike, but im not trying to mimic it exactly, the point here is DETECTION OF ORB OF LIGHTNING. can you think of another method? no thats right, THERE ISNT ANY.
if i wanted to make it EXACTLY like critical ill add extra actions which create unit is damaged event right after this trigger fires.

3) to solve the mirror image crisis, add an extra condition to check the unit-type of the illusions.


I solved those problems:

-Give the custom Item Illusion a custom buff, say, Critical Illusion.

-Change the conditions to:
+Summoned unit is an illusion
+Summoned unit has buff Critical Illusion equal to true

By doing this you no longer mess up with any other ability, and thus, your spell works fine.
Pretty nice but I have some observations to make:

1) What will you do if someone actually uses the Wand of Illusions ability?
2) It isn't exactly Critical Strike because it doesn't do double/triple/quadruple damage
3) It messes up with Mirror Image. So, Mirror Image no longer works. And that is not a good ideas.

Many bugs still to solve. The way you did it is not very good because it messes up with Mirror Image and Illusions. Solve it and then it will be better. Until then, 3/5. Creative though...
If anyone can think of a better to way to 'GET' the target of the wand of illusion, please do tell.

note that in some situations you may have to search in a larger area if your fighting in a small space.
I like the way you used the Item Illusion, it's a good way to detect the target of the critical hit.
Pretty sweet, if you want to have the crit animation play just order him to play Attack2. Also tint the red text a deeper red, this one is too light. Good job.
good !!!!! 4.5/5
ITS THE SECRET SPELL!

dum dum dum........