Warcraft III resources & community, 2003–2006 · archived

enchancing bash/ critical skills

18 posts
#1

enchancing bash/ critical skills

hi..i know this wasasked before.. but.. i cant see em..
um.. as for the question.. how do i find if the bash or critical passive ability had just activated.. or finds out if the unit has just bashed or criticaled the enemy unit?.. =p
#2
:?: Im not english but i think u have to improve your english skills first :? . I dont really know what you want...

Did you create a new custom ability with critical and you cant give it to a hero or what?

Or you need a trigger which detects when a hero does a critical strike?

phew...
#3
o.. ok..
.. 8D

i wanna make a new skill based on a bash or critical..
hers an idea.. whenever the hero bashes the unit.. a lightning up on the sky strikes the target..
that only happens if the unit is bashed.. =p

gets?.. 8D
#4
Well now i got it :wink: ...

but sry i got no answer for ya. i tried several things but i didnt find an event (unit does animation >critical-animation<)
or a condition where u can say (>if unit does animation - then do.... >).

I know that wasnt an answer for you but just a hint for those who are familiar to JASS or so. perhaps they can help you.

sry :(
#5
events-
unit is attacked
conditions-
random integar equal or less than 15
events-
create dummy
order last created unit to lightning attacked unit.

the random integar is between 1 and 100
(unit is attacked) isnt so good because you can keep clicking "s" (hotkey for stop) and it will still work. there is a jass version which is more effective, but you got to find it out yourself.

Personal Note: please dont EVER put "=p" again. if you feel awkward saying something, then dont say it at all.
#6
qwertyevents-
unit is attacked
conditions-
random integar equal or less than 15
events-
create dummy
order last created unit to lightning attacked unit.



hm... but then the special effect doesnt fit with the animation. He wanted an effect only WHEN the critical strike fires.
#7
A unit starts the effect of an ability can detect when a unit is bashed or receives a critical strike as far as i know.

-Rui
#8
well.. the nit starts the effect of an ability didnt work.. u sure about it rui?. =p

or i made some mistakes.. 8D
#9
PHEW....

i finally got a detector for ya :).

1) you have to make your custom spell based from a spell that does criticals AND deals a buff to enemies.
(i took the human-dwarfen-hero-bash). Customize your ability like you want but DONT set effect duration below 0.2 seconds. well, that was the preparation...

2) make a trigger like following:

CRITICAL DETECTOR

Events
    Unit - A unit Is attacked
Conditions
Actions
    Wait 0.10 seconds
    If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        If - Conditions
            ((Attacked unit) has buff <<the buff from your custom critical ability>> (Pause)) Equal to True
        Then - Actions
            Game - Display to (All players) the text: The unit has done a critical strike
        Else - Actions


Well this is easy if you know it but took me long time to figure it out...
I hope this could help ya. :wink:
#10
Don't use event unit ATTACKED.
Use event unit DAMAGED, because attacked event even registers attacked event if the unit was "going" to attack, so didn't really attack or even if the unit misses(I think)
#11
um.. one ques.. the critical strike doesnt have any buffs..
#12
Shadowstalkerum.. one ques.. the critical strike doesnt have any buffs..


well, as i said above use not the ability critical strike >> use for example the human-dwarfen-hero-bash ability which u customize for you.

This ability has a buff and u can customize it so, that is the same like critical strike. Then it works fine - i tested it already. But remember not to set the duration below 0.2 sec cz then the trigger dont work correct....
#13
Sunny_D
qwertyevents-
unit is attacked
conditions-
random integar equal or less than 15
events-
create dummy
order last created unit to lightning attacked unit.



hm... but then the special effect doesnt fit with the animation. He wanted an effect only WHEN the critical strike fires.


add an event

event-
play (unit)'s (attack, slam) animation
#14
qwertyadd an event

event-play (unit)'s (attack, slam) animation


well, isnt that an action not an event? because i cant find it in events list...
#15
well.. it kinda work.. for bash..
but.. sometimes.. it doesnt'..
well.. so far.. this is the best..

still.. i hope we could find better results..
i'm also trying..