Add a Location Range validator? From the sounds of it, you are either apllying a buff or a Create Persistent effect to the target which is not disabled/removed when the target moves out of range.
The validator as you are using it, only is used when the ability is initially cast. You need to validate on the effect that ultimately casts your ability, which from looking at it, is likely the Create Persistent Effect. Add the validator there, or on the Damage effect itself.
If I put it on the persistent then it says error. If I put it on the damage it doesn't apply the damage if the unit is in range. If the unit is out of range, with the validator on the damage effect, she stops casting.
That is because you are using equals in the compare of your validator. You want less than or equals to. With your current setup it will only work if the target unit is exactly 7 away from your unit and will return false if it is a fraction off.
That is because you are using equals in the compare of your validator. You want less than or equals to. With your current setup it will only work if the target unit is exactly 7 away from your unit and will return false if it is a fraction off.
Ok. Changed that. If it's on the damage amount, it won't fire the damage still. If it's on the persistent effect, it won't let you cast the ability until your in range 7. If you start casting it and the target runs away out of range, it will still cast the dmg.
Can someone please download the map, look at how I did it, and tell me where and what validator to use.
This is frustrating.
Update:
Got it to work the way I want to a point. Had to use a trigger. Updated map attached.
It's based of the sniper's snipe ability with an added charge bar and target marker.
Attached is the map.
I need some help though, the only thing is, if the target runs away, no matter how far they run they still get hit.
How do I make it so if the target is out of the abilities range, then fail?
Add a Location Range validator? From the sounds of it, you are either apllying a buff or a Create Persistent effect to the target which is not disabled/removed when the target moves out of range.
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
@DrSuperEvil: Go
Ok. I added it, and it looks like it's removing the first part, but the effect still goes off. How do I remove that?
The validator as you are using it, only is used when the ability is initially cast. You need to validate on the effect that ultimately casts your ability, which from looking at it, is likely the Create Persistent Effect. Add the validator there, or on the Damage effect itself.
@BorgDragon: Go
If I put it on the persistent then it says error. If I put it on the damage it doesn't apply the damage if the unit is in range. If the unit is out of range, with the validator on the damage effect, she stops casting.
That is because you are using equals in the compare of your validator. You want less than or equals to. With your current setup it will only work if the target unit is exactly 7 away from your unit and will return false if it is a fraction off.
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
Ok. Changed that. If it's on the damage amount, it won't fire the damage still. If it's on the persistent effect, it won't let you cast the ability until your in range 7. If you start casting it and the target runs away out of range, it will still cast the dmg.
Can someone please download the map, look at how I did it, and tell me where and what validator to use.
This is frustrating.
Update: Got it to work the way I want to a point. Had to use a trigger. Updated map attached.