well i sorta browsed through the thread and im not sure if someone already said this, but anyway...
basically you want an ability that, upon right-clicking, changes the owner of a specific unit to the owner of the casting unit?
you could do this without the trigger editor.
create an "effect - target" ability and check the box "smart" in the Stats: Flags. using the effect - target will allow you to set cast times and whatnot.
for the ability's effect use an "apply buff" to the target and set the behavior: Player+ on the buff to be; Effect: (the apply buff effect) Value: Caster
then create an enumerate area validator that checks for specific nearby units and change the search: search filters to only include "player" in the validation search
place the enumerate area validator back into the Behavior: Validators (remove) section of your buff and when the validator detects that there are no valid player SCV, mule, probe, drone, or whatever it will remove the behavior and the controlled unit should revert back to its original owner.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
well i sorta browsed through the thread and im not sure if someone already said this, but anyway...
basically you want an ability that, upon right-clicking, changes the owner of a specific unit to the owner of the casting unit? you could do this without the trigger editor.
create an "effect - target" ability and check the box "smart" in the Stats: Flags. using the effect - target will allow you to set cast times and whatnot.
for the ability's effect use an "apply buff" to the target and set the behavior: Player+ on the buff to be; Effect: (the apply buff effect) Value: Caster
then create an enumerate area validator that checks for specific nearby units and change the search: search filters to only include "player" in the validation search
place the enumerate area validator back into the Behavior: Validators (remove) section of your buff and when the validator detects that there are no valid player SCV, mule, probe, drone, or whatever it will remove the behavior and the controlled unit should revert back to its original owner.