Jump to content

[Fixed] AI Switch spamming leading to trivial battles


Digger

Recommended Posts

This is an issue I have noticed on multiple occasions, the AI will repeatedly switch during battle giving the player multiple free hits.

 

I'm not an AI programmer, but from my experiences I believe the issue seems to be when an AI pokemon gets knocked low by something that will outspeed it. 

This will often lead to the AI switching, presumably this is the AI "saving" their pokemon for later use against something slower, which makes sense if the pokemon switching in can take some hits.

If it can't soak the damage however one of two things will happen

 

1. the freshly sent out pokemon dies -> the AI sends back out the near dead pokemon, realizes it about to get KO'd for nothing and switches to "save" again

I'm making an educated guess that this has to do with the AI following a set order to send things out after a KO, going for the first on the list without checking to see if sending it out will actually make sense. Then once its out it makes the "am I going to get KO'd for nothing?" check into switch again

 

2. the freshly sent out pokemon almost gets KO'd, and if it is at low health and slower it might lead to another "saving" switch.

 

I'm not sure what the best way to fix the behaviour is, but having  the AI make the "outspeed into KO" check before sending out a damaged pokemon instead of after might be part of the solution.

Having it make a "guess" on how much damage the switch-in will take depending on the last move used by the player and choosing not to switch it if it ends up above a certain threshold could also be a thing.

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...