HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Critical stike

10-17-2004, 10:25 AM#1
mogmiester
Is the critical strike ability cast? I want to know if i could pick it up in a trigger using a unitfinishes casting an ability. If not will i have to run a trigger every time the unit attacks?
10-17-2004, 10:27 AM#2
Dead-Inside
You must simulate Critical Strike with triggers if you want to "detect" it because Critical Strike itself cannot be picked up.
10-17-2004, 05:59 PM#3
Freakazoid
No it isn't ability cast, but you can do it like this in some advanced WE-


- A player owned unit takes damage
-Integer: If taken damage of attacked unit is 4x greater than dice damage of attacking unit.
-Do what you want
10-17-2004, 07:44 PM#4
Dead-Inside
You can actually do that?
10-17-2004, 07:53 PM#5
Psychatog
Quote:
Originally Posted by Dead-Inside
You can actually do that?
If you could get the dice damage of a unit, yeah. But unless I'm mistaken, the only way it could be doing that is by putting that information into constant variables when you save the map.. Is there a dynamic way I'm not seeing?
10-17-2004, 07:55 PM#6
Dead-Inside
Probably not. I've never, ever, heard of this. You could set the custom value of each unit to its die value, though. Or set variables at map start (As you suggested above). That would work but you'd have to do it for all crit-strike users.

Also, I've heard that Damage taken event causes lags and/or bugs.
10-18-2004, 10:27 AM#7
Chryosmere
Sometimes I use the Item Attack Black Arrow item ability and change it to a hero ability or wateva and it has % chances to do the spell so i just add whatever abilities i want and change the % (set at 100% defualt).
10-18-2004, 01:12 PM#8
Freakazoid
Or you can make your own critical strike using triggers. uhh, on every random number of attacks add damage?? o_O
10-18-2004, 03:18 PM#9
-={tWiStÄr}=-
ya. triggering critical strike wouldnt be too hard. and there are functions at wc3search that make the red text appear.
10-24-2004, 10:59 AM#10
mogmiester
I dont actually want to use critical strike, but rather, when it is cast the a dummy unit is created, attacks and is then destroyed, giving the attacking unit a double attack. There can only be one unit that uses this, so theres not a problem about multiple users of the ability
10-24-2004, 04:45 PM#11
-={tWiStÄr}=-
theen you have to trigger in a percent. make a passive ability that does nothing but looks like your critical strike. Then when the unit with critical strike attacks pick a random number between 1 and 100. if it is lower than X, the percent chance to do double damage, then create the dummy unit and all.
10-27-2004, 01:09 PM#12
mogmiester
I cant find a trigger that has "unit attacks", only "a unit is attacked". There will be a lot of units on my map, and this will create massive lag... : (
10-27-2004, 02:25 PM#13
Dead-Inside
Uh, no it wont? Not unless you make it run an action, if you have a condition which immidiatly rejects all non-correct attacks it won't lagg.
10-27-2004, 07:57 PM#14
mogmiester
Quote:
Originally Posted by Dead-Inside
Uh, no it wont? Not unless you make it run an action, if you have a condition which immidiatly rejects all non-correct attacks it won't lagg.
oh, rite. Thx
10-27-2004, 09:32 PM#15
xxxSpikexxx
@Freakazoid: you metioned an advanced WE where you have a players-unit takes damage event ... i needed this so many times. can you tell me where to find this WE or did you just hear about it?