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
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
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.
673 posts Sunny Singapore, the lil' red dot joined
#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.
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.
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)
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....