I'm trying to turn the Xel'Naga Watch Tower into a sort of Stargate-like structure (as in the movie/TV series Stargate, not the Protoss building), where a player can move units to it and use an ability on the tower to teleport those units to another tower elsewhere on the map.
I've taken the Mothership's Mass Recall ability and adjusted it to do the following:
A: Instead of teleporting units at the target area to the caster, it teleports units at the caster to the target area
B: It has to target an existing unit, rather than any point on the map
However, I want it to only be able to send units from one Watch Tower to another, and so far I can't figure out how to limit the target selection. Everything I've tried so far has applied to the units being teleported rather than the unit they're being teleported to. I'm not sure where I need to change this; the ability itself? The Search Area affect that picks the units to be teleported? Something else?
Thought of that. Created a Validator that required the target unit type be a Watch Tower and added it to the Ability's Smart Validator field, but it doesn't seem to have any effect.
Managed to get it to work. Made the first effect in the chain a Set which contained the Area Search, and required that the Set's target be validated as a Watch Tower.
I'm trying to do something similar, except I want to validate to either a pylon, a phasing warp prism, or a power field. Can you give me more info on how you accomplished this? I'm not familiar with Sets. I have tried several validators on the ability, but they validate what type of unit can be teleported, not my target.
@tyfenn: Go
You'll need to make sure the first set effect has a unit type validator that checks the unit type of the target, not the caster.
Sets effects are very basic. They simply allow you to group several effects together, and in the set you can run validators on the entire group of effects to determine whether they are run or not.
Thanks, I've got this mostly working. Can you only have one validator? I can get it to work with either pylon power or warp prism, but how do I get it to do a pylon or warp prism as a target. When I add both, it can't target anything.
Ok, so I got this to work by creating a location has power validator and adding pylon and warp prism power to that and than putting it in the set that launches my search. You guys rock!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to turn the Xel'Naga Watch Tower into a sort of Stargate-like structure (as in the movie/TV series Stargate, not the Protoss building), where a player can move units to it and use an ability on the tower to teleport those units to another tower elsewhere on the map.
I've taken the Mothership's Mass Recall ability and adjusted it to do the following:
A: Instead of teleporting units at the target area to the caster, it teleports units at the caster to the target area B: It has to target an existing unit, rather than any point on the map
However, I want it to only be able to send units from one Watch Tower to another, and so far I can't figure out how to limit the target selection. Everything I've tried so far has applied to the units being teleported rather than the unit they're being teleported to. I'm not sure where I need to change this; the ability itself? The Search Area affect that picks the units to be teleported? Something else?
Help would be appreciated.
try adding a validator of the Unit Type type so that the target must be the correct unit to 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
Thought of that. Created a Validator that required the target unit type be a Watch Tower and added it to the Ability's Smart Validator field, but it doesn't seem to have any effect.
Managed to get it to work. Made the first effect in the chain a Set which contained the Area Search, and required that the Set's target be validated as a Watch Tower.
@JimStarluck: Go
I'm trying to do something similar, except I want to validate to either a pylon, a phasing warp prism, or a power field. Can you give me more info on how you accomplished this? I'm not familiar with Sets. I have tried several validators on the ability, but they validate what type of unit can be teleported, not my target.
Your help is appreciated.
@tyfenn: Go You'll need to make sure the first set effect has a unit type validator that checks the unit type of the target, not the caster.
Sets effects are very basic. They simply allow you to group several effects together, and in the set you can run validators on the entire group of effects to determine whether they are run or not.
@ckSynergy: Go
Thanks, I've got this mostly working. Can you only have one validator? I can get it to work with either pylon power or warp prism, but how do I get it to do a pylon or warp prism as a target. When I add both, it can't target anything.
@ckSynergy: Go
Ok, so I got this to work by creating a location has power validator and adding pylon and warp prism power to that and than putting it in the set that launches my search. You guys rock!