So I have multiple units in the same area, all of which have an auto-casted ability to steal another unit's energy. However, I want to make it so that the auto-cast will only target units if they have more energy than the unit which hosts (casts) the ability. (ie in the long run, the units will all have the same energy). See attached map.
I've tried using the TSEnergy sort, which didn't seem to do anything (?), and as well using the 'Unit Compare Vital" validator, but that just seems to be able to compare one unit's energy to a preset value. Does anyone know of a way to compare the energy of the two units?
I solved this problem - kind of. Although I couldn't figure out how to compare two units, I did come across an important piece of information - TSEnergy softs in order of ASCENDING energy amounts XD. All you have to do is create a custom Sort Target data type and check the "Descending" box.
So I have multiple units in the same area, all of which have an auto-casted ability to steal another unit's energy. However, I want to make it so that the auto-cast will only target units if they have more energy than the unit which hosts (casts) the ability. (ie in the long run, the units will all have the same energy). See attached map.
I've tried using the TSEnergy sort, which didn't seem to do anything (?), and as well using the 'Unit Compare Vital" validator, but that just seems to be able to compare one unit's energy to a preset value. Does anyone know of a way to compare the energy of the two units?
Thanks
Anyone? I'm pretty stuck on this...
For those interrested....
I solved this problem - kind of. Although I couldn't figure out how to compare two units, I did come across an important piece of information - TSEnergy softs in order of ASCENDING energy amounts XD. All you have to do is create a custom Sort Target data type and check the "Descending" box.