HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Detecting Bash?

03-18-2004, 10:26 PM#1
Lami
Is there a way to detect a combat Passive ability? like bash, if the units uses bash i want it to run a trigger, if you know how to do this please post, im going to try and work on it some more, =/

Thanks for help!
03-18-2004, 10:34 PM#2
ThyFlame
There isn't... you have to use triggers and a dummy spell.
03-18-2004, 10:41 PM#3
Anitarf
There have been some threads like this recently, use the search function, thankyouverymuch.

The way of detecting bash would be storing the attacked unit in a variable whenever your hero attacked it and have a trigger check if that unit has the stun buff on it a few times per second. When that happens, do what you want, and clear the unit variable. This system has some flaws, because when the unit is stunned and is attacked again, there is no way to determine if it had the buff from before or did it get a new one, so it is just a lot simpler to simulate the bash with triggers (and you can directly add the other stuff you want to do in the bash simulation trigger).

For bash simulation trigger, look into the thread "faq top 10" (it is a stickied thread at the top of the page), there is a map for download there, it's called "the detect map", altrough it doesn't detect anything, it simulates the whole thing.
03-18-2004, 10:46 PM#4
Lami
Quote:
Originally Posted by ThyFlame
There isn't... you have to use triggers and a dummy spell.
So whut u suggest? what u said didnt help me at all.\


[edit] whow i got it! i used that lil plan to detect if the attacked unit had the buff and it worked!!!

Event:
a unit is attacked

Condition:
None

Action:
If (attacked unit has buff (Stun)) then (move (attacked unit) to (position of (attacked unit) with polar offset 100 in the direction of (attacking unit))

And it seems to work!

Also Thy u dont seem to help at all, help if you can otherwise dont post, i can figure out on my own that it doesnt work, that is why i am posting...

Thanks for help anitar.
03-18-2004, 11:33 PM#5
ThyFlame
Well excuse me for not trolling the forum to post the second you replied.

The triggering is to roll a random number between 1-100, although the random number feature isn't entirely random..., and then if its > a certain number you stun the unit, which afaik is done with pausing/unpausing or having a dummy unit attack it with 100% stun attack.
03-19-2004, 02:18 AM#6
linkmaster23
*cough*FAQ TOP TEN*cough* I am adding you to my never to help because they're to lazy to learn list...