I have a caster which has an ability that summons a robot.
Whenever any friendly ground unit comes close to the caster, that unit is immediately teleported to the location where the robot stands. (It can walk around.)
I am able to build the spell so it works in the opposite way - whenever any unit comes close to the robot, that unit is teleported to the caster. But I want it to work the other way around - units shall be teleported from the caster to the robot!
As it currently is, the robot has a buff with a periodic search effect that checks for nearby ground units. When it does, it applies the teleport effect on units so they are teleported to the caster, as displayed in the picture below.
That works fine. It is easy in the teleport effect to refer to the "Caster" when determining the location, hence units become teleported to the caster who summoned the robot. The issue is that I can't find a way to determine the location of the robot... > . <
Any ideas how to determine the location of the robot in the teleport effect?
I would apply a set effect on unit creation to the robot that then applies a buff to the caster which uses an Enumerate Area validator. When activated the buff then uses the teleport as a periodic effect to teleport to the target unit of the set effect.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Thanks for your reply. Based on your description the ability now works like this:
The ability summons the robot via a Create unit effect, at target location. In that effect, there is a field called "Effect - Spawn" which determines what effects are applied to each of the spawned units. There I have built a set effect that contains the following two effects:
- Add timed life buff to the robot (Contains a "Caster not dead" validator, meaning that when the caster dies, the robot also dies) - Add teleport buff to the caster (That buff contains a periodic search effect that applies a teleport effect every X second to nearby units)
I have experiemented with the Enumerate Area validator on the teleport buff that is added to the caster, but with no success. The teleport from the caster to the robot refuses to work. : /
Would you, or anyone else reading this, mind to elaborate on how to approach this ability?
Ok you will not need an enumerate area validator then. I think the reason it is not working is how you have set up the Teleport effect. Check how the teleport from the Mothership Mass Recall ability is set up except swap the source and the target around and use the set effect of your create unit effect as the target.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
For the teleport target field, try adding your create unit effect as the reference. As long as the teleport effect and create unit effect are in the same effect tree, the teleport will read the "target of create unit effect" as the robot.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a caster which has an ability that summons a robot.
Whenever any friendly ground unit comes close to the caster, that unit is immediately teleported to the location where the robot stands. (It can walk around.)
I am able to build the spell so it works in the opposite way - whenever any unit comes close to the robot, that unit is teleported to the caster. But I want it to work the other way around - units shall be teleported from the caster to the robot!
As it currently is, the robot has a buff with a periodic search effect that checks for nearby ground units. When it does, it applies the teleport effect on units so they are teleported to the caster, as displayed in the picture below.
That works fine. It is easy in the teleport effect to refer to the "Caster" when determining the location, hence units become teleported to the caster who summoned the robot. The issue is that I can't find a way to determine the location of the robot... > . <
Any ideas how to determine the location of the robot in the teleport effect?
I would apply a set effect on unit creation to the robot that then applies a buff to the caster which uses an Enumerate Area validator. When activated the buff then uses the teleport as a periodic effect to teleport to the target unit of the set effect.
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
Thanks for your reply. Based on your description the ability now works like this:
The ability summons the robot via a Create unit effect, at target location. In that effect, there is a field called "Effect - Spawn" which determines what effects are applied to each of the spawned units. There I have built a set effect that contains the following two effects:
- Add timed life buff to the robot (Contains a "Caster not dead" validator, meaning that when the caster dies, the robot also dies)
- Add teleport buff to the caster (That buff contains a periodic search effect that applies a teleport effect every X second to nearby units)
I have experiemented with the Enumerate Area validator on the teleport buff that is added to the caster, but with no success. The teleport from the caster to the robot refuses to work. : /
Would you, or anyone else reading this, mind to elaborate on how to approach this ability?
Thought you wanted the caster to teleport to the robot when units are nearby?
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
No no, nearby units are supposed to be teleported from the caster to the robot, as long as the robot is alive.
The caster summons the robot. Whenever any ground unit comes close to the caster, that unit is teleported to the current location of the robot.
Ok you will not need an enumerate area validator then. I think the reason it is not working is how you have set up the Teleport effect. Check how the teleport from the Mothership Mass Recall ability is set up except swap the source and the target around and use the set effect of your create unit effect as the target.
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
Thanks, but I still can't figure out how to do it > . <
Anyone has any ideas?
For the teleport target field, try adding your create unit effect as the reference. As long as the teleport effect and create unit effect are in the same effect tree, the teleport will read the "target of create unit effect" as the robot.