I was wondering how I could get my Battle AI to attack the person with the highest number of a certain stat, in my case Threat. Is there a way I can do that?
You can use check status node with a comparison requirement. If skills go from 1- to 10, then you first check if opponent has status higher than 9. If the condition is failed, then attach to the failed node a next check status node, which seeks opponents with status higher than 8, and then do the same for 7,6 and so on.
Use a Get Status Value node - it will select a target with the highest or lowest defined status value.
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!