Think of how you would like the character to play and react, and code it. AI is nothing more than just preparing scenarios and adding them to a list
Thank you, I understand that, but in terms of coding things. Like, recently, I learned that it's not recommended to use more than 100 random, because random is checked every tick and it results in spamming, also I've found out some people would use variables instead of random. I ask for this kind of tips. What should and should not people do when coding AI? What people use to make AI better, more human-like and AIlevel dependable? When Ailevel - 1 it's weak and AIlevel - 8 actually strong and smart. Some useful triggers or probably any examples, since I am a beginner and would like to learn some alternative ways instead of doing anything like this:
Spoiler, click to toggle visibilty
Which ends up in the AI standing in one place, charging and spamming specials OR running to you recklessly to spam its combos.