I have created a unit ability which, when targeted on a specific building, teleports the unit using the ability to a corresponding second building, and the opposite.
The ability works fine when both buildings are on standard terrain.
I have 'space' terrain, lowest level cliff with the space background. I have added ground pathing to this 'space' terrain, and added one of the teleport buildings to the space area. I have marines (for instance) which can teleport from ground, to space, but cannot teleport back. When using the ability on the building in space, the marine gets as close as possible to the building, and continues to attempt to use the ability, but never does. The ability's targeting UI remains on the building, so I know they are still trying to target it.
I have attempted to change the range of the ability, making it usable from anywhere on the map, and the problem persists. I have tinkered with the unit, the ability, the pathing, yet nothing seems to change this. Thoughts?
No. The only validators I use are to check the unit type of the target structure.
Ability (Effect with Target)
-Effect (Set of two behavior placers): Place behaviors on caster.
-Behavior A (Buff): Permanent buff to denote 'on ground' or 'in space'. The actor has an event to replace the marine's model with a dropship when the 'in space' behavior is on, and swap back to a marine when it is removed.
-Behavior B (Buff): Runs an effect.
-Effect (Search): Finds the corresponding building. Beacon if on ground, landing pad if in space. Run an effect on this building.
-Effect (Teleport): Teleports the buff placer to the building.
-Validator: Ensures that the target of this effect is the right building.
As mentioned, it works fine when both are on regular ground. I realize that I could do the order differently to ensure they are in range before placing the model change buff, but the buildings can't move or die, and therefore will always in range.
My intent is to have land terrain which represent planets, that have a Landing Pad structure on them. Outside of these planets there is space terrain. In space, near each Landing Pad, is a Space Beacon. A unit with the "SpaceTravel" ability merely has to right click on a Landing Pad, and they are moved to the nearest Space Beacon, and look like a drop ship.
The Ability applies "ChooseTransportEffect" which is a Switch that checks a Unit Type Validator for either the Landing Pad or Space Beacon unit type. The Switch chooses either "TransportSet" if the caster need to goto space, or "LandSet" if the caster needs to go to the planet. Each set applies two Behaviors, and runs a Modify Unit Effect.
The "TransportSet" applies a permanent buff called "DropshipTransportation" which removes the caster's combat capabilities, and abilities. Units also have an Actor Event which changes their model to a dropship (or overlord / warp prism). The "TransportSetHeight" effect causes the unit to be raised 8 units to make them the same height as flying units are in space.
The "LandSet" applies a temporary buff called "GSickness" which removes "DropshipTransporation" and makes the unit slower for a short amount of time. The "LandSetHeight" lowers the unit by 8 units.
Both of the sets apply a behavior which lasts only for a second, which has an initial effect that applies a Search Behavior ("TransportFindTarget" and "LandFindTarget") These searches find the proper building, via Unit Type Validators, then apply a Transport effect to the target. The caster is then transported to the target.
Again, works fine when they are both on ground, but not when one is on space. The caster seems to be infinitely trying to approach the building, and the ability seems to be continuing to target which the caster tries.
I have created a unit ability which, when targeted on a specific building, teleports the unit using the ability to a corresponding second building, and the opposite.
The ability works fine when both buildings are on standard terrain.
I have 'space' terrain, lowest level cliff with the space background. I have added ground pathing to this 'space' terrain, and added one of the teleport buildings to the space area. I have marines (for instance) which can teleport from ground, to space, but cannot teleport back. When using the ability on the building in space, the marine gets as close as possible to the building, and continues to attempt to use the ability, but never does. The ability's targeting UI remains on the building, so I know they are still trying to target it.
I have attempted to change the range of the ability, making it usable from anywhere on the map, and the problem persists. I have tinkered with the unit, the ability, the pathing, yet nothing seems to change this. Thoughts?
Using any cliff height based validators?
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. The only validators I use are to check the unit type of the target structure.
Ability (Effect with Target) -Effect (Set of two behavior placers): Place behaviors on caster. -Behavior A (Buff): Permanent buff to denote 'on ground' or 'in space'. The actor has an event to replace the marine's model with a dropship when the 'in space' behavior is on, and swap back to a marine when it is removed. -Behavior B (Buff): Runs an effect. -Effect (Search): Finds the corresponding building. Beacon if on ground, landing pad if in space. Run an effect on this building. -Effect (Teleport): Teleports the buff placer to the building. -Validator: Ensures that the target of this effect is the right building.
As mentioned, it works fine when both are on regular ground. I realize that I could do the order differently to ensure they are in range before placing the model change buff, but the buildings can't move or die, and therefore will always in range.
i think evil havent asked you, he suggested you to use them :)
@Fen1kz: Go
No, it was a question since the faulty use could cause such an effect.
Still more details as to how the ability is setup would help.
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
My intent is to have land terrain which represent planets, that have a Landing Pad structure on them. Outside of these planets there is space terrain. In space, near each Landing Pad, is a Space Beacon. A unit with the "SpaceTravel" ability merely has to right click on a Landing Pad, and they are moved to the nearest Space Beacon, and look like a drop ship.
The Ability applies "ChooseTransportEffect" which is a Switch that checks a Unit Type Validator for either the Landing Pad or Space Beacon unit type. The Switch chooses either "TransportSet" if the caster need to goto space, or "LandSet" if the caster needs to go to the planet. Each set applies two Behaviors, and runs a Modify Unit Effect.
The "TransportSet" applies a permanent buff called "DropshipTransportation" which removes the caster's combat capabilities, and abilities. Units also have an Actor Event which changes their model to a dropship (or overlord / warp prism). The "TransportSetHeight" effect causes the unit to be raised 8 units to make them the same height as flying units are in space.
The "LandSet" applies a temporary buff called "GSickness" which removes "DropshipTransporation" and makes the unit slower for a short amount of time. The "LandSetHeight" lowers the unit by 8 units.
Both of the sets apply a behavior which lasts only for a second, which has an initial effect that applies a Search Behavior ("TransportFindTarget" and "LandFindTarget") These searches find the proper building, via Unit Type Validators, then apply a Transport effect to the target. The caster is then transported to the target.
Again, works fine when they are both on ground, but not when one is on space. The caster seems to be infinitely trying to approach the building, and the ability seems to be continuing to target which the caster tries.
Are you sure all buffs are being removed correctly?
I would just use a persistent effect to cause the delay before teleportation.
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