So my goal is to have an ability that targets a point, and creates a persistent that checks the cast area for units, teleporting them to the target area and applying a "no entry" debuff, as well as checks the target point and teleports units to the caster point, also applying the debuff
if the unit has the debuff it won't be teleported
I want this effect to persist for 5 seconds.
I have most of this spell down, but for some reason the persistent seems to lose it's caster point and instead all searches only fire at the target point.
Any ideas on this?
Edit: Made it work, I managed to get a one-way portal going, so I created a dummy unit and an init set effect that creates the dummy at the target point, and orders it to cast another one-way from the target point to the caster point, effectively making a two-way portal
So no matter where the caster unit moves, the units are always teleported to the point at which the caster initially casted the ability?
The easiest way would probably be to create a persistent that's located at the caster point but applies the search at target point so you have a concrete way to refer to both caster and target points.
Did you try fiddling with the effect fields for the location of all your effects?
yeah thats what I did but for some reason it keeps losing the caster point, I tried setting it to source and origin and all those things. The initial persist can search at cast point and send to targ point but can't seem to do the reverse, from targ to cast. The search for the target point back to cast kept launching and sending from the target point to the target point instead of the cast point no matter how hard I tried. I don't really know why, tried all sorts of combos. Could only make it one-way for some strange reason.
I got it so the ability creates a dummy unit at the target point, and tells the dummy unit to cast the ability right back at the caster, so now it works as intended.
Was the persistent created at the target point or caster point? If it's at target point I'm guessing that the game just forgets where exactly the caster point is. Either way the issue is probably related to the teleport effect. Could you maybe post XML if you're still working on it?
Personally I try to avoid using dummy units whenever possible. Creating them is too much of a hassle
I would have just used a Set effect to mark the target point that then uses a Create Persistent to target the caster point. Rest of the effects could be then allocated to the correct destinations using the effect fields above the location values.
So my goal is to have an ability that targets a point, and creates a persistent that checks the cast area for units, teleporting them to the target area and applying a "no entry" debuff, as well as checks the target point and teleports units to the caster point, also applying the debuff
if the unit has the debuff it won't be teleported
I want this effect to persist for 5 seconds.
I have most of this spell down, but for some reason the persistent seems to lose it's caster point and instead all searches only fire at the target point.
Any ideas on this?
Edit: Made it work, I managed to get a one-way portal going, so I created a dummy unit and an init set effect that creates the dummy at the target point, and orders it to cast another one-way from the target point to the caster point, effectively making a two-way portal
So no matter where the caster unit moves, the units are always teleported to the point at which the caster initially casted the ability?
The easiest way would probably be to create a persistent that's located at the caster point but applies the search at target point so you have a concrete way to refer to both caster and target points.
Did you try fiddling with the effect fields for the location of all your effects?
@Dorkles: Go
yeah thats what I did but for some reason it keeps losing the caster point, I tried setting it to source and origin and all those things. The initial persist can search at cast point and send to targ point but can't seem to do the reverse, from targ to cast. The search for the target point back to cast kept launching and sending from the target point to the target point instead of the cast point no matter how hard I tried. I don't really know why, tried all sorts of combos. Could only make it one-way for some strange reason.
I got it so the ability creates a dummy unit at the target point, and tells the dummy unit to cast the ability right back at the caster, so now it works as intended.
Was the persistent created at the target point or caster point? If it's at target point I'm guessing that the game just forgets where exactly the caster point is. Either way the issue is probably related to the teleport effect. Could you maybe post XML if you're still working on it?
Personally I try to avoid using dummy units whenever possible. Creating them is too much of a hassle
I would have just used a Set effect to mark the target point that then uses a Create Persistent to target the caster point. Rest of the effects could be then allocated to the correct destinations using the effect fields above the location values.
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