-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic AI Functions #4908
Dynamic AI Functions #4908
Conversation
Could you add the function |
Sure. The idea behind not using a flag is to be able to customize AI for specific trainers, e.g. maybe you want your gym leaders and E4 to have specialized AI, there aren't 12 ai flags available so this would help with that |
done. ready for review |
I've only just this and ghoul this is really really cool, I've been dedicating a few AI flags to "important" trainer battles where I want specific behaviour and didn't even catch this in the PR stage. This is super sweet, thanks for sharing! :D |
This feature lets you assign custom AI functions via scripting to customize AI logic for specific battles. This could be useful for boss fights, totem bosses, etc that you want specialized AI logic for.
An example based on use case in voyager:
where
AI_TagBattlePreferFoe
prioritizes attacking the opposite battler index