The thing is, is that Then workers could just run up to a enemy tank and do "Capture" and boom done, 'cheated' in a way. How would I make it that this can be casted on neutrals only?There you go
- Vehicle Capture cast
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Capture
- Actions
- Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
- Unit - Remove (Casting unit) from the game
Just change the "Stats - Targets Allowed" graph of your ability in the Object Editor and tick the "Neutral" and "Mechanical" options onlyThe thing is, is that Then workers could just run up to a enemy tank and do "Capture" and boom done, 'cheated' in a way. How would I make it that this can be casted on neutrals only?
Although it will not stop the ability from targeting enemies, one could add a condition to the trigger to make sure that the owner of target unit is the appropriate neutral player. That way casting on an enemy would be wasted since the trigger will never run, while also not wasting the worker in case they accidently cast it on an enemy.The thing is, is that Then workers could just run up to a enemy tank and do "Capture" and boom done, 'cheated' in a way. How would I make it that this can be casted on neutrals only?
There's other units like infantry so that wouldn't work, Thanks for the help!Just change the "Stats - Targets Allowed" graph of your ability in the Object Editor and tick the "Neutral" and "Mechanical" options only
Then, your ability would still affect neutral buildings (if you have any), cause they are also considered Mechanical
To fix it, add the following trigger into your map
note that the event is different from the first trigger
- Vechicle Capture debug
- Events
- Unit - A unit Begins casting an ability
- Conditions
- (Ability being cast) Equal to Capture
- ((Target unit of ability being cast) is A structure) Equal to True
- Actions
- Unit - Order (Casting unit) to Stop
Its just a standard combat engineer unit not a heroIf you want to reuse the 'pilot' unit and it is a hero, or some stats should be retained, then you should hide it instead of removing it.
So do I use "Target unit of ability being cast" or just "targeted unit"?Although it will not stop the ability from targeting enemies, one could add a condition to the trigger to make sure that the owner of target unit is the appropriate neutral player. That way casting on an enemy would be wasted since the trigger will never run, while also not wasting the worker in case they accidently cast it on an enemy.
Target unit of ability being cast.So do I use "Target unit of ability being cast" or just "targeted unit"?
Channel? It might be able to do what was described by xISLx and not require triggers to prevent it from casting on enemies.Also what base ability should I use? I'm using firebolt and it isn't working when I target the tank the worker disappears and the tank is stunned but stays neutral
Can this be made to target only neutral mechanical? I assume topic creator already tried this and it probably cannot be customized as desired.I suggest just go with Possession, it has all your need, trigger-free.
Dosent work :|Target unit of ability being cast.
Channel? It might be able to do what was described by xISLx and not require triggers to prevent it from casting on enemies.
Can this be made to target only neutral mechanical? I assume topic creator already tried this and it probably cannot be customized as desired.
I decided to attach a working version in case you need itAlso what base ability should I use? I'm using firebolt and it isn't working when I target the tank the worker disappears and the tank is stunned but stays neutral
Yeah you can train Infantry and tanks are kinda there For support, for further details see my "Tiriath Civil War" mapI decided to attach a working version in case you need it
Works just as intended
Also, did you mention that there'll be neutral mechanical infantry in your map?
If there are, the trigger might need a couple of minor tweaks
Can this be made to target only neutral mechanical? I assume topic creator already tried this and it probably cannot be customized as desired.
May I see this map so see how it works? Dr Super Good's idea of using "Target of casted ability" dosent work. I need a trigger that is simplistic (if possible) and dosent involve chaning "Mechanical" or editing the game the way xISLx tgat would make Infantry not be able to target each other...It works, tried it for Building in Night Empire map of mine (check the Infiltrator unit).
A simple trigger might be needed if there's no way to exclude structure.
Thank you!! It works!!I decided to attach a working version in case you need it
Works just as intended
Also, did you mention that there'll be neutral mechanical infantry in your map?
If there are, the trigger might need a couple of minor tweaks