Skip to content

Team structure formats

Nicolas Lindbloom-Airey edited this page Jun 13, 2018 · 2 revisions

The values that make a pokemon "team"

  • name
  • species
  • item
  • ability
  • nature
  • 1 - 4 moves, usually 4
  • effort values or EVs or evs, 6 ints from 0-252 inclusive in order by normal pokemon stat order, (HP, ATK, DEF, SPA, SPD, SPE)
  • individual values or IVs or ivs, exact same as evs but with a range of 0-31
  • gender (M or F or genderless), usually omitted as it has little to no effect on a battle
  • shiny - true or false, this is purely aesthetic
  • level - usually omitted because a higher level is usually better and there is always a max level so we assume max level if omitted
  • happiness - int from 0-255 but i am removing it from this project

Text

This is how the teambuilder on pokemon showdown imports and exports and how most of the community shares their teams. Text-based human readable in the following format. EVs with a value of 0 are omitted because that is default. IVs with a value of 31 are omitted because that is default.

Name (Species) (Gender) @ Item or Species @ Item if Name and Gender are omitted
EVs: X HP / Y Atk / Z Def
IVs: W HP / U Spe
- Move1
- Move2
- Move3
- Move4

JSON

This is a nicer format for coding because it does not require parsing.

{
"name": "",
"species": "",
"item": "",
"ability": "",
"nature": "",
"moves": ["", "", "", ""],
"evs": [0, 0, 0, 0, 0, 0],
"ivs": [0, 0, 0, 0, 0, 0],
"gender": "",
"level": 0,
"shiny": false
}

Genome

This format I thought of, and may be useless. Every move, ability, item and so on has an index number in the pokemon games. Move number 1 is pound. Pokemon number 1 is bulbasaur and so on. Using this, I condensed important info into a list/array of twenty numbers. Order is important and was picked arbitrarily.

species, moves, ability, items, and evs all use 3 digits
nature and ivs use 2 digits

[ species, move1, move2, move3, move4, ability, nature, item, ev_HP, ev_Atk, ev_Def, ev_Spa, ev_Spd, ev_Spe, iv_HP, iv_Atk, iv_Def, iv_Spa, iv_Spd, iv_Spe ]
or you can concatenate all the values to one long
I prefer a list/array

Examples

text

Kartana @ Choice Band
Ability: Beast Boost
EVs: 252 Atk / 4 SpD / 252 Spe
Jolly Nature
- Leaf Blade
- Smart Strike
- Sacred Sword
- Knock Off

json

{
"species": "kartana",
"item": "choiceband",
"ability": "beastboost",
"nature": "jolly",
"moves": ["leafblade", "smartstrike", "sacredsword", "knockoff"],
"evs": [0, 252, 0, 0, 4, 252],
"ivs": [31, 31, 31, 31, 31, 31],
}

genome

798,348,684,533,282,224,13,220,0,252,0,0,4,252,31,31,31,31,31,31
or
79834868453328222413220000252000000004252313131313131

Clone this wiki locally