I am currently trying to get my Phoenixes to autocast Graviton Beam. I checked the Flags "Autocast" and "Autocast On" in the Data Editor and gave it an autocast range of 15. It seems to work.
The problem is, that it is now always autocasting, even if attacking would be smarter. For example there are 4 Phoenixes and 4 enemy Marauders and 4 enemy Marines. What happens is, that all 4 Phoenixes start using Graviton Beam (in the worst case on the Marauders) and get killed by the Marines. I think it would work better if attacking would have a higher priority than autocast. I tried to achieve this by trying out some autocast validators, but it doesn't seem to work for me.
If you enable the Smart flag then I think you can use a Target Sort to have the AI pick a Marine over a Marauder. For the Auto Cast Validators, you need to outline exactly the cases where Attacking is better than Graviton Beam and tell us because I don't know what you have in mind.
The problem is that they will still all use the graviton beam. What I want to achieve is that some of them use the beam to lift up enemies, while the others attack them.
Then I would use an Enumerate Area validator. What an Enumerate Area validator does is count a number of Units that pass a particular validator and then compare that number. So along with an Enumerate Area you would probably need a Unit Compare Behavior Count and goes into the Enumerate Area's search area.
You could try changing the ability from a channeled ability to a cast. It might kill the some of the animations but I think it would do the trick if you didn't mind loosing the animation.
Rollback Post to RevisionRollBack
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Then I would use an Enumerate Area validator. What an Enumerate Area validator does is count a number of Units that pass a particular validator and then compare that number. So along with an Enumerate Area you would probably need a Unit Compare Behavior Count and goes into the Enumerate Area's search area.
Is there a tutorial on validators and such things around? Until now I only found Hero creation tutorials and the data editor is still very confusing for me. (I am a programmer, so the trigger editor is my home ;) )
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi there,
I am currently trying to get my Phoenixes to autocast Graviton Beam. I checked the Flags "Autocast" and "Autocast On" in the Data Editor and gave it an autocast range of 15. It seems to work. The problem is, that it is now always autocasting, even if attacking would be smarter. For example there are 4 Phoenixes and 4 enemy Marauders and 4 enemy Marines. What happens is, that all 4 Phoenixes start using Graviton Beam (in the worst case on the Marauders) and get killed by the Marines. I think it would work better if attacking would have a higher priority than autocast. I tried to achieve this by trying out some autocast validators, but it doesn't seem to work for me.
Thanks in advance.
If you enable the Smart flag then I think you can use a Target Sort to have the AI pick a Marine over a Marauder. For the Auto Cast Validators, you need to outline exactly the cases where Attacking is better than Graviton Beam and tell us because I don't know what you have in mind.
The problem is that they will still all use the graviton beam. What I want to achieve is that some of them use the beam to lift up enemies, while the others attack them.
something like and area validator: only use graviton beam if there are no other graviton beamed unit nearby.
don't know how to do it but i guess this is what he needs
Then I would use an Enumerate Area validator. What an Enumerate Area validator does is count a number of Units that pass a particular validator and then compare that number. So along with an Enumerate Area you would probably need a Unit Compare Behavior Count and goes into the Enumerate Area's search area.
You could try changing the ability from a channeled ability to a cast. It might kill the some of the animations but I think it would do the trick if you didn't mind loosing the animation.
Is there a tutorial on validators and such things around? Until now I only found Hero creation tutorials and the data editor is still very confusing for me. (I am a programmer, so the trigger editor is my home ;) )