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.
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?
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.
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?
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
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).
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.
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!!!
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....
If I recall correctly I had the transient flag break the heal ability when I was messing around with it in one of my test maps. The problem is some abilities are ridiculously intricate and convoluted in their workings, so 'transient' might not play nice with some of the other aspects/effects of an ability. (I never looked deeper myself though.)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
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.
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?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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.
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?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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).
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.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
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.
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!!!
if the filters exclude enemy the effect wont apply the buff and what not.
But what about targeting other units? Yes, it should be working anyway. But there are gremlins hiding deep in that editor ;-)
The ability is supposed to affect the player's own units s it can exlcude enemies.
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!!! :)
@rewazi: Go
If I recall correctly I had the transient flag break the heal ability when I was messing around with it in one of my test maps. The problem is some abilities are ridiculously intricate and convoluted in their workings, so 'transient' might not play nice with some of the other aspects/effects of an ability. (I never looked deeper myself though.)