I created a limited range AoE ability from the Nexus that is supposed to recharge the shields of your units in the target area by 50. When I select the ability, I can see the search effect highlighting units in the radius of the ability, but my cursor splat snaps to a single unit and only permit be to use the ability on a unit.
Here's how I have it designed:
Abilities
Nexus - Recharge
Ability: Arc set to 360.0 degrees so Nexus can target all around it because the Nexus can't move.
(Basic) Effect: Cursor Effect set to Nexus - Recharge (Search).
(Basic) Effect: Effect set to Nexus - Recharge (Apply).
Range set to 10.
Effects
Nexus - Recharge (Search)
Searches a 360 degree area with a radius of 1 for player owned units and structures.
Applies the Nexus - Recharge (Apply) effect in the (Basic) Search: Areas section.
Nexus - Recharge (Apply)
Applies the Nexus - Recharge behavior in the (Basic) Effect: Behavior section.
Behaviors
Nexus - Recharge
Vital Max Bonus | Shields set to 50 - this adds 50 shields to both current and max shields (e.g. 27/50 -> 77/100).
Duration set to 0.0625 so the max shield capacity is instantly removed, but restored shields remain.
I've been comparing this with Psi Storm as that ability is designed to target a point on the ground. So far, I have been unable to determine why my ability 'snaps' to a unit and forces me to only target units.
Any input is appreciated and I can answer any questions you have.
Target: Impact Location is set to Target Unit/Point and Target: Launch Location is set to Source Unit just like Psi Storm. I tried setting Target: Impact Location to Target Point, but it exhibited the same incorrect behavior. Even if I change Target: Launch Location to Target Point or Target Unit/Point, the behavior doesn't change.
You need to set "(Basic) Effect:" to your search effect. You should have the search effect be on both the cursor and actual effect.
The cursor effect is just a visual that attaches to your mouse pointer. (Basic) Effect is what the ability is going to use when you cast it, and hence what the game is trying to snap your target to.
I see. So I tested that change and it actually improved the ability quite a bit - though it's still not quite right.
The ability is now properly applying the shield buff to all my units in the target area, but the effect is still 'snapping' to a unit if one is too close to my cursor. This is somewhat troublesome as it can limit what units receive the buff if it unexpectedly snaps in one direction.
Impact location is already set to Target Unit/Point which should work as that's the same setup as Psi Storm. I tried changing it to just Target Point the other day, but that didn't fix anything.
Sigh..... so I fixed this issue, but let me tell you exactly what I did...
Target: Impact Location Value is set to Target Unit/Point.
Changed the Target: Impact Location Value to Target Point.
Published - snapping still occurring.
Added the Search Effect as the Target: Impact Location Effect.
Changed the Target: Impact Location Value to Target Point.
Published - snapping no longer occurring.
Removed the Search Effect as the Target: Impact Location Effect.
Published - snapping still not occurring.
Changed Target: Impact Location Value back to Target Unit/Point.
Published - snapping occurs again.
This editor makes no sense sometimes.
What makes even less sense is that the Psi Storm search effect and the search effect of the other custom ability I created work just fine with the Impact Location set to Target Unit/Point. I'm running into the weirdest issues.
It uses the first effect in the effect chain to determine the target type. In the case of Psi Storm, this is a persistent effect (not a search effect), and this is indeed set to "Target Point".
If you set Psi Storm's initial persistent to "Target Unit/Point" as your search effect were, you'd see the same snapping!
That part makes sense. Though I'm still confused as to why it suddenly worked now compared to when I changed it to Target Point this past weekend and it was still having issues.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I created a limited range AoE ability from the Nexus that is supposed to recharge the shields of your units in the target area by 50. When I select the ability, I can see the search effect highlighting units in the radius of the ability, but my cursor splat snaps to a single unit and only permit be to use the ability on a unit.
Here's how I have it designed:
Abilities
Nexus - Recharge
Effects
Nexus - Recharge (Search)
Nexus - Recharge (Apply)
Behaviors
Nexus - Recharge
I've been comparing this with Psi Storm as that ability is designed to target a point on the ground. So far, I have been unable to determine why my ability 'snaps' to a unit and forces me to only target units.
Any input is appreciated and I can answer any questions you have.
Hi Lazernerd,
I'd look at the Nexus - Recharge (Search) effect and make sure that the "Target: Location +" field is set to "Target Point" instead of "Target Unit."
Hopefully that works!
rut
@rutegar: Go
Target: Impact Location is set to Target Unit/Point and Target: Launch Location is set to Source Unit just like Psi Storm. I tried setting Target: Impact Location to Target Point, but it exhibited the same incorrect behavior. Even if I change Target: Launch Location to Target Point or Target Unit/Point, the behavior doesn't change.
have you set a target filter on the ability?
@FunkyUserName: Go
The ability has no Target Filters set.
@Lazernerd: Go
which units are snaped? only enemies? try to add an set effect infront of the search
(Basic) Effect: Effect set to Nexus - Recharge (Apply)
This is a single target effect, and will always snap to a single target. You need to use a search effect to apply the behavior.
The cursor effect has no impact on what the ability will snap to. It's purely visual.
Here's a short clip of the 'snapping' behavior I'm seeing: http://webmshare.com/play/MA5rj
@FunkyUserName: Go
So far I've only tested on my units. It shouldn't be able to target enemy units given how I configured it.
@TyaArcade: Go
My search effect does have Nexus - Recharge (Apply) set as the Effect in the (Basic) Search: Areas section, is this what you are referring to?
You need to set "(Basic) Effect:" to your search effect. You should have the search effect be on both the cursor and actual effect.
The cursor effect is just a visual that attaches to your mouse pointer. (Basic) Effect is what the ability is going to use when you cast it, and hence what the game is trying to snap your target to.
@TyaArcade: Go
I see. So I tested that change and it actually improved the ability quite a bit - though it's still not quite right.
The ability is now properly applying the shield buff to all my units in the target area, but the effect is still 'snapping' to a unit if one is too close to my cursor. This is somewhat troublesome as it can limit what units receive the buff if it unexpectedly snaps in one direction.
Go to your search effect. Look for "Impact Location +" and change it to "Target Point".
@TyaArcade: Go
Impact location is already set to Target Unit/Point which should work as that's the same setup as Psi Storm. I tried changing it to just Target Point the other day, but that didn't fix anything.
Sigh..... so I fixed this issue, but let me tell you exactly what I did...
This editor makes no sense sometimes.
What makes even less sense is that the Psi Storm search effect and the search effect of the other custom ability I created work just fine with the Impact Location set to Target Unit/Point. I'm running into the weirdest issues.
It uses the first effect in the effect chain to determine the target type. In the case of Psi Storm, this is a persistent effect (not a search effect), and this is indeed set to "Target Point".
If you set Psi Storm's initial persistent to "Target Unit/Point" as your search effect were, you'd see the same snapping!
@TyaArcade: Go
That part makes sense. Though I'm still confused as to why it suddenly worked now compared to when I changed it to Target Point this past weekend and it was still having issues.