YesNoOk
avatar

my akainu char's AI problem (Read 156 times)

Started by NBA01, October 25, 2011, 08:07:09 pm
Share this topic:
my akainu char's AI problem
New #1  October 25, 2011, 08:07:09 pm
  • **
  • Surgeon of Death
    • Turkey
Last Edit: October 26, 2011, 09:08:13 am by NBA01
Re: my akainu char's AI problem
#2  October 25, 2011, 10:03:06 pm
  • ****
    • Hungary
    • seravy.x10.mx/Wordpress
It seems to use the Helper AI activation method, and an incorrectly implemented one at that (I don't see any custom state detection code or variable, and that would be necessary to avoid false positives, and even other than that, the code is quite different from what it should be.).
You should use an AI activation method you understand instead of using an incorrect copy of the most complicated and least reliable one.

I would suggest using the AILevel trigger of 1.0 simply because it is better and allows you to detect the selected difficulty level (no one likes a character that is hard to beat when the difficulty is set to easy), but if you absolutely do not want your character to be 1.0 exclusive, then use the IsHomeTeam and the Human Impossible commands methods. Both are easy, and don't need any additional variables.
The XOR and helper methods are more complicated and need additional variables which the most commonly used versions don't have (simply because the people using the method don't understand why the variables are necessary), resulting in false positives (meaning the AI will turn on when it's not supposed to)