I have an ability that applies a behavior, and a seperate ability that cancels it buy removing the behavior. My problem is when I have 2 casters using this ability at the same time and I cancel the spell with one of them, it cancels it on both targets. I'm guessing I need some sort of validator to sort the targets?
The ability is created specifically to cancel another ability. The Cancel Ability is a Target - Instant that removes a behavior. When the behavior is removed, it has a final effect to destroy the target. When I cancel it with one caster, the buff is removed on other targets and subsequently killed. I only want the caster who is canceling to have this happen rather than all casters using the ability.
Unless your kill flag Damage effect has splash. All you need is your Effect - Target ability linked to a set effect that does the Remove Behavior on the target and the Damage effect on the caster.
Ok, I'll try to be more specific. Like I said before, I have 2 abilities. One meant to cancel the other. The original ability uses a persistent effect to apply force. The force draws the target toward the caster, until canceled . The ability also applies a behavior buff. The cancel ability has a set that removes the buff behavior and destroys the persistent. The target unit is then destroyed via Effect - Final (Kill Command Generic) on the behavior buff. I dont use a search to apply the removal or destroy persistent. It's an Effect-Set, it looks like this...
This seams to effect any units under this influence globally. I would like it to sort out the target of the caster that I'm using the ability with, not all targets under the effect.
By linked I meant in the effect field of the ability. As there is no easy solution I recommend you upload the map and say what is the probelm causing abilities.
Here's the file, the abilities are called Tow Massive and Tow Massive Cancel. The ability only works on massive units and Tows them along with the caster.
Here's the file, the abilities are called Tow Massive and Tow Massive Cancel. The ability only works on massive units and Tows them along with the caster.
You should recheck your data fields before you upload, I find myself unable to cast Tow Cancel to test it =X . Turns out your target filters for Tow Massive Cancel excludes everyone (player, self, ally, enemy) so yeah. simply turning them all on will fix it just in case anyone else is also trying to solve the problem.
As for your actual problem Southpaw444, it lies in Effect - Tow Massive Cancel (Destroy Persistent)
basically at its current state, you are removing the Tow behavior for anyone within a radius of 500 around the caster =S
A quick fix would be to set the radius to 1 and voila; only the unit towed by the caster is destroyed...at least for the battlecruiser.... this is problematic if you have units overlapping, or when the towed unit isnt directly at the center of the caster like for say your archon.
What you really need however, is a way to remove the tow behavior directly from the target, without using a search effect (which you are doing right now). Now since ur using two different abilities to cast and cancel the tow... im not sure how you would do this, unless there is a way to link an ability's target to another ability; or make a toggle-able target spell -maybe someone advanced with the data editor would know.
If i were you, i would do this with triggers. much more simple, at least for me. If u want i could upload a triggered version of ur tow skill.
Edit* Just remembered Nova's Domination ability. its a toggle-able target spell thank goodness, might wanna check that out if ur doing this triggerless.
I have an ability that applies a behavior, and a seperate ability that cancels it buy removing the behavior. My problem is when I have 2 casters using this ability at the same time and I cancel the spell with one of them, it cancels it on both targets. I'm guessing I need some sort of validator to sort the targets?
What sort of ability are you using to remove the behaviour?
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
The ability is created specifically to cancel another ability. The Cancel Ability is a Target - Instant that removes a behavior. When the behavior is removed, it has a final effect to destroy the target. When I cancel it with one caster, the buff is removed on other targets and subsequently killed. I only want the caster who is canceling to have this happen rather than all casters using the ability.
@Southpaw444: Go
What are you using a search effect? Just remove it with one effect that targets the target of the instant spell.
I don't think it would even be possible for it to do it to more than one unit if that's the way it's done.
Unless your kill flag Damage effect has splash. All you need is your Effect - Target ability linked to a set effect that does the Remove Behavior on the target and the Damage effect on the caster.
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
Sounds like you need to set target filters. "Self Allowed" for instance.
If this or other suggestions in this thread doesn't fix your problem, please provide more information about your ability. :)
Ok, I'll try to be more specific. Like I said before, I have 2 abilities. One meant to cancel the other. The original ability uses a persistent effect to apply force. The force draws the target toward the caster, until canceled . The ability also applies a behavior buff. The cancel ability has a set that removes the buff behavior and destroys the persistent. The target unit is then destroyed via Effect - Final (Kill Command Generic) on the behavior buff. I dont use a search to apply the removal or destroy persistent. It's an Effect-Set, it looks like this...
Cancel Ability (Effect - Instant) > Effect - Set > Remove Behavior, Destroy Persistent.
This seams to effect any units under this influence globally. I would like it to sort out the target of the caster that I'm using the ability with, not all targets under the effect.
@DrSuperEvil: Go
How do I link it?
By linked I meant in the effect field of the ability. As there is no easy solution I recommend you upload the map and say what is the probelm causing abilities.
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
As far as I can tell from that text description, reduce the Range field of your destroy persistent
Here's the file, the abilities are called Tow Massive and Tow Massive Cancel. The ability only works on massive units and Tows them along with the caster.
@Southpaw444: Go
What are the allowable targets for said spells?
And It sounds like your using "search effects" to find the targets.......
You should recheck your data fields before you upload, I find myself unable to cast Tow Cancel to test it =X . Turns out your target filters for Tow Massive Cancel excludes everyone (player, self, ally, enemy) so yeah. simply turning them all on will fix it just in case anyone else is also trying to solve the problem.
As for your actual problem Southpaw444, it lies in Effect - Tow Massive Cancel (Destroy Persistent)
basically at its current state, you are removing the Tow behavior for anyone within a radius of 500 around the caster =S
A quick fix would be to set the radius to 1 and voila; only the unit towed by the caster is destroyed...at least for the battlecruiser.... this is problematic if you have units overlapping, or when the towed unit isnt directly at the center of the caster like for say your archon.
What you really need however, is a way to remove the tow behavior directly from the target, without using a search effect (which you are doing right now). Now since ur using two different abilities to cast and cancel the tow... im not sure how you would do this, unless there is a way to link an ability's target to another ability; or make a toggle-able target spell -maybe someone advanced with the data editor would know.
If i were you, i would do this with triggers. much more simple, at least for me. If u want i could upload a triggered version of ur tow skill.
I would use a channel ability for that (like Neural Parasite maybe)
I don't have editor access now. I will answer in more detail later