pmariglia / showdown

A Pokemon Showdown Battle Bot written in Python
GNU General Public License v3.0
258 stars 176 forks source link

How to get about stat in battle? #165

Closed KlausRyu closed 8 months ago

KlausRyu commented 1 year ago

Hello, I want to ask about if I want to get the Pokemon stat(still have how many HP,etc) in battle, how can i get or print it out?

pmariglia commented 1 year ago

Assuming you are using the safest battle bot

You can add debug logs right in the find_best_move() function.

This is the Battle object that is being inherited by the BattleBot. Using a debugger to stop execution in that function could also help.

klauswonder commented 1 year ago

hello there, can I ask about how I can get about what Pokemon I have, and what pokemon the opponent have.

I'm using random mode battle, and safest battle bot.

I was got about the pokemon battle stat and i print it out in config.py. I cant get any info about what 6Pokemon I using in the debug log.