Skip to content
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

AI Flag to help better predict switches and react accordingly #5227

Open
pkmnsnfrn opened this issue Aug 20, 2024 · 0 comments
Open

AI Flag to help better predict switches and react accordingly #5227

pkmnsnfrn opened this issue Aug 20, 2024 · 0 comments
Labels
augPollFlag category: battle-ai Pertains to Battle Engine Upgrade's AI feature-request Requests a new feature

Comments

@pkmnsnfrn
Copy link
Collaborator

Description

AI_FLAG_SWITCH_IN_AWARE

A flag that helps the AI consider the player's likely switch-ins and pick moves accordingly

(e.g. the player has a mon out that is about to be KO'd by Earthquake, but also has Gligar in the back. AI will have a chance to use Ice Beam over Earthquake if this flag is set, even if Ice Beam will not KO the current mon)

I see this flag doing the following:
0) this flag does not do anything if the player's mon is trapped/cannot switch

  1. a score penalty for moves that the player has a mon with an immunity to
  2. a (smaller) score penalty for moves that the player has a mon with a 4x resistance to
  3. a score bonus for moves which are not resisted by the player's party
  4. a further score bonus for moves which are supereffective on the player's party/would KO switch ins
  5. a score bonus on stat-raising moves if using one would improve the situation vs the rest of the player's party and AI has a fast kill on current mon

(eg: I could KO the current mon, but the player could switch in a resist. If I dragon dance, I can sweep the player's team, therefore dragon dance)

Essentially, the goal is to make it harder for the player to abuse predictable AI - to make the AI behave more like your typical Showdown player rather than a bot.

Discord contact info

Jinnora

@pkmnsnfrn pkmnsnfrn added category: battle-ai Pertains to Battle Engine Upgrade's AI feature-request Requests a new feature augPollFlag labels Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
augPollFlag category: battle-ai Pertains to Battle Engine Upgrade's AI feature-request Requests a new feature
Projects
None yet
Development

No branches or pull requests

1 participant