| 02-20-2006, 04:19 AM | #1 |
Ok, I've got an item, and this item has got a passive ability. How, using triggers, can I detect when that ability fires? The "hero manipulates item" functions do not work, and I've tried all of the "casting/channeling/etc. an ability" events. Still no good. Is there any way to catch this? Thanks in advance. |
| 02-20-2006, 07:32 AM | #2 |
A passive ability doesn't "fire", it's there all the time, that's why it's called passive... unless you mean something like "how to detect critical strike", which you can't. |
| 02-20-2006, 09:09 AM | #3 |
cud u detect a units certain animation? most passives like crit strike use a different attack animation, but that most likely wudnt work. |
| 02-20-2006, 10:48 AM | #4 |
Well, if its an "on attack" ability, you can detect its effect by measuring how much damage did the target take / any buffs/debuffs it got. What are you trying to do anyway? |
| 02-20-2006, 12:28 PM | #5 |
It is far easier to simulate those abilities than detect them btw |
| 02-20-2006, 03:25 PM | #6 |
Its a modified hardened skin for a simple shield-type item. I want to know when the hardened skin effect fires, so I can do a "Blocked!" floating text. So, unfortunately, that means no damage is dealt and there are no buffs. Maybe I could do a reverse damage dealt, say a unit is attacked, and the unit takes no damage, then we assume it was blocked. But thats too iffy. Vex - I could simluate it, sure, but catching damage dealt is a sketchy process. You have to account for killing blows, differentiate between melee, ranged, and spells attack damage, etc. It would be pain. So much easier if there was a func that would catch the passive. |
| 02-20-2006, 03:33 PM | #7 |
It would be easier if there was such a function , but there isn't. And it is not that difficult anyways |
