poke-env
poke-env copied to clipboard
Timer for Fields/Weather/SideConditions?
Hiya, I was wondering if there's any way to access the timer for weather and other effects like reflect etc. On Pokemon Showdown this is usually visible as a small piece of text showing the minimum number of turns the effect lasts as well as the maximum possible turns.
Image for reference:
While it's definitely possible to calculate this using the turn number associated with the effect, it's a bit difficult since different moves might have different durations. Is there any build-in way to obtain this information?
Hi @akashsara,
Thanks for opening this issue. This is a good idea, but I'm not sure what's the best way to proceed with regards to storing move-based data for different generations.
- Would a simple version focusing on weather, screens and terrains be sufficiently useful as a first-order approach?
- Are you aware of a place where such a dataset would be stored (maybe in PS's client?)
For context, I'm essentially trying to create a state that composes of basically all the available battle information. The figure in this paper more or less covers everything I'm looking for.
- I think for my purposes it would make more sense to have everything available. For the time being I think I'll just use the current weather and the number of turns since it started in my state.
- Unfortunately I'm not too familiar with PS, so I won't be of much help there. This is the codebase for that paper. It might be of some help maybe?