Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pykemon import get
- f = file("pokemon.txt", 'w')
- for n in range(1, 152):
- pokemonD = "'{0}':{{'name':'{0}', 'health':{1}, 'attack':{2}, 'defense':{3}, 'spAttack':{4}, 'spDefense':{5}, 'speed':{6}, 'total':{7}, 'catchRate':{8}, 'abilities':{9}, 'eggGroups':{10}, 'evolutions':{11}, 'types':{12}, 'moves':{13}, 'eggCycles':{14}, 'evYield':{15}, 'exp':{16}, 'growthRate':{17}, 'height':{18}, 'weight':{19}, 'happiness':{20}, 'maleFemaleRatio':{21}, 'num':{22}}}\n".format(get(pokemon=n).name, get(pokemon=n).hp, get(pokemon=n).attack, get(pokemon=n).defense, get(pokemon=n).sp_atk, get(pokemon=n).sp_def, get(pokemon=n).speed, get(pokemon=n).total, get(pokemon=n).catch_rate, str(get(pokemon=n).abilities.keys()), str(get(pokemon=n).egg_groups.keys()), str(get(pokemon=n).evolutions.keys()), str(get(pokemon=n).types.keys()), str(get(pokemon=n).moves.keys()), get(pokemon=n).egg_cycles, get(pokemon=n).ev_yield, get(pokemon=n).exp, str(get(pokemon=n).growth_rate), get(pokemon=n).height, get(pokemon=n).weight, get(pokemon=n).happiness, str(get(pokemon=n).male_female_ratio), get(pokemon=n).id)
- f.write(str(pokemonD).encode('ascii', 'ignore'))
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment