Did u make sure that u were setting the 'Target Filters' and not 'Auto Cast Filters' for the ability?
Did u also change the flags for the ability when u made it? The default flags for 'Effect - Target' abilities should let u do what u need.
Solved it! I did indeed change some of the flags when I created it, including checking the Transient flag. When I unchecked the transient flag it worked.
But I'm still confused. I thought that the transient flag made it so that the ability could be casted without breaking previous orders, which is what I wanted. Hrm....
Try excluding self and use the ability, just to be sure. As I've never used a targeted ability that can target self and other units.
If I exclude self, I get the "Can't target castor" error, as would be expected.
Between the audio confirmation sound from the unit, the green circle flashing when I click, and the mouse turning green when hovering over the other unit, yet no "addon complete" message, I feel like my castor must be getting the order to use the ability on the other unit, just it can't complete the order for some reason. The other unit is well within range of the ability, and I didn't remove movement from my castor, so... I just don't see why it's not casting.
I'm probably going to remake everything and hope that it works then, but this is really bugging me. It should be casting!!!
Do you have a default button? What is the duration of the buff?
Otherwise I am out of ideas and recommend you upload the map so others can look for the problem.
I do have a default button and the duration is set to 15 seconds.
The main thing that's confusing me is that it can be cast on the castor, but no one else, and yet it appears to be able to cast on other units, just that the ability doesn't go off and the buff isn't applied. This makes me think that it's a problem with the ability itself and not the behavior or effect, but... idk what the problem IS.
Are the nearby units hostile? Or maybe structures? What is the range of the ability set to? Are there any validators in your apply behavior effect or your buff?
There are no hostile units or structures nearby.
The range is set to 40 with 1 extra range and 5 follow range.
There are no validators for the behavior, the effect also has no validators (actually on effectName(unknown), which I think means none).
What sort of ability are you using to apply this buff, what are the filters set to and what is the Unit - Unit - Value of the Apply Behavior effect set to?
The ability type is Effect - Target.
The filters are excluding Neutral, Enemy, Structure, Missile.
The apply behavior effect Unit - Unit + is set to (none):Target.
The title is a little misleading, but basically I can only cast the ability on the castor unit, not any other nearby units, but I can target nearby units. That's probably a little confusing, but below is a sort-of breakdown of what happens......
I have an ability that applies a buff to the target unit.
I made the ability (not the behavior or effect, but the actual ability) give an alert (Add on complete) whenever the ability is casted.
If - Targeting self (castor) - the buff is applied and I get an add on complete message.
if - Targeting nearby unit - I get no error message, the cursor is green when hovering over target unit, the little green circle below the targeted unit blinks a few times after clicking, but....... I get no add on complete message and the buff is not applied.
Any ideas as to what my problem is? I can post more information if it would be helpful.
I want to make an effect that gives either bonus damage or bonus % of damage based on how much health the target is missing. ie. units at full hp take little damage, units with low health take lots of damage. Any ideas?
0
lol it would appear that there are.
The same thing happens when targeting other units.
Solved it! I did indeed change some of the flags when I created it, including checking the Transient flag. When I unchecked the transient flag it worked.
But I'm still confused. I thought that the transient flag made it so that the ability could be casted without breaking previous orders, which is what I wanted. Hrm....
Atleast it's working! THANKS EVERYONE!!! :)
0
If I exclude self, I get the "Can't target castor" error, as would be expected.
Between the audio confirmation sound from the unit, the green circle flashing when I click, and the mouse turning green when hovering over the other unit, yet no "addon complete" message, I feel like my castor must be getting the order to use the ability on the other unit, just it can't complete the order for some reason. The other unit is well within range of the ability, and I didn't remove movement from my castor, so... I just don't see why it's not casting.
I'm probably going to remake everything and hope that it works then, but this is really bugging me. It should be casting!!!
0
I do have a default button and the duration is set to 15 seconds.
The main thing that's confusing me is that it can be cast on the castor, but no one else, and yet it appears to be able to cast on other units, just that the ability doesn't go off and the buff isn't applied. This makes me think that it's a problem with the ability itself and not the behavior or effect, but... idk what the problem IS.
0
There are no hostile units or structures nearby.
The range is set to 40 with 1 extra range and 5 follow range.
There are no validators for the behavior, the effect also has no validators (actually on effectName(unknown), which I think means none).
0
The ability type is Effect - Target.
The filters are excluding Neutral, Enemy, Structure, Missile.
The apply behavior effect Unit - Unit + is set to (none):Target.
0
The title is a little misleading, but basically I can only cast the ability on the castor unit, not any other nearby units, but I can target nearby units. That's probably a little confusing, but below is a sort-of breakdown of what happens......
I have an ability that applies a buff to the target unit. I made the ability (not the behavior or effect, but the actual ability) give an alert (Add on complete) whenever the ability is casted.
If - Targeting self (castor) - the buff is applied and I get an add on complete message.
if - Targeting nearby unit - I get no error message, the cursor is green when hovering over target unit, the little green circle below the targeted unit blinks a few times after clicking, but....... I get no add on complete message and the buff is not applied.
Any ideas as to what my problem is? I can post more information if it would be helpful.
0
Thanks!
0
I want to make an effect that gives either bonus damage or bonus % of damage based on how much health the target is missing. ie. units at full hp take little damage, units with low health take lots of damage. Any ideas?
0
Is it possible to change a data value based off of a trigger variable?
ex. change the range of a specified unit to equal an integer variable