Skip to content

A small command line utility for keeping track of Effort Values while training Pokemon.

Notifications You must be signed in to change notification settings

The-Fireplace/ev-tracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pokémon EV Tracker

A small command line utility for keeping track of Effort Values while training Pokemon.

Usage examples

To query the database for a Pokemon species and their EV yield, use the ev command. This takes either the Pokedex number of a species or the species name. If the name is provided but not found, a fuzzy search is done to return possible matches:

ev ev 600
>#600 Klang      +2 Defense

ev ev charizard
>#006 Charizard  +3 Special Attack

ev ev lia
> No match found for 'lia'.
> Did you mean:
>   #484 Palkia     +3 Special Attack
>   #281 Kirlia     +2 Special Attack
>   #207 Gligar     +1 Defense

To see which Pokemon you are currently tracking use the list command:

ev list
> No tracked Pokemon

To track a new Pokemon use the track command. The integer value is the id of the newly tracked Pokemon:

ev track Magikarp --name=Ultrados --pokerus
> 1 Ultrados (Magikarp)

You can also track a new Pokemon by it's Pokedex number.

ev track 610
> 2 Axew

The tracker always has an active team that is used for the battle command. You can see the current team using the team command, or the list command and looking for the * symbol. To see Pokemon that are not in the team, use the box command.

ev team
> No tracked Pokemon is on the team.
> Add a pokemon to the team using the 'withdraw <id>' command.

ev withdraw 2
> 2 Axew

ev list
>   1 Ultrados (Magikarp)
> * 2 Axew

ev withdraw 1
> 1 Ultrados (Magikarp)

ev list
> * 1 Ultrados (Magikarp)
> * 2 Axew

You can remove a Pokemon from the team using the deposit command:

ev deposit 2
> 2 Axew

ev list
> * 1 Ultrados (Magikarp)
>   2 Axew

You can get the full status of the selected Pokemon using the status command:

ev status 1
> 1 Ultrados (Magikarp)
> Location: Team
> Pokerus
> No EVs

To record battles and update EV values, use the battle command:

ev battle Lillipup
> Battled 1 × Lillipup (#506) which has a base EV reward of +1 Attack
>
> 1 Ultrados (Magikarp) new EVs:
> Attack: 2 (+2)

You can also record multiple battles using the -c or --count option of the battle command:

ev battle Lillipup -c3
> Battled 3 × Lillipup (#506) which has a base EV reward of +1 Attack
> 
> 1 Ultrados (Magikarp) new EVs:
> Attack: 8 (+6)

To update the status of the current Pokemon, use the update command:

ev update --item="Power Bracer"
> 1 Ultrados (Magikarp)
> Location: Team
> Pokerus
> Item: Power Bracer
> Attack: 8

As with the other commands, you can refer to a Pokemon species by number:

ev battle Trubish
> No match found for 'Trubish'
> Did you mean:
>   #568 Trubbish   +1 Speed

ev battle 568
> Battled 1 × Trubbish (#568) which has a base EV reward of +1 Speed
> 
> 1 Ultrados (Magikarp)
> Attack: 8 (+0)
> Speed: 2 (+2)

To record vitamins, EV reduction berries, Feathers, or other consumables that modify EVs, use the vitamin command:

ev vitamin 1 Carbos
> 1 Ultrados (Magikarp) new EVs:
> Attack: 8 (+0)
> Speed: 12 (+10)

ev vitamin 1 "Perilous Soup"
> 1 Ultrados (Magikarp) new EVs:
> Attack: 0 (-8)
> Speed: 0 (-12)

To stop tracking a Pokemon, use the release command:

ev release 2
> Stopped tracking Axew

EV Calculations

Effort Values for each battle are generally calculated as such:

ev[stat] = min(ev[stat] + (pokemon.evs[stat] + item.evs[stat]) * pokerus, 252)

The total EVs for a Pokemon are also capped at 510.

Storage

Currently the tracker saves after every operation to a file your User directory called .ev-tracker. This will be a different location depending on your operating system. If you would like to use a custom tracker file location, set the --infile option before the sub-command. See ev --help for more information.

The tracker file is stored as JSON and is fairly trivial to include in other projects, or directly using Javascript.

Issues, Contact, etc.

ev-tracker was hacked together very quickly to provide a fairly minimal set of functionality for my own personal needs.

If you'd like to contribute or provide feedback, then github is the best place to do that.

About

A small command line utility for keeping track of Effort Values while training Pokemon.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Batchfile 0.1%