| 02-19-2005, 01:51 AM | #1 |
How to I refer to a unit that has been targetted by a hero using an item? |
| 02-19-2005, 11:08 PM | #2 |
Guest | You mean like spider braoch and you use it and then in the triggers refer to it? (if so isn't this supposed to be trigger haven?) |
| 02-20-2005, 03:41 AM | #3 | |
Quote:
Um....ehehehehehehehehehehehe... :) Yeah. I was wondering if there was a way to refer to both the target of the used item (unit), and the the item that was used, in the same trigger. But never mind, I found a way around that since it's not possible for some reason... |
| 02-22-2005, 05:42 PM | #4 |
You can use the "unit starts the effect of an ability" event, and as the condition the ability comparison "ability being cast equal to (your item's ability)". Then you can use the event response "target unit of the ability being cast" for the target... as for the item, I suppose you can use "item carried by (casting unit) of type (your item type)". If the unit has more of these items, you may not neccesarily get the item it used, though. |
| 02-23-2005, 12:32 PM | #5 |
I've tried messing around with this kind of thing for a new map i'm working on, and so far as i can tell there isn't a function made for this. Didn't find a way around that, but it was pretty much unnessecary, it just ment adding some extra triggers. |
