Ouguiya
New Member
- Reaction score
- 11
Solved: Triggering - Event Response "Unit being targeted by item"?
Hello everyone!
I hope someone can help me with this problem, as it's really not easy (at least for me) to solve.
The problem is as follows: I have created an item, let's call it item X, which is powerful to use. As such, I want to create an item to defend against Item X.
The plan is that the defensive item (Let's Call it Item W), has to be used, like a potion. Once used, it gives its user a buff.
Now, a trigger has to be made. The event of course being: "A unit uses an item".
Next, two conditions have to be evaluted:
1) Itemtype of (Item being manipulated) is equal to "Item X"
2) Targeted unit has specific buff
The only problem is that when looking at all the possible "unit types" for the condition, there is an "event response" unit for anything, the unit who is being attacked, the unit which has changed owner, bla bla... but not for the unit which was targeted by the item.
I also don't know how to get around the problem. Using an "ability being cast equal to" does not work, using "Unit targeted by spell" does not work either.
What I want to ask here, is if someone has an idea how to circumvent the lack of the event response - unit targeted by the item, or if someone knows a jass function for it, or something similar.
Thank you all in advance.
Yours,
Ouguiya
Hello everyone!
I hope someone can help me with this problem, as it's really not easy (at least for me) to solve.
The problem is as follows: I have created an item, let's call it item X, which is powerful to use. As such, I want to create an item to defend against Item X.
The plan is that the defensive item (Let's Call it Item W), has to be used, like a potion. Once used, it gives its user a buff.
Now, a trigger has to be made. The event of course being: "A unit uses an item".
Next, two conditions have to be evaluted:
1) Itemtype of (Item being manipulated) is equal to "Item X"
2) Targeted unit has specific buff
The only problem is that when looking at all the possible "unit types" for the condition, there is an "event response" unit for anything, the unit who is being attacked, the unit which has changed owner, bla bla... but not for the unit which was targeted by the item.
I also don't know how to get around the problem. Using an "ability being cast equal to" does not work, using "Unit targeted by spell" does not work either.
What I want to ask here, is if someone has an idea how to circumvent the lack of the event response - unit targeted by the item, or if someone knows a jass function for it, or something similar.
Thank you all in advance.
Yours,
Ouguiya