smogon / pokemon-showdown

Pokémon battle simulator.
https://pokemonshowdown.com
MIT License
4.77k stars 2.79k forks source link

Changing Teams Mid-Battle (ie. Gaining EVs, leveling up, etc) #9939

Closed dumbasaroc closed 7 months ago

dumbasaroc commented 10 months ago

Hi! This is probably going to sound like a dumb question, but is there anything currently set in place to alter certain parts of teams during battle? I'm trying to create the basis of a "standard" battle from mainline games (ie. EXP, leveling up, gaining EVs), and that functionality would add a lot of accuracy to my battler.

Zarel commented 10 months ago

Currently that would require a manual eval.

Zarel commented 10 months ago

As in, sending the >eval [code] message to the BattleStream:

https://github.com/smogon/pokemon-showdown/blob/d24fdbaa770bbe0e8a8a5eab32cd2188c8c00a34/sim/battle-stream.ts#L154