1. New to the forums? Check out our Mentorship Program!
    Our mentors will answer your questions and help you become a part of the community!
  2. Welcome to Smogon Forums! Please take a minute to read the rules.

Programming Awesome mIRC IV and Stat calculator

Discussion in 'Technical Projects' started by genious999, Jul 9, 2007.

  1. genious999

    genious999

    Joined:
    May 25, 2007
    Messages:
    90
    Here is an awesome mIRC IV and Stat calculator I made. The IV Calculator is just as accurate as Metalkid's, and works pretty much the same way. Once the IVs have been calculated, it automatically copies them in this way on one line:
    "Timid Magikarp - #129: 31 / 27 / 31 / 31 / 1 / 31 :: Hidden Power Dark 49" , speed last.


    To load the code in mIRC, press alt+r and go to the Remotes tab. Go to File -> New to create a new script file. Paste the whole script into that new file, then hit OK. After the script is loaded, right click in any window and select "Pokemon Calculators" to run it. Any comments on how to make it better are appreciated.


    ****EDIT: I found a bug dealing with the Hidden Power base power calculations, it wasnt giving the correct power. I also fixed a slight problem where if you selected a Pokemon/Nature in one tab, it would not allow you to select a different Pokemon/Nature in the other tab. However, everyone will need to re-copy the script.


    Code:
     alias ivcalculator {
      if (%firsttimerunningbobsivcalculator != no) writepokemonfiles
      write -c stats.txt
      unset %no.evs
      if ($dialog(iv)) { dialog -x iv iv | dialog -m iv iv | halt }
      set %1.level 1
      var %b = 2
      var %a = 20
      while (%b <= %a) {
        set % $+ %b $+ .level $calc(%1.level + %b - 1)
        inc %b
      }
      dialog -m iv iv
    }
    dialog iv {
      option dbu
      title "BoB's IV Calculator Version 1.1"
      size -1 -1 280 320
      tab "IV Calculator", 1, -1 -1 280 350
      tab "Stat Calculator", 3
      text "Nature:" 369, 150 15 50 8, tab 1
      edit "" 302, 30 22 60 10, tab 1
      edit "" 305, 90 22 20 10, tab 1
      edit "" 301, 150 22 50 10, tab 1
      combo 304, 30 32 88 10, drop tab 1
      combo 303, 150 32 55 10, drop tab 1
      text "Pokemon:" 370, 30 15 50 7, tab 1
      text "Base Stats:" 307, 110 58 30 10, tab 1
      text "Hp:" 308, 10 65 20 10, tab 1
      text %hp, 309, 20 65 9 10, tab 1
      text "Attack:" 310, 35 65 17 10, tab 1
      text %attack, 311, 53 65 9 10, tab 1
      text "Defense:" 312, 67 65 21 10, tab 1
      text %defense, 313, 90 65 9 10, tab 1
      text "Special Attack:" 314, 104 65 39 10, tab 1
      text %sp.attack, 315, 141 65 9 10, tab 1
      text "Special Defense:" 316, 155 65 40 10, tab 1
      text %sp.defense, 317, 196 65 10 9, tab 1
      text "Speed:" 318, 210 65 17 10, tab 1
      text %speed, 319, 229 65 9 9, tab 1
      text "Stat Raised:" 320, 30 80 30 10, tab 1
      text %raise , 321, 63 80 45 10, tab 1
      text "Stat Lowered:" 322, 98 80 35 10, tab 1
      text %lower, 323, 135 80 45 10, tab 1
      text "Starting Level:" 324, 40 47 37 10,tab 1
      edit "1" 325, 79 45 15 10, tab 1
      button "Refresh" 298, 100 45 25 10, tab 1
      button "Reset" 297, 133 45 20 10, tab 1
      text "Level" 261, 25 112 12 10, tab 1
      text %1.level, 401, 39 112 10 10,  tab 1
      edit "" 21, 53 110 15 10,  tab 1
      edit "" 22, 70 110 15 10,  tab 1
      edit "" 23, 87 110 15 10,  tab 1
      edit "" 24, 104 110 15 10,  tab 1
      edit "" 25, 121 110 15 10,  tab 1
      edit "" 26, 138 110 15 10,  tab 1
      edit "0" 27, 155 110 15 10,  tab 1
      edit "0" 28, 172 110 15 10,  tab 1
      edit "0" 29, 189 110 15 10,  tab 1
      edit "0" 30, 206 110 15 10,  tab 1
      edit "0" 31, 223 110 15 10,  tab 1
      edit "0" 32, 240 110 15 10,  tab 1
      text "Level" 262, 25 122 12 10,  tab 1
      text %2.level, 402, 39 122 10 10,  tab 1
      edit "" 33, 53 120 15 10,  tab 1
      edit "" 34, 70 120 15 10,  tab 1
      edit "" 35, 87 120 15 10,  tab 1
      edit "" 36, 104 120 15 10,  tab 1
      edit "" 37, 121 120 15 10, tab 1
      edit "" 38, 138 120 15 10, tab 1
      edit "0" 39, 155 120 15 10, tab 1
      edit "0" 40, 172 120 15 10, tab 1
      edit "0" 41, 189 120 15 10, tab 1
      edit "0" 42, 206 120 15 10, tab 1
      edit "0" 43, 223 120 15 10, tab 1
      edit "0" 44, 240 120 15 10, tab 1
      text "Level" 263, 25 132 12 10, tab 1
      text %3.level, 403, 39 132 10 10, tab 1
      edit "" 45, 53 130 15 10, tab 1
      edit "" 46, 70 130 15 10, tab 1
      edit "" 47, 87 130 15 10, tab 1
      edit "" 48, 104 130 15 10, tab 1
      edit "" 49, 121 130 15 10, tab 1
      edit "" 50, 138 130 15 10, tab 1
      edit "0" 51, 155 130 15 10, tab 1
      edit "0" 52, 172 130 15 10, tab 1
      edit "0" 53, 189 130 15 10, tab 1
      edit "0" 54, 206 130 15 10, tab 1
      edit "0" 55, 223 130 15 10, tab 1
      edit "0" 56, 240 130 15 10, tab 1
      text "Level" 264, 25 142 12 10, tab 1
      text %4.level, 404, 39 142 10 10, tab 1
      edit "" 57, 53 140 15 10, tab 1
      edit "" 58, 70 140 15 10, tab 1
      edit "" 59, 87 140 15 10, tab 1
      edit "" 60, 104 140 15 10, tab 1
      edit "" 61, 121 140 15 10, tab 1
      edit "" 62, 138 140 15 10, tab 1
      edit "0" 63, 155 140 15 10, tab 1
      edit "0" 64, 172 140 15 10, tab 1
      edit "0" 65, 189 140 15 10, tab 1
      edit "0" 66, 206 140 15 10, tab 1
      edit "0" 67, 223 140 15 10, tab 1
      edit "0" 68, 240 140 15 10, tab 1
      text "Level" 265, 25 152 12 10, tab 1
      text %5.level, 405, 39 152 10 10, tab 1
      edit "" 69, 53 150 15 10, tab 1
      edit "" 70, 70 150 15 10, tab 1
      edit "" 71, 87 150 15 10, tab 1
      edit "" 72, 104 150 15 10, tab 1
      edit "" 73, 121 150 15 10, tab 1
      edit "" 74, 138 150 15 10, tab 1
      edit "0" 75, 155 150 15 10, tab 1
      edit "0" 76, 172 150 15 10, tab 1
      edit "0" 77, 189 150 15 10, tab 1
      edit "0" 78, 206 150 15 10, tab 1
      edit "0" 79, 223 150 15 10, tab 1
      edit "0" 80, 240 150 15 10, tab 1
      text "Level" 266, 25 162 12 10, tab 1
      text %6.level, 406, 39 162 10 10, tab 1
      edit "" 81, 53 160 15 10, tab 1
      edit "" 82, 70 160 15 10, tab 1
      edit "" 83, 87 160 15 10, tab 1
      edit "" 84, 104 160 15 10, tab 1
      edit "" 85, 121 160 15 10, tab 1
      edit "" 86, 138 160 15 10, tab 1
      edit "0" 87, 155 160 15 10, tab 1
      edit "0" 88, 172 160 15 10, tab 1
      edit "0" 89, 189 160 15 10, tab 1
      edit "0" 90, 206 160 15 10, tab 1
      edit "0" 91, 223 160 15 10, tab 1
      edit "0" 92, 240 160 15 10, tab 1
      text "Level" 267, 25 172 12 10, tab 1
      text %7.level, 407, 39 172 10 10, tab 1
      edit "" 93, 53 170 15 10, tab 1
      edit "" 94, 70 170 15 10, tab 1
      edit "" 95, 87 170 15 10, tab 1
      edit "" 96, 104 170 15 10, tab 1
      edit "" 97, 121 170 15 10, tab 1
      edit "" 98, 138 170 15 10, tab 1
      edit "0" 99, 155 170 15 10, tab 1
      edit "0" 100, 172 170 15 10, tab 1
      edit "0" 101, 189 170 15 10, tab 1
      edit "0" 102, 206 170 15 10, tab 1
      edit "0" 103, 223 170 15 10, tab 1
      edit "0" 104, 240 170 15 10, tab 1
      text "Level" 268, 25 182 12 10, tab 1
      text %8.level, 408, 39 182 10 10, tab 1
      edit "" 105, 53 180 15 10, tab 1
      edit "" 106, 70 180 15 10, tab 1
      edit "" 107, 87 180 15 10, tab 1
      edit "" 108, 104 180 15 10, tab 1
      edit "" 109, 121 180 15 10, tab 1
      edit "" 110, 138 180 15 10, tab 1
      edit "0" 111, 155 180 15 10, tab 1
      edit "0" 112, 172 180 15 10, tab 1
      edit "0" 113, 189 180 15 10, tab 1
      edit "0" 114, 206 180 15 10, tab 1
      edit "0" 115, 223 180 15 10, tab 1
      edit "0" 116, 240 180 15 10, tab 1
      text "Level" 269, 25 192 12 10, tab 1
      text %9.level, 409, 39 192 10 10, tab 1
      edit "" 117, 53 190 15 10, tab 1
      edit "" 118, 70 190 15 10, tab 1
      edit "" 119, 87 190 15 10, tab 1
      edit "" 120, 104 190 15 10, tab 1
      edit "" 121, 121 190 15 10, tab 1
      edit "" 122, 138 190 15 10, tab 1
      edit "0" 123, 155 190 15 10, tab 1
      edit "0" 124, 172 190 15 10, tab 1
      edit "0" 125, 189 190 15 10, tab 1
      edit "0" 126, 206 190 15 10, tab 1
      edit "0" 127, 223 190 15 10, tab 1
      edit "0" 128, 240 190 15 10, tab 1
      text "Level" 270, 25 202 12 10, tab 1
      text %10.level, 410, 39 202 10 10, tab 1
      edit "" 129, 53 200 15 10, tab 1
      edit "" 130, 70 200 15 10, tab 1
      edit "" 131, 87 200 15 10, tab 1
      edit "" 132, 104 200 15 10, tab 1
      edit "" 133, 121 200 15 10, tab 1
      edit "" 134, 138 200 15 10, tab 1
      edit "0" 135, 155 200 15 10, tab 1
      edit "0" 136, 172 200 15 10, tab 1
      edit "0" 137, 189 200 15 10, tab 1
      edit "0" 138, 206 200 15 10, tab 1
      edit "0" 139, 223 200 15 10, tab 1
      edit "0" 140, 240 200 15 10, tab 1
      text "Level" 271, 25 212 12 10, tab 1
      text %11.level, 411, 39 212 10 10, tab 1
      edit "" 141, 53 210 15 10, tab 1
      edit "" 142, 70 210 15 10, tab 1
      edit "" 143, 87 210 15 10, tab 1
      edit "" 144, 104 210 15 10, tab 1
      edit "" 145, 121 210 15 10, tab 1
      edit "" 146, 138 210 15 10, tab 1
      edit "0" 147, 155 210 15 10, tab 1
      edit "0" 148, 172 210 15 10, tab 1
      edit "0" 149, 189 210 15 10, tab 1
      edit "0" 150, 206 210 15 10, tab 1
      edit "0" 151, 223 210 15 10, tab 1
      edit "0" 152, 240 210 15 10, tab 1
      text "Level" 272, 25 222 12 10, tab 1
      text %12.level, 412, 39 222 10 10, tab 1
      edit "" 153, 53 220 15 10, tab 1
      edit "" 154, 70 220 15 10, tab 1
      edit "" 155, 87 220 15 10, tab 1
      edit "" 156, 104 220 15 10, tab 1
      edit "" 157, 121 220 15 10, tab 1
      edit "" 158, 138 220 15 10, tab 1
      edit "0" 159, 155 220 15 10, tab 1
      edit "0" 160, 172 220 15 10, tab 1
      edit "0" 161, 189 220 15 10, tab 1
      edit "0" 162, 206 220 15 10, tab 1
      edit "0" 163, 223 220 15 10, tab 1
      edit "0" 164, 240 220 15 10, tab 1
      text "Level" 273, 25 232 12 10, tab 1
      text %13.level, 413, 39 232 10 10, tab 1
      edit "" 165, 53 230 15 10, tab 1
      edit "" 166, 70 230 15 10, tab 1
      edit "" 167, 87 230 15 10, tab 1
      edit "" 168, 104 230 15 10, tab 1
      edit "" 169, 121 230 15 10, tab 1
      edit "" 170, 138 230 15 10, tab 1
      edit "0" 171, 155 230 15 10, tab 1
      edit "0" 172, 172 230 15 10, tab 1
      edit "0" 173, 189 230 15 10, tab 1
      edit "0" 174, 206 230 15 10, tab 1
      edit "0" 175, 223 230 15 10, tab 1
      edit "0" 176, 240 230 15 10, tab 1
      text "Level" 274, 25 242 12 10, tab 1
      text %14.level, 414, 39 242 10 10, tab 1
      edit "" 177, 53 240 15 10, tab 1
      edit "" 178, 70 240 15 10, tab 1
      edit "" 179, 87 240 15 10, tab 1
      edit "" 180, 104 240 15 10, tab 1
      edit "" 181, 121 240 15 10, tab 1
      edit "" 182, 138 240 15 10, tab 1
      edit "0" 183, 155 240 15 10, tab 1
      edit "0" 184, 172 240 15 10, tab 1
      edit "0" 185, 189 240 15 10, tab 1
      edit "0" 186, 206 240 15 10, tab 1
      edit "0" 187, 223 240 15 10, tab 1
      edit "0" 188, 240 240 15 10, tab 1
      text "Level" 275, 25 252 12 10, tab 1
      text %15.level, 415, 39 252 10 10, tab 1
      edit "" 189, 53 250 15 10, tab 1
      edit "" 190, 70 250 15 10, tab 1
      edit "" 191, 87 250 15 10, tab 1
      edit "" 192, 104 250 15 10, tab 1
      edit "" 193, 121 250 15 10, tab 1
      edit "" 194, 138 250 15 10, tab 1
      edit "0" 195, 155 250 15 10, tab 1
      edit "0" 196, 172 250 15 10, tab 1
      edit "0" 197, 189 250 15 10, tab 1
      edit "0" 198, 206 250 15 10, tab 1
      edit "0" 199, 223 250 15 10, tab 1
      edit "0" 200, 240 250 15 10, tab 1
      text "Level" 276, 25 262 12 10, tab 1
      text %16.level, 416, 39 262 10 10, tab 1
      edit "" 201, 53 260 15 10, tab 1
      edit "" 202, 70 260 15 10, tab 1
      edit "" 203, 87 260 15 10, tab 1
      edit "" 204, 104 260 15 10, tab 1
      edit "" 205, 121 260 15 10, tab 1
      edit "" 206, 138 260 15 10, tab 1
      edit "0" 207, 155 260 15 10, tab 1
      edit "0" 208, 172 260 15 10, tab 1
      edit "0" 209, 189 260 15 10, tab 1
      edit "0" 210, 206 260 15 10, tab 1
      edit "0" 211, 223 260 15 10, tab 1
      edit "0" 212, 240 260 15 10, tab 1
      text "Level" 277, 25 272 12 10, tab 1
      text %17.level, 417, 39 272 10 10, tab 1
      edit "" 213, 53 270 15 10, tab 1
      edit "" 214, 70 270 15 10, tab 1
      edit "" 215, 87 270 15 10, tab 1
      edit "" 216, 104 270 15 10, tab 1
      edit "" 217, 121 270 15 10, tab 1
      edit "" 218, 138 270 15 10, tab 1
      edit "0" 219, 155 270 15 10, tab 1
      edit "0" 220, 172 270 15 10, tab 1
      edit "0" 221, 189 270 15 10, tab 1
      edit "0" 222, 206 270 15 10, tab 1
      edit "0" 223, 223 270 15 10, tab 1
      edit "0" 224, 240 270 15 10, tab 1
      text "Level" 278, 25 282 12 10, tab 1
      text %18.level, 418, 39 282 10 10, tab 1
      edit "" 225, 53 280 15 10, tab 1
      edit "" 226, 70 280 15 10, tab 1
      edit "" 227, 87 280 15 10, tab 1
      edit "" 228, 104 280 15 10, tab 1
      edit "" 229, 121 280 15 10, tab 1
      edit "" 230, 138 280 15 10, tab 1
      edit "0" 231, 155 280 15 10, tab 1
      edit "0" 232, 172 280 15 10, tab 1
      edit "0" 233, 189 280 15 10, tab 1
      edit "0" 234, 206 280 15 10, tab 1
      edit "0" 235, 223 280 15 10, tab 1
      edit "0" 236, 240 280 15 10, tab 1
      text "Level" 279, 25 292 12 10, tab 1
      text %19.level, 419, 39 292 10 10, tab 1
      edit "" 237, 53 290 15 10, tab 1
      edit "" 238, 70 290 15 10, tab 1
      edit "" 239, 87 290 15 10, tab 1
      edit "" 240, 104 290 15 10, tab 1
      edit "" 241, 121 290 15 10, tab 1
      edit "" 242, 138 290 15 10, tab 1
      edit "0" 243, 155 290 15 10, tab 1
      edit "0" 244, 172 290 15 10, tab 1
      edit "0" 245, 189 290 15 10, tab 1
      edit "0" 246, 206 290 15 10, tab 1
      edit "0" 247, 223 290 15 10, tab 1
      edit "0" 248, 240 290 15 10, tab 1
      text "Level" 280, 25 302 12 10, tab 1
      text %20.level, 420, 39 302 10 10, tab 1
      edit "" 249, 53 300 15 10, tab 1
      edit "" 250, 70 300 15 10, tab 1
      edit "" 251, 87 300 15 10, tab 1
      edit "" 252, 104 300 15 10, tab 1
      edit "" 253, 121 300 15 10, tab 1
      edit "" 254, 138 300 15 10, tab 1
      edit "0" 255, 155 300 15 10, tab 1
      edit "0" 256, 172 300 15 10, tab 1
      edit "0" 257, 189 300 15 10, tab 1
      edit "0" 258, 206 300 15 10, tab 1
      edit "0" 259, 223 300 15 10, tab 1
      edit "0" 260, 240 300 15 10, tab 1
      Box "Stats:" 282, 52 92 102 219, tab 1
      text "HP" 283, 53 102 15 8, tab 1
      text "Atk" 284, 70 102 15 8, tab 1
      text "Def" 285, 87 102 15 8, tab 1
      text "SAtk" 286, 104 102 15 8, tab 1
      text "SDef" 287, 121 102 15 8, tab 1
      text "Speed" 288, 138 102 15 8, tab 1
      box "EVs:" 289, 153 92 103 219, tab 1
      text "HP" 290, 155 102 15 8, tab 1
      text "Atk" 291, 172 102 15 8, tab 1
      text "Def" 292, 189 102 15 8, tab 1
      text "SAtk" 293, 206 102 15 8, tab 1
      text "SDef" 294, 223 102 15 8, tab 1
      text "Speed" 295, 240 102 15 8, tab 1
      Button "Calculate!" 296, 160 45 30 10, tab 1
      check "Disable EVs" 281, 200 45 40 10, tab 1
      text "Nature:" 600, 150 15 50 8, tab 3
      edit "" 601, 30 22 60 10, tab 3
      edit "" 602, 90 22 20 10, tab 3
      edit "" 603, 150 22 50 10, tab 3
      combo 604, 30 32 88 10, drop tab 3
      combo 605, 150 32 55 10, drop tab 3
      text "Pokemon:" 606, 30 15 50 7, tab 3
      text "Base Stats:" 607, 110 58 30 10, tab 3
      text "Hp:" 608, 10 65 20 10, tab 3
      text %hp, 609, 20 65 9 10, tab 3
      text "Attack:" 610, 35 65 17 10, tab 3
      text %attack, 611, 53 65 9 10, tab 3
      text "Defense:" 612, 67 65 21 10, tab 3
      text %defense, 613, 90 65 9 10, tab 3
      text "Special Attack:" 614, 104 65 39 10, tab 3
      text %sp.attack, 615, 141 65 9 10, tab 3
      text "Special Defense:" 616, 155 65 40 10, tab 3
      text %sp.defense, 617, 196 65 10 9, tab 3
      text "Speed:" 618, 230 65 17 10, tab 3
      text %speed, 619, 250 65 9 9, tab 3
      text "Stat Raised:" 620, 50 80 30 10, tab 3
      text %raise , 621, 83 80 45 10, tab 3
      text "Stat Lowered:" 622, 148 80 35 10, tab 3
      text %lower, 623, 185 80 45 10, tab 3
      text "Starting Level:" 624, 40 47 37 10,tab 3
      edit "1" 625, 79 45 15 10, tab 3
      text "Level" 626, 25 110 12 10, tab 3
      text %1.level, 627, 39 110 10 10,  tab 3
      edit "" 628, 53 110 15 10, tab 3
      edit "" 629, 70 110 15 10, tab 3
      edit "" 630, 87 110 15 10, tab 3
      edit "" 631, 104 110 15 10, tab 3
      edit "" 632, 121 110 15 10, tab 3
      edit "" 633, 138 110 15 10, tab 3
      edit "0" 634, 155 110 15 10, tab 3
      edit "0" 635, 172 110 15 10, tab 3
      edit "0" 636, 189 110 15 10, tab 3
      edit "0" 637, 206 110 15 10, tab 3
      edit "0" 638, 223 110 15 10, tab 3
      edit "0" 639, 240 110 15 10, tab 3
      text "Level" 640, 25 120 12 10, tab 3
      text %2.level, 641, 39 120 10 10, tab 3
      edit "" 642, 53 120 15 10, tab 3
      edit "" 643, 70 120 15 10, tab 3
      edit "" 644, 87 120 15 10, tab 3
      edit "" 645, 104 120 15 10, tab 3
      edit "" 646, 121 120 15 10, tab 3
      edit "" 647, 138 120 15 10, tab 3
      edit "0" 648, 155 120 15 10, tab 3
      edit "0" 649, 172 120 15 10, tab 3
      edit "0" 650, 189 120 15 10, tab 3
      edit "0" 651, 206 120 15 10, tab 3
      edit "0" 652, 223 120 15 10, tab 3
      edit "0" 653, 240 120 15 10, tab 3
      text "Level" 654, 25 130 12 10, tab 3
      text %3.level, 655, 39 130 10 10, tab 3
      edit "" 656, 53 130 15 10, tab 3
      edit "" 657, 70 130 15 10, tab 3
      edit "" 658, 87 130 15 10, tab 3
      edit "" 659, 104 130 15 10, tab 3
      edit "" 660, 121 130 15 10, tab 3
      edit "" 661, 138 130 15 10, tab 3
      edit "0" 662, 155 130 15 10, tab 3
      edit "0" 663, 172 130 15 10, tab 3
      edit "0" 664, 189 130 15 10, tab 3
      edit "0" 665, 206 130 15 10, tab 3
      edit "0" 666, 223 130 15 10, tab 3
      edit "0" 667, 240 130 15 10, tab 3
      text "Level" 668, 25 140 12 10, tab 3
      text %4.level, 669, 39 140 10 10, tab 3
      edit "" 670, 53 140 15 10, tab 3
      edit "" 671, 70 140 15 10, tab 3
      edit "" 672, 87 140 15 10, tab 3
      edit "" 673, 104 140 15 10, tab 3
      edit "" 674, 121 140 15 10, tab 3
      edit "" 675, 138 140 15 10, tab 3
      edit "0" 676, 155 140 15 10, tab 3
      edit "0" 677, 172 140 15 10, tab 3
      edit "0" 678, 189 140 15 10, tab 3
      edit "0" 679, 206 140 15 10, tab 3
      edit "0" 680, 223 140 15 10, tab 3
      edit "0" 681, 240 140 15 10, tab 3
      text "Level" 682, 25 150 12 10, tab 3
      text %5.level, 683, 39 150 10 10, tab 3
      edit "" 684, 53 150 15 10, tab 3
      edit "" 685, 70 150 15 10, tab 3
      edit "" 686, 87 150 15 10, tab 3
      edit "" 687, 104 150 15 10, tab 3
      edit "" 688, 121 150 15 10, tab 3
      edit "" 689, 138 150 15 10, tab 3
      edit "0" 690, 155 150 15 10, tab 3
      edit "0" 691, 172 150 15 10, tab 3
      edit "0" 692, 189 150 15 10, tab 3
      edit "0" 693, 206 150 15 10, tab 3
      edit "0" 694, 223 150 15 10, tab 3
      edit "0" 695, 240 150 15 10, tab 3
      Box "IVs:" 696, 52 92 102 69, tab 3
      text "HP" 697, 53 102 15 8, tab 3
      text "Atk" 698, 70 102 15 8, tab 3
      text "Def" 699, 87 102 15 8, tab 3
      text "SAtk" 700, 104 102 15 8, tab 3
      text "SDef" 701, 121 102 15 8, tab 3
      text "Speed" 702, 138 102 15 8, tab 3
      box "EVs:" 703, 153 92 103 69, tab 3
      text "HP" 704, 155 102 15 8, tab 3
      text "Atk" 705, 172 102 15 8, tab 3
      text "Def" 706, 189 102 15 8, tab 3
      text "SAtk" 707, 206 102 15 8, tab 3
      text "SDef" 708, 223 102 15 8, tab 3
      text "Speed" 709, 240 102 15 8, tab 3
      Button "Calculate!" 710, 160 45 30 10, tab 3
      check "Disable EVs" 711, 200 45 40 10, tab 3
      button "Refresh" 712, 100 45 25 10, tab 3
      button "Reset" 713, 133 45 20 10, tab 3
      text "" 714, 25 170 24 10, tab 3
      text "" 715, 53 170 10 10, tab 3
      text "" 716, 70 170 10 10, tab 3
      text "" 717, 87 170 10 10, tab 3
      text "" 718, 104 170 10 10, tab 3
      text "" 719, 121 170 10 10, tab 3
      text "" 720, 138 170 10 10, tab 3
      text "" 721, 25 180 24 10, tab 3
      text "" 722, 53 180 10 10, tab 3
      text "" 723, 70 180 10 10, tab 3
      text "" 724, 87 180 10 10, tab 3
      text "" 725, 104 180 10 10, tab 3
      text "" 726, 121 180 10 10, tab 3
      text "" 727, 138 180 10 10, tab 3
      text "" 728, 25 190 24 10, tab 3
      text "" 729, 53 190 10 10, tab 3
      text "" 730, 70 190 10 10, tab 3
      text "" 731, 87 190 10 10, tab 3
      text "" 732, 104 190 10 10, tab 3
      text "" 733, 121 190 10 10, tab 3
      text "" 734, 138 190 10 10, tab 3
      text "" 735, 25 200 24 10, tab 3
      text "" 736, 53 200 10 10, tab 3
      text "" 737, 70 200 10 10, tab 3
      text "" 738, 87 200 10 10, tab 3
      text "" 739, 104 200 10 10, tab 3
      text "" 740, 121 200 10 10, tab 3
      text "" 741, 138 200 10 10, tab 3
      text "" 742, 25 210 24 10, tab 3
      text "" 743, 53 210 10 10, tab 3
      text "" 744, 70 210 10 10, tab 3
      text "" 745, 87 210 10 10, tab 3
      text "" 746, 104 210 10 10, tab 3
      text "" 747, 121 210 10 10, tab 3
      text "" 748, 138 210 10 10, tab 3
    } 
    on *:dialog:iv:sclick:713: {
      did -ro iv 634 1 0
      did -ro iv 635 1 0
      did -ro iv 636 1 0
      did -ro iv 637 1 0
      did -ro iv 638 1 0
      did -ro iv 639 1 0
      did -ro iv 648 1 0
      did -ro iv 649 1 0
      did -ro iv 650 1 0
      did -ro iv 651 1 0
      did -ro iv 652 1 0
      did -ro iv 653 1 0
      did -ro iv 662 1 0
      did -ro iv 663 1 0
      did -ro iv 664 1 0
      did -ro iv 665 1 0
      did -ro iv 666 1 0
      did -ro iv 667 1 0
      did -ro iv 676 1 0
      did -ro iv 677 1 0
      did -ro iv 678 1 0
      did -ro iv 679 1 0
      did -ro iv 680 1 0
      did -ro iv 681 1 0
      did -ro iv 690 1 0
      did -ro iv 691 1 0
      did -ro iv 692 1 0
      did -ro iv 693 1 0
      did -ro iv 694 1 0
      did -ro iv 695 1 0
      did -r iv 628
      did -r iv 629
      did -r iv 630
      did -r iv 631
      did -r iv 632
      did -r iv 633
      did -r iv 642
      did -r iv 643
      did -r iv 644
      did -r iv 645
      did -r iv 646
      did -r iv 647
      did -r iv 656 
      did -r iv 657
      did -r iv 658
      did -r iv 659
      did -r iv 660
      did -r iv 661
      did -r iv 670
      did -r iv 671
      did -r iv 672
      did -r iv 673
      did -r iv 674
      did -r iv 675
      did -r iv 684
      did -r iv 685
      did -r iv 686
      did -r iv 687
      did -r iv 688
      did -r iv 689
      did -r iv 714
      did -r iv 715
      did -r iv 716
      did -r iv 717
      did -r iv 718
      did -r iv 719
      did -r iv 720
      did -r iv 721
      did -r iv 722
      did -r iv 723
      did -r iv 724
      did -r iv 725
      did -r iv 726
      did -r iv 727
      did -r iv 728
      did -r iv 729
      did -r iv 730
      did -r iv 731
      did -r iv 732
      did -r iv 733
      did -r iv 734
      did -r iv 735
      did -r iv 736
      did -r iv 737
      did -r iv 738
      did -r iv 739
      did -r iv 740 
      did -r iv 741
      did -r iv 742
      did -r iv 743
      did -r iv 744
      did -r iv 745
      did -r iv 746
      did -r iv 747
      did -r iv 748
    }
    
    on *:dialog:iv:sclick:710: {
      var %a = 1
      var %b = 20
      while (%a <= 1) {
        set %num1 $calc(616 + %a * 12)
        if ($did(%num1)) {
          set %c % $+ %a $+ .level
          var %hpivstat = $did(%num1)
          inc %num1
          var %attackivstat = $did(%num1)
          inc %num1
          var %defenseivstat = $did(%num1)
          inc %num1
          var %sp.attackivstat = $did(%num1)
          inc %num1
          var %sp.defenseivstat = $did(%num1)
          inc %num1
          var %speedivstat = $did(%num1)
          inc %num1
          var %hpevsstat = $did(%num1)
          inc %num1
          var %attackevsstat = $did(%num1)
          inc %num1
          var %defenseevstat = $did(%num1)
          inc %num1
          var %sp.attackevstat = $did(%num1)
          inc %num1
          var %sp.defenseevstat = $did(%num1)
          inc %num1
          var %speedevstat = $did(%num1)
          writeini stats.txt %pokemon $+ %nature [ [ %c ] ] $hp(%hp,%hpivstat,[ [ %c ] ],%hpevsstat) $stat(%attack,%attackivstat,[ [ %c ] ],%attack.n,%attackevsstat) $stat(%defense,%defenseivstat,[ [ %c ] ],%defense.n,%defesneevstat) $stat(%sp.attack,%sp.attackivstat,[ [ %c ] ],%sp.attack.n,%sp.attackevstat) $stat(%sp.defense,%sp.defenseivstat,[ [ %c ] ],%sp.defense.n,%sp.defenseevstat) $stat(%speed,%speedivstat,[ [ %c ] ],%speed.n,%speedevstat)
        }
        inc %a
      }
      var %a = 1
      var %b = $ini(stats.txt,%pokemon $+ %nature,0)
      var %id = 714
      while (%a <= %b) {
        var %c = 1
        set %stats $readini(stats.txt,%pokemon $+ %nature,$ini(stats.txt,%pokemon $+ %nature,%a))
        did -oa iv %id Level $ini(stats.txt,%pokemon $+ %nature,%a)
        inc %id
        did -ao iv %id $gettok(%stats,1,32)
        inc %id
        did -ao iv %id $gettok(%stats,2,32)
        inc %id
        did -ao iv %id $gettok(%stats,3,32)
        inc %id
        did -ao iv %id $gettok(%stats,4,32)
        inc %id
        did -ao iv %id $gettok(%stats,5,32)
        inc %id
        did -ao iv %id $gettok(%stats,6,32)
        inc %id
        inc %a
      }
    }
    on *:dialog:iv:sclick:711 {
      if (%disableevs2 == yes) {
        unset %disableevs2
        did -e iv 634
        did -e iv 635
        did -e iv 636
        did -e iv 637
        did -e iv 638
        did -e iv 639
        did -e iv 648
        did -e iv 649
        did -e iv 650
        did -e iv 651
        did -e iv 652
        did -e iv 653
        did -e iv 662
        did -e iv 663
        did -e iv 664
        did -e iv 665
        did -e iv 666
        did -e iv 667
        did -e iv 676
        did -e iv 677
        did -e iv 678
        did -e iv 679
        did -e iv 680
        did -e iv 681
        did -e iv 690
        did -e iv 691
        did -e iv 692
        did -e iv 693
        did -e iv 694
        did -e iv 695
      }
      else {
        did -b iv 634
        did -b iv 635
        did -b iv 636
        did -b iv 637
        did -b iv 638
        did -b iv 639
        did -b iv 648
        did -b iv 649
        did -b iv 650
        did -b iv 651
        did -b iv 652
        did -b iv 653
        did -b iv 662
        did -b iv 663
        did -b iv 664
        did -b iv 665
        did -b iv 666
        did -b iv 667
        did -b iv 676
        did -b iv 677
        did -b iv 678
        did -b iv 679
        did -b iv 680
        did -b iv 681
        did -b iv 690
        did -b iv 691
        did -b iv 692
        did -b iv 693
        did -b iv 694
        did -b iv 695
        set %disableevs2 yes
      }
    }
    
    
    on *:dialog:iv:sclick:298: {
      set %1.level $did(iv,325)
      var %b = 2
      var %a = 20
      while (%b <= %a) {
        set % $+ %b $+ .level $calc(%1.level + %b - 1)
        inc %b
      }
      refresh
    }
    alias refresh {
      did -ao iv 401 %1.level
      did -ao iv 402 %2.level
      did -ao iv 403 %3.level
      did -ao iv 404 %4.level
      did -ao iv 405 %5.level
      did -ao iv 406 %6.level
      did -ao iv 407 %7.level
      did -ao iv 408 %8.level
      did -ao iv 409 %9.level
      did -ao iv 410 %10.level
      did -ao iv 411 %11.level
      did -ao iv 412 %12.level
      did -ao iv 413 %13.level
      did -ao iv 414 %14.level
      did -ao iv 415 %15.level
      did -ao iv 416 %16.level
      did -ao iv 417 %17.level
      did -ao iv 418 %18.level
      did -ao iv 419 %19.level
      did -ao iv 420 %20.level
    }
    on *:dialog:iv:sclick:712 {
      set %1.level $did(iv,625)
      var %b = 2
      var %a = 5
      while (%b <= %a) {
        set % $+ %b $+ .level $calc(%1.level + %b - 1)
        inc %b
      }
      refresh3
    }
    alias refresh3 {
      did -ao iv 627 %1.level
      did -ao iv 641 %2.level
      did -ao iv 655 %3.level
      did -ao iv 669 %4.level
      did -ao iv 683 %5.level
    }
    
    on *:dialog:iv:init:0: {
      did -a iv 303,605 Adamant
      did -a iv 303,605 Bashful
      did -a iv 303,605 Bold
      did -a iv 303,605 Brave
      did -a iv 303,605 Calm
      did -a iv 303,605 Careful
      did -a iv 303,605 Docile
      did -a iv 303,605 Gentle
      did -a iv 303,605 Hardy
      did -a iv 303,605 Hasty
      did -a iv 303,605 Impish
      did -a iv 303,605 Jolly
      did -a iv 303,605 Lax
      did -a iv 303,605 Lonely
      did -a iv 303,605 Mild
      did -a iv 303,605 Modest
      did -a iv 303,605 Naive
      did -a iv 303,605 Naughty
      did -a iv 303,605 Quiet
      did -a iv 303,605 Quirky
      did -a iv 303,605 Rash
      did -a iv 303,605 Relaxed
      did -a iv 303,605 Sassy
      did -a iv 303,605 Serious
      did -a iv 303,605 Timid
      did -a iv 304,604 Abomasnow - #460
      did -a iv 304,604 Abra - #63
      did -a iv 304,604 Absol - #359
      did -a iv 304,604 Aerodactyl - #142
      did -a iv 304,604 Aggron - #306
      did -a iv 304,604 Aipom - #190
      did -a iv 304,604 Alakazam - #65
      did -a iv 304,604 Altaria - #334
      did -a iv 304,604 Ambipom - #424
      did -a iv 304,604 Ampharos - #181
      did -a iv 304,604 Anorith - #347
      did -a iv 304,604 Arbok - #24
      did -a iv 304,604 Arcanine - #59
      did -a iv 304,604 Arceus - #493
      did -a iv 304,604 Ariados - #168
      did -a iv 304,604 Armaldo - #348
      did -a iv 304,604 Aron - #304
      did -a iv 304,604 Articuno - #144
      did -a iv 304,604 Azelf - #482
      did -a iv 304,604 Azumarill - #184
      did -a iv 304,604 Azurill - #298
      did -a iv 304,604 Bagon - #371
      did -a iv 304,604 Baltoy - #343
      did -a iv 304,604 Banette - #354
      did -a iv 304,604 Barboach - #339
      did -a iv 304,604 Bastiodon - #411
      did -a iv 304,604 Bayleef - #153
      did -a iv 304,604 Beautifly - #267
      did -a iv 304,604 Beedrill - #15
      did -a iv 304,604 Beldum - #374
      did -a iv 304,604 Bellossom - #182
      did -a iv 304,604 Bellsprout - #69
      did -a iv 304,604 Bibarel - #400
      did -a iv 304,604 Bidoof - #399
      did -a iv 304,604 Blastoise - #9
      did -a iv 304,604 Blaziken - #257
      did -a iv 304,604 Blissey - #242
      did -a iv 304,604 Bonsly - #438
      did -a iv 304,604 Breloom - #286
      did -a iv 304,604 Bronzong - #437
      did -a iv 304,604 Bronzor - #436
      did -a iv 304,604 Budew - #406
      did -a iv 304,604 Buizel - #418
      did -a iv 304,604 Bulbasaur - #1
      did -a iv 304,604 Buneary - #427
      did -a iv 304,604 Burmy - #412
      did -a iv 304,604 Butterfree - #12
      did -a iv 304,604 Cacnea - #331
      did -a iv 304,604 Cacturne - #332
      did -a iv 304,604 Camerupt - #323
      did -a iv 304,604 Carnivine - #455
      did -a iv 304,604 Carvanha - #318
      did -a iv 304,604 Cascoon - #268
      did -a iv 304,604 Castform - #351
      did -a iv 304,604 Caterpie - #10
      did -a iv 304,604 Celebi - #251
      did -a iv 304,604 Chansey - #113
      did -a iv 304,604 Charizard - #6
      did -a iv 304,604 Charmander - #4
      did -a iv 304,604 harmeleon - #5
      did -a iv 304,604 Chatot - #441
      did -a iv 304,604 Cherrim - #421
      did -a iv 304,604 Cherubi - #420
      did -a iv 304,604 Chikorita - #152
      did -a iv 304,604 Chimchar - #390
      did -a iv 304,604 Chimecho - #358
      did -a iv 304,604 Chinchou - #170
      did -a iv 304,604 Chingling - #433
      did -a iv 304,604 Clamperl - #366
      did -a iv 304,604 Claydol - #344
      did -a iv 304,604 Clefable - #36
      did -a iv 304,604 Clefairy - #35
      did -a iv 304,604 Cleffa - #173
      did -a iv 304,604 Cloyster - #91
      did -a iv 304,604 Combee - #415
      did -a iv 304,604 Combusken - #256
      did -a iv 304,604 Corphish - #341
      did -a iv 304,604 Corsola - #222
      did -a iv 304,604 Cradily - #346
      did -a iv 304,604 Cranidos - #408
      did -a iv 304,604 Crawdaunt - #342
      did -a iv 304,604 Cresselia - #488
      did -a iv 304,604 Croagunk - #453
      did -a iv 304,604 Crobat - #169
      did -a iv 304,604 Croconaw - #159
      did -a iv 304,604 Cubone - #104
      did -a iv 304,604 Cyndaquil - #155
      did -a iv 304,604 Darkrai - #491
      did -a iv 304,604 Delcatty - #301
      did -a iv 304,604 Delibird - #225
      did -a iv 304,604 Deoxys - #386
      did -a iv 304,604 Deoxys-E - #386
      did -a iv 304,604 Deoxys-F - #386
      did -a iv 304,604 Deoxys-L - #386
      did -a iv 304,604 Dewgong - #87
      did -a iv 304,604 Dialga - #483
      did -a iv 304,604 Diglett - #50
      did -a iv 304,604 Ditto - #132
      did -a iv 304,604 Dodrio - #85
      did -a iv 304,604 Doduo - #84
      did -a iv 304,604 Donphan - #232
      did -a iv 304,604 Dragonair - #148
      did -a iv 304,604 Dragonite - #149
      did -a iv 304,604 Drapion - #452
      did -a iv 304,604 Dratini - #147
      did -a iv 304,604 Drifblim - #426
      did -a iv 304,604 Drifloon - #425
      did -a iv 304,604 Drowzee - #96
      did -a iv 304,604 Dugtrio - #51
      did -a iv 304,604 Dunsparce - #206
      did -a iv 304,604 Dusclops - #356
      did -a iv 304,604 Dusknoir - #477
      did -a iv 304,604 Duskull - #355
      did -a iv 304,604 Dustox - #269
      did -a iv 304,604 Eevee - #133
      did -a iv 304,604 Ekans - #23
      did -a iv 304,604 Electabuzz - #125
      did -a iv 304,604 Electivire - #466
      did -a iv 304,604 Electrike - #309
      did -a iv 304,604 Electrode - #101
      did -a iv 304,604 Elekid - #239
      did -a iv 304,604 Empoleon - #395
      did -a iv 304,604 Entei - #244
      did -a iv 304,604 Espeon - #196
      did -a iv 304,604 Exeggcute - #102
      did -a iv 304,604 Exeggutor - #103
      did -a iv 304,604 Exploud - #295
      did -a iv 304,604 Farfetch'd - #83
      did -a iv 304,604 Fearow - #22
      did -a iv 304,604 Feebas - #349
      did -a iv 304,604 Feraligatr - #160
      did -a iv 304,604 Finneon - #456
      did -a iv 304,604 Flaaffy - #180
      did -a iv 304,604 Flareon - #136
      did -a iv 304,604 Floatzel - #419
      did -a iv 304,604 Flygon - #330
      did -a iv 304,604 Forretress - #205
      did -a iv 304,604 Froslass - #478
      did -a iv 304,604 Furret - #162
      did -a iv 304,604 Gabite - #444
      did -a iv 304,604 Gallade - #475
      did -a iv 304,604 Garchomp - #445
      did -a iv 304,604 Gardevoir - #282
      did -a iv 304,604 Gastly - #92
      did -a iv 304,604 Gastrodon - #423
      did -a iv 304,604 Gengar - #94
      did -a iv 304,604 Geodude - #74
      did -a iv 304,604 Gible - #443
      did -a iv 304,604 Girafarig - #203
      did -a iv 304,604 Giratina - #487
      did -a iv 304,604 Glaceon - #471
      did -a iv 304,604 Glalie - #362
      did -a iv 304,604 Glameow - #431
      did -a iv 304,604 Gligar - #207
      did -a iv 304,604 Gliscor - #472
      did -a iv 304,604 Gloom - #44
      did -a iv 304,604 Golbat - #42
      did -a iv 304,604 Goldeen - #118
      did -a iv 304,604 Golduck - #55
      did -a iv 304,604 Golem - #76
      did -a iv 304,604 Gorebyss - #368
      did -a iv 304,604 Granbull - #210
      did -a iv 304,604 Graveler - #75
      did -a iv 304,604 Grimer - #88
      did -a iv 304,604 Grotle - #388
      did -a iv 304,604 Groudon - #383
      did -a iv 304,604 Grovyle - #253
      did -a iv 304,604 Growlithe - #58
      did -a iv 304,604 Grumpig - #326
      did -a iv 304,604 Gulpin - #316
      did -a iv 304,604 Gyarados - #130
      did -a iv 304,604 Happiny - #440
      did -a iv 304,604 Hariyama - #297
      did -a iv 304,604 Haunter - #93
      did -a iv 304,604 Heatran - #485
      did -a iv 304,604 Heracross - #214
      did -a iv 304,604 Hippopotas - #449
      did -a iv 304,604 Hippowdon - #450
      did -a iv 304,604 Hitmonchan - #107
      did -a iv 304,604 Hitmonlee - #106
      did -a iv 304,604 Hitmontop - #237
      did -a iv 304,604 Honchkrow - #430
      did -a iv 304,604 Ho-oh - #250
      did -a iv 304,604 Hoothoot - #163
      did -a iv 304,604 Hoppip - #187
      did -a iv 304,604 Horsea - #116
      did -a iv 304,604 Houndoom - #229
      did -a iv 304,604 Houndour - #228
      did -a iv 304,604 Huntail - #367
      did -a iv 304,604 Hypno - #97
      did -a iv 304,604 Igglybuff - #174
      did -a iv 304,604 Illumise - #314
      did -a iv 304,604 Infernape - #392
      did -a iv 304,604 Ivysaur - #2
      did -a iv 304,604 Jigglypuff - #39
      did -a iv 304,604 Jirachi - #385
      did -a iv 304,604 Jolteon - #135
      did -a iv 304,604 Jumpluff - #189
      did -a iv 304,604 Jynx - #124
      did -a iv 304,604 Kabuto - #140
      did -a iv 304,604 Kabutops - #141
      did -a iv 304,604 Kadabra - #64
      did -a iv 304,604 Kakuna - #14
      did -a iv 304,604 Kangaskhan - #115
      did -a iv 304,604 Kecleon - #352
      did -a iv 304,604 Kingdra - #230
      did -a iv 304,604 Kingler - #99
      did -a iv 304,604 Kirlia - #281
      did -a iv 304,604 Koffing - #109
      did -a iv 304,604 Krabby - #98
      did -a iv 304,604 Kricketot - #401
      did -a iv 304,604 Kricketune - #402
      did -a iv 304,604 Kyogre - #382
      did -a iv 304,604 Lairon - #305
      did -a iv 304,604 Lanturn - #171
      did -a iv 304,604 Lapras - #131
      did -a iv 304,604 Larvitar - #246
      did -a iv 304,604 Latias - #380
      did -a iv 304,604 Latios - #381
      did -a iv 304,604 Leafeon - #470
      did -a iv 304,604 Ledian - #166
      did -a iv 304,604 Ledyba - #165
      did -a iv 304,604 Lickilicky - #463
      did -a iv 304,604 Lickitung - #108
      did -a iv 304,604 Lileep - #345
      did -a iv 304,604 Linoone - #264
      did -a iv 304,604 Lombre - #271
      did -a iv 304,604 Lopunny - #428
      did -a iv 304,604 Lotad - #270
      did -a iv 304,604 Loudred - #294
      did -a iv 304,604 Lucario - #448
      did -a iv 304,604 Ludicolo - #272
      did -a iv 304,604 Lugia - #249
      did -a iv 304,604 Lumineon - #457
      did -a iv 304,604 Lunatone - #337
      did -a iv 304,604 Luvdisc - #370
      did -a iv 304,604 Luxio - #404
      did -a iv 304,604 Luxray - #405
      did -a iv 304,604 Machamp - #68
      did -a iv 304,604 Machoke - #67
      did -a iv 304,604 Machop - #66
      did -a iv 304,604 Magby - #240
      did -a iv 304,604 Magcargo - #219
      did -a iv 304,604 Magikarp - #129
      did -a iv 304,604 Magmar - #126
      did -a iv 304,604 Magmortar - #467
      did -a iv 304,604 Magnemite - #81
      did -a iv 304,604 Magneton - #82
      did -a iv 304,604 Magnezone - #462
      did -a iv 304,604 Makuhita - #296
      did -a iv 304,604 Mamoswine - #473
      did -a iv 304,604 Manaphy - #490
      did -a iv 304,604 Manectric - #310
      did -a iv 304,604 Mankey - #56
      did -a iv 304,604 Mantine - #226
      did -a iv 304,604 Mantyke - #458
      did -a iv 304,604 Mareep - #179
      did -a iv 304,604 Marill - #183
      did -a iv 304,604 Marowak - #105
      did -a iv 304,604 Marshtomp - #259
      did -a iv 304,604 Masquerain - #284
      did -a iv 304,604 Mawile - #303
      did -a iv 304,604 Medicham - #308
      did -a iv 304,604 Meditite - #307
      did -a iv 304,604 Meganium - #154
      did -a iv 304,604 Meowth - #52
      did -a iv 304,604 Mesprit - #481
      did -a iv 304,604 Metagross - #376
      did -a iv 304,604 Metang - #375
      did -a iv 304,604 Metapod - #11
      did -a iv 304,604 Mew - #151
      did -a iv 304,604 Mewtwo - #150
      did -a iv 304,604 Mightyena - #262
      did -a iv 304,604 Milotic - #350
      did -a iv 304,604 Miltank - #241
      did -a iv 304,604 MimeJr. - #439
      did -a iv 304,604 Minun - #312
      did -a iv 304,604 Misdreavus - #200
      did -a iv 304,604 Mismagius - #429
      did -a iv 304,604 Moltres - #146
      did -a iv 304,604 Monferno - #391
      did -a iv 304,604 Mothim - #414
      did -a iv 304,604 Mr.Mime - #122
      did -a iv 304,604 Mudkip - #258
      did -a iv 304,604 Muk - #89
      did -a iv 304,604 Munchlax - #446
      did -a iv 304,604 Murkrow - #198
      did -a iv 304,604 Natu - #177
      did -a iv 304,604 Nidoking - #34
      did -a iv 304,604 Nidoqueen - #31
      did -a iv 304,604 Nidoran-F - #29
      did -a iv 304,604 Nidoran-M - #32
      did -a iv 304,604 Nidorina - #30
      did -a iv 304,604 Nidorino - #33
      did -a iv 304,604 Nincada - #290
      did -a iv 304,604 Ninetales - #38
      did -a iv 304,604 Ninjask - #291
      did -a iv 304,604 Noctowl - #164
      did -a iv 304,604 Nosepass - #299
      did -a iv 304,604 Numel - #322
      did -a iv 304,604 Nuzleaf - #274
      did -a iv 304,604 Octillery - #224
      did -a iv 304,604 Oddish - #43
      did -a iv 304,604 Omanyte - #138
      did -a iv 304,604 Omastar - #139
      did -a iv 304,604 Onix - #95
      did -a iv 304,604 Pachirisu - #417
      did -a iv 304,604 Palkia - #484
      did -a iv 304,604 Paras - #46
      did -a iv 304,604 Parasect - #47
      did -a iv 304,604 Pelipper - #279
      did -a iv 304,604 Persian - #53
      did -a iv 304,604 Phanpy - #231
      did -a iv 304,604 Phione - #489
      did -a iv 304,604 Pichu - #172
      did -a iv 304,604 Pidgeot - #18
      did -a iv 304,604 Pidgeotto - #17
      did -a iv 304,604 Pidgey - #16
      did -a iv 304,604 Pikachu - #25
      did -a iv 304,604 Piloswine - #221
      did -a iv 304,604 Pineco - #204
      did -a iv 304,604 Pinsir - #127
      did -a iv 304,604 Piplup - #393
      did -a iv 304,604 Plusle - #311
      did -a iv 304,604 Politoed - #186
      did -a iv 304,604 Poliwag - #60
      did -a iv 304,604 Poliwhirl - #61
      did -a iv 304,604 Poliwrath - #62
      did -a iv 304,604 Ponyta - #77
      did -a iv 304,604 Poochyena - #261
      did -a iv 304,604 Porygon - #137
      did -a iv 304,604 Porygon2 - #233
      did -a iv 304,604 Porygon-Z - #474
      did -a iv 304,604 Primeape - #57
      did -a iv 304,604 Prinplup - #394
      did -a iv 304,604 Probopass - #476
      did -a iv 304,604 Psyduck - #54
      did -a iv 304,604 Pupitar - #247
      did -a iv 304,604 Purugly - #432
      did -a iv 304,604 Quagsire - #195
      did -a iv 304,604 Quilava - #156
      did -a iv 304,604 Qwilfish - #211
      did -a iv 304,604 Raichu - #26
      did -a iv 304,604 Raikou - #243
      did -a iv 304,604 Ralts - #280
      did -a iv 304,604 Rampardos - #409
      did -a iv 304,604 Rapidash - #78
      did -a iv 304,604 Raticate - #20
      did -a iv 304,604 Rattata - #19
      did -a iv 304,604 Rayquaza - #384
      did -a iv 304,604 Regice - #378
      did -a iv 304,604 Regigigas - #486
      did -a iv 304,604 Regirock - #377
      did -a iv 304,604 Registeel - #379
      did -a iv 304,604 Relicanth - #369
      did -a iv 304,604 Remoraid - #223
      did -a iv 304,604 Rhydon - #112
      did -a iv 304,604 Rhyhorn - #111
      did -a iv 304,604 Rhyperior - #464
      did -a iv 304,604 Riolu - #447
      did -a iv 304,604 Roselia - #315
      did -a iv 304,604 Roserade - #407
      did -a iv 304,604 Rotom - #479
      did -a iv 304,604 Sableye - #302
      did -a iv 304,604 Salamence - #373
      did -a iv 304,604 Sandshrew - #27
      did -a iv 304,604 Sandslash - #28
      did -a iv 304,604 Sceptile - #254
      did -a iv 304,604 Scizor - #212
      did -a iv 304,604 Scyther - #123
      did -a iv 304,604 Seadra - #117
      did -a iv 304,604 Seaking - #119
      did -a iv 304,604 Sealeo - #364
      did -a iv 304,604 Seedot - #273
      did -a iv 304,604 Seel - #86
      did -a iv 304,604 Sentret - #161
      did -a iv 304,604 Seviper - #336
      did -a iv 304,604 Sharpedo - #319
      did -a iv 304,604 Shaymin - #492
      did -a iv 304,604 Shedinja - #292
      did -a iv 304,604 Shelgon - #372
      did -a iv 304,604 Shellder - #90
      did -a iv 304,604 Shellos - #422
      did -a iv 304,604 Shieldon - #410
      did -a iv 304,604 Shiftry - #275
      did -a iv 304,604 Shinx - #403
      did -a iv 304,604 Shroomish - #285
      did -a iv 304,604 Shuckle - #213
      did -a iv 304,604 Shuppet - #353
      did -a iv 304,604 Silcoon - #266
      did -a iv 304,604 Skarmory - #227
      did -a iv 304,604 Skiploom - #188
      did -a iv 304,604 Skitty - #300
      did -a iv 304,604 Skorupi - #451
      did -a iv 304,604 Skuntank - #435
      did -a iv 304,604 Slaking - #289
      did -a iv 304,604 Slakoth - #287
      did -a iv 304,604 Slowbro - #80
      did -a iv 304,604 Slowking - #199
      did -a iv 304,604 Slowpoke - #79
      did -a iv 304,604 Slugma - #218
      did -a iv 304,604 Smeargle - #235
      did -a iv 304,604 Smoochum - #238
      did -a iv 304,604 Sneasel - #215
      did -a iv 304,604 Snorlax - #143
      did -a iv 304,604 Snorunt - #361
      did -a iv 304,604 Snover - #459
      did -a iv 304,604 Snubbull - #209
      did -a iv 304,604 Solrock - #338
      did -a iv 304,604 Spearow - #21
      did -a iv 304,604 Spheal - #363
      did -a iv 304,604 Spinarak - #167
      did -a iv 304,604 Spinda - #327
      did -a iv 304,604 Spiritomb - #442
      did -a iv 304,604 Spoink - #325
      did -a iv 304,604 Squirtle - #7
      did -a iv 304,604 Stantler - #234
      did -a iv 304,604 Staraptor - #398
      did -a iv 304,604 Staravia - #397
      did -a iv 304,604 Starly - #396
      did -a iv 304,604 Starmie - #121
      did -a iv 304,604 Staryu - #120
      did -a iv 304,604 Steelix - #208
      did -a iv 304,604 Stunky - #434
      did -a iv 304,604 Sudowoodo - #185
      did -a iv 304,604 Suicune - #245
      did -a iv 304,604 Sunflora - #192
      did -a iv 304,604 Sunkern - #191
      did -a iv 304,604 Surskit - #283
      did -a iv 304,604 Swablu - #333
      did -a iv 304,604 Swalot - #317
      did -a iv 304,604 Swampert - #260
      did -a iv 304,604 Swellow - #277
      did -a iv 304,604 Swinub - #220
      did -a iv 304,604 Taillow - #276
      did -a iv 304,604 Tangela - #114
      did -a iv 304,604 Tangrowth - #465
      did -a iv 304,604 Tauros - #128
      did -a iv 304,604 Teddiursa - #216
      did -a iv 304,604 Tentacool - #72
      did -a iv 304,604 Tentacruel - #73
      did -a iv 304,604 Togekiss - #468
      did -a iv 304,604 Togepi - #175
      did -a iv 304,604 Togetic - #176
      did -a iv 304,604 Torchic - #255
      did -a iv 304,604 Torkoal - #324
      did -a iv 304,604 Torterra - #389
      did -a iv 304,604 Totodile - #158
      did -a iv 304,604 Toxicroak - #454
      did -a iv 304,604 Trapinch - #328
      did -a iv 304,604 Treecko - #252
      did -a iv 304,604 Tropius - #357
      did -a iv 304,604 Turtwig - #387
      did -a iv 304,604 Typhlosion - #157
      did -a iv 304,604 Tyranitar - #248
      did -a iv 304,604 Tyrogue - #236
      did -a iv 304,604 Umbreon - #197
      did -a iv 304,604 Unown - #201
      did -a iv 304,604 Ursaring - #217
      did -a iv 304,604 Uxie - #480
      did -a iv 304,604 Vaporeon - #134
      did -a iv 304,604 Venomoth - #49
      did -a iv 304,604 Venonat - #48
      did -a iv 304,604 Venusaur - #3
      did -a iv 304,604 Vespiquen - #416
      did -a iv 304,604 Vibrava - #329
      did -a iv 304,604 Victreebel - #71
      did -a iv 304,604 Vigoroth - #288
      did -a iv 304,604 Vileplume - #45
      did -a iv 304,604 Volbeat - #313
      did -a iv 304,604 Voltorb - #100
      did -a iv 304,604 Vulpix - #37
      did -a iv 304,604 Wailmer - #320
      did -a iv 304,604 Wailord - #321
      did -a iv 304,604 Walrein - #365
      did -a iv 304,604 Wartortle - #8
      did -a iv 304,604 Weavile - #461
      did -a iv 304,604 Weedle - #13
      did -a iv 304,604 Weepinbell - #70
      did -a iv 304,604 Weezing - #110
      did -a iv 304,604 Whiscash - #340
      did -a iv 304,604 Whismur - #293
      did -a iv 304,604 Wigglytuff - #40
      did -a iv 304,604 Wingull - #278
      did -a iv 304,604 Wobbuffet - #202
      did -a iv 304,604 Wooper - #194
      did -a iv 304,604 Wormadam - #413
      did -a iv 304,604 Wormadam(Ground) - #413
      did -a iv 304,604 Wormadam(Steel) - #413
      did -a iv 304,604 Wurmple - #265
      did -a iv 304,604 Wynaut - #360
      did -a iv 304,604 Xatu - #178
      did -a iv 304,604 Yanma - #193
      did -a iv 304,604 Yanmega - #469
      did -a iv 304,604 Zangoose - #335
      did -a iv 304,604 Zapdos - #145
      did -a iv 304,604 Zigzagoon - #263
      did -a iv 304,604 Zubat - #41
      did -os iv 304,604 %num $iif(%pokemon2,%pokemon2,$read(pokemonbasestats.txt,w, abomasnow*))
      did -os iv 303,605 %numn $iif(%nature,%nature,$read( pokemonnatures.txt,w, adamant*))
    }
    on *:dialog:iv:edit:302: {
      set %search $did(302)
      set %stats $iif($read(pokemonbasestats.txt,w, %search $+ *),$read(pokemonbasestats.txt,w, %search $+ *),$read( pokemonbasestats.txt ,w, abomasnow*))
      set %stats2 $replace(%stats,$chr(61),$chr(32))
      set %bleh $gettok(%stats2,1,32)
      set %pokemon $read(pokemonpokemon.txt,w, %bleh $+ *)
      set %hp $gettok(%stats2,2,32)
      set %attack $gettok(%stats2,3,32)
      set %defense $gettok(%stats2,4,32)
      set %sp.attack $gettok(%stats2,5,32)
      set %sp.defense $gettok(%stats2,6,32)
      set %speed $gettok(%stats2,7,32)
      set %num $readn
      did -os iv 304 %num %pokemon
      did -o iv 309 1 %hp
      did -o iv 311 1 %attack
      did -o iv 313 1 %defense
      did -o iv 315 1 %sp.attack
      did -o iv 317 1 %sp.defense
      did -o iv 319 1 %speed
      set %pokemon2 %pokemon
      set %pokemon %bleh
    }
    on *:dialog:iv:edit:601: {
      set %search $did(601)
      set %stats $iif($read(pokemonbasestats.txt,w, %search $+ *),$read(pokemonbasestats.txt,w, %search $+ *),$read( pokemonbasestats.txt ,w, abomasnow*))
      set %stats2 $replace(%stats,$chr(61),$chr(32))
      set %bleh $gettok(%stats2,1,32)
      set %pokemon $read(pokemonpokemon.txt,w, %bleh $+ *)
      set %hp $gettok(%stats2,2,32)
      set %attack $gettok(%stats2,3,32)
      set %defense $gettok(%stats2,4,32)
      set %sp.attack $gettok(%stats2,5,32)
      set %sp.defense $gettok(%stats2,6,32)
      set %speed $gettok(%stats2,7,32)
      set %num $readn
      did -os iv 604 %num %pokemon
      did -o iv 609 1 %hp
      did -o iv 611 1 %attack
      did -o iv 613 1 %defense
      did -o iv 615 1 %sp.attack
      did -o iv 617 1 %sp.defense
      did -o iv 619 1 %speed
      set %pokemon2 %pokemon
      set %pokemon %bleh
    }
    on *:dialog:iv:sclick:304: {
      set %search.4 $did(304)
      set %pokemon $gettok(%search.4,1,32)
      set %stats $iif($read(pokemonbasestats.txt ,w, %search $+ *),$read(pokemonbasestats.txt,w, %search $+ *),$read( pokemonbasestats.txt,w, abomasnow*))
      set %stats2 $replace(%stats,$chr(61),$chr(32))
      set %bleh $gettok(%stats2,1,32)
      set %hp $gettok(%stats2,2,32)
      set %attack $gettok(%stats2,3,32)
      set %defense $gettok(%stats2,4,32)
      set %sp.attack $gettok(%stats2,5,32)
      set %sp.defense $gettok(%stats2,6,32)
      set %speed $gettok(%stats2,7,32)
      did -o iv 309 1 %hp
      did -o iv 311 1 %attack
      did -o iv 313 1 %defense
      did -o iv 315 1 %sp.attack
      did -o iv 317 %sp.defense
      did -o iv 319 %speed
      set %pokemon2 %pokemon
      set %pokemon %bleh
    }
    on *:dialog:iv:sclick:604: {
      set %search.4 $did(604)
      set %pokemon $gettok(%search.4,1,32)
      set %stats $iif($read(pokemonbasestats.txt ,w, %search $+ *),$read(pokemonbasestats.txt,w, %search $+ *),$read( pokemonbasestats.txt,w, abomasnow*))
      set %stats2 $replace(%stats,$chr(61),$chr(32))
      set %bleh $gettok(%stats2,1,32)
      set %hp $gettok(%stats2,2,32)
      set %attack $gettok(%stats2,3,32)
      set %defense $gettok(%stats2,4,32)
      set %sp.attack $gettok(%stats2,5,32)
      set %sp.defense $gettok(%stats2,6,32)
      set %speed $gettok(%stats2,7,32)
      did -o iv 609 1 %hp
      did -o iv 611 1 %attack
      did -o iv 613 1 %defense
      did -o iv 615 1 %sp.attack
      did -o iv 617 %sp.defense
      did -o iv 619 %speed
      set %pokemon2 %pokemon
      set %pokemon %bleh
    }
    on *:dialog:iv:edit:305: {
      set %search $did(305)
      set %pokemon $iif($read(pokemonpokemon.txt ,w, *# $+ %search),$read(pokemonpokemon.txt,w, *# $+ %search),$read(pokemonpokemon.txt ,w, *#460))
      set %bleh $gettok(%pokemon,1,32)
      set %stats $read(pokemonbasestats.txt,w, %bleh $+ *)
      set %stats2 $replace(%stats,$chr(61),$chr(32))
      set %hp $gettok(%stats2,2,32)
      set %attack $gettok(%stats2,3,32)
      set %defense $gettok(%stats2,4,32)
      set %sp.attack $gettok(%stats2,5,32)
      set %sp.defense $gettok(%stats2,6,32)
      set %speed $gettok(%stats2,7,32)
      set %num $readn
      did -os iv 304 %num %pokemon
      did -o iv 309 1 %hp
      did -o iv 311 1 %attack
      did -o iv 313 1 %defense
      did -o iv 315 1 %sp.attack
      did -o iv 317 1 %sp.defense
      did -o iv 319 1 %speed
      set %pokemon2 %pokemon
      set %pokemon %bleh
    }
    on *:dialog:iv:edit:602: {
      set %search $did(602)
      set %pokemon $iif($read(pokemonpokemon.txt ,w, *# $+ %search),$read(pokemonpokemon.txt,w, *# $+ %search),$read(pokemonpokemon.txt ,w, *#460))
      set %bleh $gettok(%pokemon,1,32)
      set %stats $read(pokemonbasestats.txt,w, %bleh $+ *)
      set %stats2 $replace(%stats,$chr(61),$chr(32))
      set %hp $gettok(%stats2,2,32)
      set %attack $gettok(%stats2,3,32)
      set %defense $gettok(%stats2,4,32)
      set %sp.attack $gettok(%stats2,5,32)
      set %sp.defense $gettok(%stats2,6,32)
      set %speed $gettok(%stats2,7,32)
      set %num $readn
      did -os iv 604 %num %pokemon
      did -o iv 609 1 %hp
      did -o iv 611 1 %attack
      did -o iv 613 1 %defense
      did -o iv 615 1 %sp.attack
      did -o iv 617 1 %sp.defense
      did -o iv 619 1 %speed
      set %pokemon2 %pokemon
      set %pokemon %bleh
    }
    on *:dialog:iv:edit:301: {
      set %search $did(301)
      set %bleh $iif($read(pokemonnatures.txt,w, %search $+ *),$read(pokemonnatures.txt,w, %search $+ *),$read( pokemonnatures.txt,w, adamant*))
      set %nature $gettok(%bleh,1,32)
      set %stats2 $remove(%bleh,%nature)
      set %attack.n $gettok(%stats2,1,32)
      set %defense.n $gettok(%stats2,2,32)
      set %sp.attack.n $gettok(%stats2,3,32)
      set %sp.defense.n $gettok(%stats2,4,32)
      set %speed.n $gettok(%stats2,5,32)
      set %numn $readn
      did -os iv 303 %numn %nature
      if (%attack.n == 1.1) set %raise Attack
      if (%defense.n == 1.1) set %raise Defense
      if (%sp.attack.n == 1.1) set %raise Special Attack
      if (%sp.defense.n == 1.1) set %raise Special Defense
      if (%speed.n == 1.1) set %raise Speed
      if (%attack.n == 0.9) set %lower Attack
      if (%defense.n == 0.9) set %lower Defense
      if (%sp.attack.n == 0.9) set %lower Special Attack
      if (%sp.defense.n == 0.9) set %lower Special Defense
      if (%speed.n == 0.9) set %lower Speed
      if ((%attack.n == 1) && (%defense.n == 1) && (%sp.attack.n == 1) && (%sp.defense.n == 1) && (%speed.n == 1)) {
        set %raise None
        set %lower None
      }
      did -o iv 321 1 %raise
      did -o iv 323 1 %lower
    }
    on *:dialog:iv:edit:603: {
      set %search $did(603)
      set %bleh $iif($read(pokemonnatures.txt,w, %search $+ *),$read(pokemonnatures.txt,w, %search $+ *),$read( pokemonnatures.txt,w, adamant*))
      set %nature $gettok(%bleh,1,32)
      set %stats2 $remove(%bleh,%nature)
      set %attack.n $gettok(%stats2,1,32)
      set %defense.n $gettok(%stats2,2,32)
      set %sp.attack.n $gettok(%stats2,3,32)
      set %sp.defense.n $gettok(%stats2,4,32)
      set %speed.n $gettok(%stats2,5,32)
      set %numn $readn
      did -os iv 605 %numn %nature
      if (%attack.n == 1.1) set %raise Attack
      if (%defense.n == 1.1) set %raise Defense
      if (%sp.attack.n == 1.1) set %raise Special Attack
      if (%sp.defense.n == 1.1) set %raise Special Defense
      if (%speed.n == 1.1) set %raise Speed
      if (%attack.n == 0.9) set %lower Attack
      if (%defense.n == 0.9) set %lower Defense
      if (%sp.attack.n == 0.9) set %lower Special Attack
      if (%sp.defense.n == 0.9) set %lower Special Defense
      if (%speed.n == 0.9) set %lower Speed
      if ((%attack.n == 1) && (%defense.n == 1) && (%sp.attack.n == 1) && (%sp.defense.n == 1) && (%speed.n == 1)) {
        set %raise None
        set %lower None
      }
      did -o iv 621 1 %raise
      did -o iv 623 1 %lower
    }
    on *:dialog:iv:sclick:303: {
      set %search.3 $did(303)
      set %bleh $iif($read( pokemonnatures.txt,w, %search $+ *),$read( pokemonnatures.txt,w, %search $+ *),$read(pokemonnatures.txt,w, adamant*))
      set %nature $gettok(%bleh,1,32)
      set %stats2 $remove(%bleh,%nature)
      set %attack.n $gettok(%stats2,1,32)
      set %defense.n $gettok(%stats2,2,32)
      set %sp.attack.n $gettok(%stats2,3,32)
      set %sp.defense.n $gettok(%stats2,4,32)
      set %speed.n $gettok(%stats2,5,32)
      if (%attack.n == 1.1) set %raise Attack
      if (%defense.n == 1.1) set %raise Defense
      if (%sp.attack.n == 1.1) set %raise Special Attack
      if (%sp.defense.n == 1.1) set %raise Special Defense
      if (%speed.n == 1.1) set %raise Speed
      if (%attack.n == 0.9) set %lower Attack
      if (%defense.n == 0.9) set %lower Defense
      if (%sp.attack.n == 0.9) set %lower Special Attack
      if (%sp.defense.n == 0.9) set %lower Special Defense
      if (%speed.n == 0.9) set %lower Speed
      if ((%attack.n == 1) && (%defense.n == 1) && (%sp.attack.n == 1) && (%sp.defense.n == 1) && (%speed.n == 1)) {
        set %raise None
        set %lower None
      }
      did -o iv 321 1 %raise
      did -o iv 323 1 %lower
    }
    on *:dialog:iv:sclick:605: {
      set %search.3 $did(605)
      set %bleh $iif($read( pokemonnatures.txt,w, %search $+ *),$read( pokemonnatures.txt,w, %search $+ *),$read(pokemonnatures.txt,w, adamant*))
      set %nature $gettok(%bleh,1,32)
      set %stats2 $remove(%bleh,%nature)
      set %attack.n $gettok(%stats2,1,32)
      set %defense.n $gettok(%stats2,2,32)
      set %sp.attack.n $gettok(%stats2,3,32)
      set %sp.defense.n $gettok(%stats2,4,32)
      set %speed.n $gettok(%stats2,5,32)
      if (%attack.n == 1.1) set %raise Attack
      if (%defense.n == 1.1) set %raise Defense
      if (%sp.attack.n == 1.1) set %raise Special Attack
      if (%sp.defense.n == 1.1) set %raise Special Defense
      if (%speed.n == 1.1) set %raise Speed
      if (%attack.n == 0.9) set %lower Attack
      if (%defense.n == 0.9) set %lower Defense
      if (%sp.attack.n == 0.9) set %lower Special Attack
      if (%sp.defense.n == 0.9) set %lower Special Defense
      if (%speed.n == 0.9) set %lower Speed
      if ((%attack.n == 1) && (%defense.n == 1) && (%sp.attack.n == 1) && (%sp.defense.n == 1) && (%speed.n == 1)) {
        set %raise None
        set %lower None
      }
      did -o iv 621 1 %raise
      did -o iv 623 1 %lower
    }
    alias basestats {
      var %pokemon = $1
      var %file = pokemonbasestats.txt
      var %stats = $iif($read( pokemonbasestats.txt,w, %pokemon $+ *),$read(pokemonbasestats.txt,w, %pokemon $+ *),$read(pokemonbasestats.txt,w, abomasnow*))
      var %stats2 = $replace(%stats,$chr(61),$chr(32))
      var %pokemon = $gettok(%stats2,1,32)
      var %hp = $gettok(%stats2,2,32)
      var %attack = $gettok(%stats2,3,32)
      var %defense = $gettok(%stats2,4,32)
      var %sp.attack = $gettok(%stats2,5,32)
      var %sp.defense = $gettok(%stats2,6,32)
      var %speed = $gettok(%stats2,7,32)
      echo -a Base Stats for %pokemon are:
      echo -a %hp %attack %defense %sp.attack %sp.defense %speed Total $calc(%hp + %defense + %attack + %sp.attack + %sp.defense + %speed)
    }
    on *:dialog:iv:sclick:297: {
      reset
    }
    menu channel,status,nicklist,query {
      Pokemon Calculators:ivcalculator
    }
    alias reset {
      did -r iv 21
      did -r iv 22
      did -r iv 23
      did -r iv 24
      did -r iv 25
      did -r iv 26
      did -r iv 33
      did -r iv 34
      did -r iv 35
      did -r iv 36
      did -r iv 37
      did -r iv 38
      did -r iv 45
      did -r iv 46
      did -r iv 47
      did -r iv 48
      did -r iv 49
      did -r iv 50
      did -r iv 57
      did -r iv 58
      did -r iv 59
      did -r iv 60
      did -r iv 61
      did -r iv 62
      did -r iv 69
      did -r iv 70
      did -r iv 71
      did -r iv 72
      did -r iv 73
      did -r iv 74
      did -r iv 81
      did -r iv 82
      did -r iv 83
      did -r iv 84
      did -r iv 85
      did -r iv 86
      did -r iv 93
      did -r iv 94
      did -r iv 95
      did -r iv 96
      did -r iv 97
      did -r iv 98
      did -r iv 105
      did -r iv 106
      did -r iv 107
      did -r iv 108
      did -r iv 109
      did -r iv 110
      did -r iv 117
      did -r iv 118
      did -r iv 119
      did -r iv 120
      did -r iv 121
      did -r iv 122
      did -r iv 129
      did -r iv 130
      did -r iv 131
      did -r iv 132
      did -r iv 133
      did -r iv 134
      did -r iv 141
      did -r iv 142
      did -r iv 143
      did -r iv 144
      did -r iv 145
      did -r iv 146
      did -r iv 153
      did -r iv 154
      did -r iv 155
      did -r iv 156
      did -r iv 157
      did -r iv 158
      did -r iv 165
      did -r iv 166
      did -r iv 167
      did -r iv 168
      did -r iv 169
      did -r iv 170
      did -r iv 177
      did -r iv 178
      did -r iv 179
      did -r iv 180
      did -r iv 181
      did -r iv 182
      did -r iv 189
      did -r iv 190
      did -r iv 191
      did -r iv 192
      did -r iv 193
      did -r iv 194
      did -r iv 201
      did -r iv 202
      did -r iv 203
      did -r iv 204
      did -r iv 205
      did -r iv 206
      did -r iv 213
      did -r iv 214
      did -r iv 215
      did -r iv 216
      did -r iv 217
      did -r iv 218
      did -r iv 225
      did -r iv 226
      did -r iv 227
      did -r iv 228
      did -r iv 229
      did -r iv 230
      did -r iv 237
      did -r iv 238
      did -r iv 239
      did -r iv 240
      did -r iv 241
      did -r iv 242
      did -r iv 249
      did -r iv 250
      did -r iv 251
      did -r iv 252
      did -r iv 253
      did -r iv 254
      did -ro iv 27 1 0
      did -ro iv 28 1 0
      did -ro iv 29 1 0
      did -ro iv 30 1 0
      did -ro iv 31 1 0
      did -ro iv 32 1 0
      did -ro iv 39 1 0
      did -ro iv 40 1 0
      did -ro iv 41 1 0
      did -ro iv 42 1 0
      did -ro iv 43 1 0
      did -ro iv 44 1 0
      did -ro iv 51 1 0
      did -ro iv 52 1 0
      did -ro iv 53 1 0
      did -ro iv 54 1 0
      did -ro iv 55 1 0
      did -ro iv 56 1 0
      did -ro iv 63 1 0
      did -ro iv 64 1 0
      did -ro iv 65 1 0
      did -ro iv 66 1 0
      did -ro iv 67 1 0
      did -ro iv 68 1 0
      did -ro iv 75 1 0
      did -ro iv 76 1 0
      did -ro iv 77 1 0
      did -ro iv 78 1 0
      did -ro iv 79 1 0
      did -ro iv 80 1 0
      did -ro iv 87 1 0
      did -ro iv 88 1 0
      did -ro iv 89 1 0
      did -ro iv 90 1 0
      did -ro iv 91 1 0
      did -ro iv 92 1 0
      did -ro iv 99 1 0
      did -ro iv 100 1 0
      did -ro iv 101 1 0
      did -ro iv 102 1 0
      did -ro iv 103 1 0
      did -ro iv 104 1 0
      did -ro iv 111 1 0
      did -ro iv 112 1 0
      did -ro iv 113 1 0
      did -ro iv 114 1 0
      did -ro iv 115 1 0
      did -ro iv 116 1 0
      did -ro iv 123 1 0
      did -ro iv 124 1 0
      did -ro iv 125 1 0
      did -ro iv 126 1 0
      did -ro iv 127 1 0
      did -ro iv 128 1 0
      did -ro iv 135 1 0
      did -ro iv 136 1 0
      did -ro iv 137 1 0
      did -ro iv 138 1 0
      did -ro iv 139 1 0
      did -ro iv 140 1 0
      did -ro iv 147 1 0
      did -ro iv 148 1 0
      did -ro iv 149 1 0
      did -ro iv 150 1 0
      did -ro iv 151 1 0
      did -ro iv 152 1 0
      did -ro iv 159 1 0
      did -ro iv 160 1 0
      did -ro iv 161 1 0
      did -ro iv 162 1 0
      did -ro iv 163 1 0
      did -ro iv 164 1 0
      did -ro iv 171 1 0
      did -ro iv 172 1 0
      did -ro iv 173 1 0
      did -ro iv 174 1 0
      did -ro iv 175 1 0
      did -ro iv 176 1 0
      did -ro iv 183 1 0
      did -ro iv 184 1 0
      did -ro iv 185 1 0
      did -ro iv 186 1 0
      did -ro iv 187 1 0
      did -ro iv 188 1 0
      did -ro iv 195 1 0
      did -ro iv 196 1 0
      did -ro iv 197 1 0
      did -ro iv 198 1 0
      did -ro iv 199 1 0
      did -ro iv 200 1 0
      did -ro iv 207 1 0
      did -ro iv 208 1 0
      did -ro iv 209 1 0
      did -ro iv 210 1 0
      did -ro iv 211 1 0
      did -ro iv 212 1 0
      did -ro iv 219 1 0
      did -ro iv 220 1 0
      did -ro iv 221 1 0
      did -ro iv 222 1 0
      did -ro iv 223 1 0
      did -ro iv 224 1 0
      did -ro iv 231 1 0
      did -ro iv 232 1 0
      did -ro iv 233 1 0
      did -ro iv 234 1 0
      did -ro iv 235 1 0
      did -ro iv 236 1 0
      did -ro iv 243 1 0
      did -ro iv 244 1 0
      did -ro iv 245 1 0
      did -ro iv 246 1 0
      did -ro iv 247 1 0
      did -ro iv 248 1 0
      did -ro iv 255 1 0
      did -ro iv 256 1 0
      did -ro iv 257 1 0
      did -ro iv 258 1 0
      did -ro iv 259 1 0
      did -ro iv 260 1 0
      remini -n stats.txt ivs
    }
    on *:dialog:iv:sclick:281: {
      if (%no.evs == yes) {
        unset %no.evs
        did -e iv 27
        did -e iv 28
        did -e iv 29
        did -e iv 30
        did -e iv 31
        did -e iv 32
        did -e iv 39
        did -e iv 40
        did -e iv 41
        did -e iv 42
        did -e iv 43
        did -e iv 44
        did -e iv 51
        did -e iv 52
        did -e iv 53
        did -e iv 54
        did -e iv 55
        did -e iv 56
        did -e iv 63
        did -e iv 64
        did -e iv 65
        did -e iv 66
        did -e iv 67
        did -e iv 68
        did -e iv 75
        did -e iv 76
        did -e iv 77
        did -e iv 78
        did -e iv 79
        did -e iv 80
        did -e iv 87
        did -e iv 88
        did -e iv 89
        did -e iv 90
        did -e iv 91
        did -e iv 92
        did -e iv 99
        did -e iv 100
        did -e iv 101
        did -e iv 102
        did -e iv 103
        did -e iv 104
        did -e iv 111
        did -e iv 112
        did -e iv 113
        did -e iv 114
        did -e iv 115
        did -e iv 116
        did -e iv 123
        did -e iv 124
        did -e iv 125
        did -e iv 126
        did -e iv 127
        did -e iv 128
        did -e iv 135
        did -e iv 136
        did -e iv 137
        did -e iv 138
        did -e iv 139
        did -e iv 140
        did -e iv 147
        did -e iv 148
        did -e iv 149
        did -e iv 150
        did -e iv 151
        did -e iv 152
        did -e iv 159
        did -e iv 160
        did -e iv 161
        did -e iv 162
        did -e iv 163
        did -e iv 164
        did -e iv 171
        did -e iv 172
        did -e iv 173
        did -e iv 174
        did -e iv 175
        did -e iv 176
        did -e iv 183
        did -e iv 184
        did -e iv 185
        did -e iv 186
        did -e iv 187
        did -e iv 188
        did -e iv 195
        did -e iv 196
        did -e iv 197
        did -e iv 198
        did -e iv 199
        did -e iv 200
        did -e iv 207
        did -e iv 208
        did -e iv 209
        did -e iv 210
        did -e iv 211
        did -e iv 212
        did -e iv 219
        did -e iv 220
        did -e iv 221
        did -e iv 222
        did -e iv 223
        did -e iv 224
        did -e iv 231
        did -e iv 232
        did -e iv 233
        did -e iv 234
        did -e iv 235
        did -e iv 236
        did -e iv 243
        did -e iv 244
        did -e iv 245
        did -e iv 246
        did -e iv 247
        did -e iv 248
        did -e iv 255
        did -e iv 256
        did -e iv 257
        did -e iv 258
        did -e iv 259
        did -e iv 260
      }
      else {
        set %no.evs yes
        did -b iv 27
        did -b iv 28
        did -b iv 29
        did -b iv 30
        did -b iv 31
        did -b iv 32
        did -b iv 39
        did -b iv 40
        did -b iv 41
        did -b iv 42
        did -b iv 43
        did -b iv 44
        did -b iv 51
        did -b iv 52
        did -b iv 53
        did -b iv 54
        did -b iv 55
        did -b iv 56
        did -b iv 63
        did -b iv 64
        did -b iv 65
        did -b iv 66
        did -b iv 67
        did -b iv 68
        did -b iv 75
        did -b iv 76
        did -b iv 77
        did -b iv 78
        did -b iv 79
        did -b iv 80
        did -b iv 87
        did -b iv 88
        did -b iv 89
        did -b iv 90
        did -b iv 91
        did -b iv 92
        did -b iv 99
        did -b iv 100
        did -b iv 101
        did -b iv 102
        did -b iv 103
        did -b iv 104
        did -b iv 111
        did -b iv 112
        did -b iv 113
        did -b iv 114
        did -b iv 115
        did -b iv 116
        did -b iv 123
        did -b iv 124
        did -b iv 125
        did -b iv 126
        did -b iv 127
        did -b iv 128
        did -b iv 135
        did -b iv 136
        did -b iv 137
        did -b iv 138
        did -b iv 139
        did -b iv 140
        did -b iv 147
        did -b iv 148
        did -b iv 149
        did -b iv 150
        did -b iv 151
        did -b iv 152
        did -b iv 159
        did -b iv 160
        did -b iv 161
        did -b iv 162
        did -b iv 163
        did -b iv 164
        did -b iv 171
        did -b iv 172
        did -b iv 173
        did -b iv 174
        did -b iv 175
        did -b iv 176
        did -b iv 183
        did -b iv 184
        did -b iv 185
        did -b iv 186
        did -b iv 187
        did -b iv 188
        did -b iv 195
        did -b iv 196
        did -b iv 197
        did -b iv 198
        did -b iv 199
        did -b iv 200
        did -b iv 207
        did -b iv 208
        did -b iv 209
        did -b iv 210
        did -b iv 211
        did -b iv 212
        did -b iv 219
        did -b iv 220
        did -b iv 221
        did -b iv 222
        did -b iv 223
        did -b iv 224
        did -b iv 231
        did -b iv 232
        did -b iv 233
        did -b iv 234
        did -b iv 235
        did -b iv 236
        did -b iv 243
        did -b iv 244
        did -b iv 245
        did -b iv 246
        did -b iv 247
        did -b iv 248
        did -b iv 255
        did -b iv 256
        did -b iv 257
        did -b iv 258
        did -b iv 259
        did -b iv 260
      }
    }
    alias hp {
      var %base = $1
      var %iv = $2
      var %level = $3
      var %evs = $4
      var %q = $calc((%base * 2 + %iv + $int($calc(%evs / 4))) * (%level / 100) + %level + 10)
      return $int(%q)
    }
    alias stat {
      var %base = $1
      var %iv = $2
      var %level = $3
      var %nature = $4
      var %evs = $5
      var %q = $int($calc((%base * 2 + %iv + $int($calc(%evs / 4))) * (%level / 100) + 5))
      var %e = $int($calc(%q * %nature))
      return %e
    }
    on *:dialog:iv:sclick:296: {
      unset %hidden*
      remini -n stats.txt ivs
      var %a = 1
      var %b = 20
      while (%a <= %b) {
        %num1 = $calc(9 + (12 * %a))
        if (($did(%num1)) || ($did($calc(%num1 + 1))) || ($did($calc(%num1 + 2))) || ($did($calc(%num1 + 3))) || ($did($calc(%num1 + 4))) || ($did($calc(%num1 + 5)))) {
          set %c % $+ %a $+ .level
          writeini -n stats.txt %pokemon  [ [ %c ] ] $did(%num1) $iif($did( $calc( %num1 + 1)),$did( $calc( %num1 + 1)),0) $iif($did( $calc( %num1 + 2 )),$did( $calc( %num1 + 2 )),0) $iif($did( $calc( %num1 +3 )),$did( $calc( %num1 +3 )),0) $iif($did( $calc( %num1 + 4 )),$did( $calc( %num1 + 4 )),0) $iif($did( $calc( %num1 + 5)),$did( $calc( %num1 + 5)),0) $did( $calc( %num1 + 6)) $did( $calc( %num1 + 7)) $did( $calc( %num1 + 8)) $did( $calc( %num1 + 9)) $did( $calc( %num1 + 10)) $did( $calc( %num1 + 11))
        }
        else writeini -n stats.txt level %a 0
        inc %a
      }
      var %a = 1
      var %b = $ini(Stats.txt,%pokemon,0)
      while (%a <= %b) {
        var %level = $ini(Stats.txt,%pokemon,%a)
        var %stats = $readini( stats.txt,%pokemon,%level)
        set %attackevs $gettok(%stats,8,32)
        set %defenseevs $gettok(%stats,9,32)
        set %sp.attackevs $gettok(%stats,10,32)
        set %sp.defenseevs $gettok(%stats,11,32)
        set %speedevs $gettok(%stats,12,32)
        set %hpevs $gettok(%stats,7,32)
        calcpossiblestats %level
        writeini -n stats.txt level %level 1
        ivs %level
        inc %a
        set %nextlevel3 $calc(%level + 1)
      }
      if (!$readini(stats.txt ,IVs,hp)) writeini -n stats.txt ivs hp Invalid
      if (!$readini(stats.txt,IVs,attack)) writeini -n stats.txt ivs attack Invalid
      if (!$readini(stats.txt,IVs,defense)) writeini -n stats.txt ivs defense Invalid
      if (!$readini( stats.txt ,IVs,sp.attack)) writeini -n stats.txt ivs sp.attack Invalid
      if (!$readini(stats.txt,IVs,sp.defense)) writeini -n stats.txt ivs sp.defense Invalid
      if (!$readini(stats.txt,IVs,speed)) writeini -n stats.txt ivs speed Invalid
      set %hpiv1 $gettok($readini(stats.txt,ivs,hp),1,32)
      set %hpiv2 $gettok($readini(stats.txt,ivs,hp),$numtok($readini(stats.txt,ivs,hp),32),32)
      set %hpiv $iif(%hpiv1 == %hpiv2,$iif(%hpiv1 == invalid,%hpiv1,$calc(%hpiv1 - 1)),$calc(%hpiv1 - 1) $+ - $+ $calc(%hpiv2 - 1))
      set %attackiv1 $gettok($readini(stats.txt,ivs,attack),1,32)
      set %attackiv2 $gettok($readini(stats.txt,ivs,attack),$numtok($readini(stats.txt,ivs,attack),32),32)
      set %attackiv $iif(%attackiv1 == %attackiv2,$iif(%attackiv1 == invalid,%attackiv1,$calc(%attackiv1 -1)),$calc(%attackiv1 - 1) $+ - $+ $calc(%attackiv2 - 1))
      set %defenseiv1 $gettok($readini(stats.txt,ivs,defense),1,32)
      set %defenseiv2 $gettok($readini(stats.txt,ivs,defense),$numtok($readini(stats.txt,ivs,defense),32),32)
      set %defenseiv $iif(%defenseiv1 == %defenseiv2,$iif(%defenseiv1 == invalid,%defenseiv1,$calc(%defenseiv1 -1)),$calc(%defenseiv1 - 1) $+ - $+ $calc(%defenseiv2 -1))
      set %sp.defenseiv1 $gettok($readini(stats.txt,ivs,sp.defense),1,32)
      set %sp.defenseiv2 $gettok($readini(stats.txt,ivs,sp.defense),$numtok($readini(stats.txt,ivs,sp.defense),32),32)
      set %sp.defenseiv $iif(%sp.defenseiv1 == %sp.defenseiv2,$iif(%sp.defenseiv1 == invalid,%sp.defenseiv1,$calc(%sp.defenseiv1 - 1)),$calc(%sp.defenseiv1 - 1) $+ - $+ $calc(%sp.defenseiv2 - 1))
      set %sp.attackiv1 $gettok($readini(stats.txt,ivs,sp.attack),1,32)
      set %sp.attackiv2 $gettok($readini(stats.txt,ivs,sp.attack),$numtok($readini(stats.txt,ivs,sp.attack),32),32)
      set %sp.attackiv $iif(%sp.attackiv1 == %sp.attackiv2,$iif(%sp.attackiv1 == invalid,%sp.attackiv1,$calc(%sp.attackiv1 - 1)),$calc(%sp.attackiv1 - 1) $+ - $+ $calc(%sp.attackiv2 - 1))
      set %speediv1 $gettok($readini(stats.txt,ivs,speed),1,32)
      set %speediv2 $gettok($readini(stats.txt,ivs,speed),$numtok($readini(stats.txt,ivs,speed),32),32)
      set %speediv $iif(%speediv1 == %speediv2,$iif(%speediv1 == invalid,%speediv1,$calc(%speediv1 - 1)),$calc(%speediv1 - 1) $+ - $+ $calc(%speediv2 - 1))
      set %hiddenpower3 $hiddenpower
      nexthelpfullevel
      set %nextlevel3 $calc($ini(stats.txt,%pokemon,$ini(stats.txt,%pokemon,0)) + 1)
      dialog -m results results
      clipboard %nature %pokemon2 $+ : %hpiv / %attackiv / %defenseiv / %sp.attackiv / %sp.defenseiv / %speediv :: %hiddenpower2
    }
    alias createstat {
      var %ff = 0
      var %base = $1
      var %nature = $2
      var %level = $3
      var %evs = $4
      while (%ff <= 31) {
        var %stat = $stat(%base,%ff,%level,%nature,%evs)
        var %output = %output %stat
        inc %ff
      }
      return %output
    }
    alias createhp {
      var %ff = 0
      var %base = $1
      var %level = $2
      var %evs = $3
      while (%ff <= 31) {
        var %stat = $hp(%base,%ff,%level,%evs)
        var %output = %output %stat
        inc %ff
      }
      return %output
    }
    alias calcpossiblestats {
      var %file = stats.txt
      var %a = $1
      writeini -n %file Attack %a $createstat(%attack,%attack.n,%a,%attackevs)
      writeini -n %file Defense %a $createstat(%defense,%defense.n,%a,%defenseevs)
      writeini -n %file Sp.Attack %a $createstat(%sp.attack,%sp.attack.n,%a,%sp.attackevs)
      writeini -n %file Sp.Defense %a $createstat(%sp.defense,%sp.defense.n,%a,%sp.defenseevs)
      writeini -n %file Speed %a $createstat(%speed,%speed.n,%a,%speedevs)
      writeini -n %file HP %a $createhp(%hp,%a,%hpevs)
    
    }
    alias checkattack {
      var %level = $1
      var %file = $readini(stats.txt,Ivs,Attack)
      var %last = $numtok(%file,32)
      var %start = $iif($gettok(%file,1,32),$gettok(%file,1,32),1)
      var %end = $iif($gettok(%file,%last,32),$gettok(%file,%last,32),32)
      var %pokemon.level = $readini(stats.txt,%pokemon,%level)
      var %attack.level = $readini(stats.txt,attack,%level)
      var %stat = $gettok(%pokemon.level,2,32)
      remini -n stats.txt ivs attack
      while (%start <= %end) {
        var %file = $readini(stats.txt,Ivs,Attack)
        var %stativ = $gettok(%attack.level,%start,32)
        if (%stat == %stativ) {
          var %output = %file %start
          writeini -n stats.txt Ivs Attack %output
        }
        inc %start
      }
    }
    alias checkHP {
      var %level = $1
      var %file = $readini(stats.txt,Ivs,HP)
      var %last = $numtok(%file,32)
      var %start = $iif( $gettok(%file,1,32),$gettok(%file,1,32),1)
      var %end = $iif($gettok(%file,%last,32),$gettok(%file,%last,32),32)
      var %pokemon.level = $readini(stats.txt,%pokemon,%level)
      var %HP.level = $readini(stats.txt,HP,%level)
      var %stat = $gettok(%pokemon.level,1,32)
      remini -n stats.txt ivs hp
      while (%start <= %end) {
        var %file = $readini(stats.txt,Ivs,HP)
        var %stativ = $gettok(%HP.level,%start,32)
        if (%stat == %stativ) {
          var %output = %file %start
          writeini -n stats.txt Ivs HP %output
        }
        inc %start
      }
    }
    alias checkDefense {
      var %level = $1
      var %file = $readini(stats.txt,Ivs,Defense)
      var %last = $numtok(%file,32)
      var %start = $iif($gettok(%file,1,32),$gettok(%file,1,32),1)
      var %end = $iif($gettok(%file,%last,32),$gettok(%file,%last,32),32)
      var %pokemon.level = $readini(stats.txt,%pokemon,%level)
      var %Defense.level = $readini(stats.txt,Defense,%level)
      var %stat = $gettok(%pokemon.level,3,32)
      remini -n stats.txt ivs defense
      while (%start <= %end) {
        var %file = $readini(stats.txt,Ivs,Defense)
        var %stativ = $gettok(%Defense.level,%start,32)
        if (%stat == %stativ) {
          var %output = %file %start
          writeini -n stats.txt Ivs Defense %output
        }
        inc %start
      }
    }
    alias checkSp.Attack {
      var %level = $1
      var %file = $readini(stats.txt,Ivs,Sp.Attack)
      var %last = $numtok(%file,32)
      var %start = $iif($gettok(%file,1,32),$gettok(%file,1,32),1)
      var %end = $iif($gettok(%file,%last,32),$gettok(%file,%last,32),32)
      var %pokemon.level = $readini(stats.txt,%pokemon,%level)
      var %Sp.Attack.level = $readini( stats.txt,Sp.Attack,%level)
      var %stat = $gettok(%pokemon.level,4,32)
      remini -n stats.txt ivs sp.attack
      while (%start <= %end) {
        var %file = $readini(stats.txt,Ivs,Sp.Attack)
        var %stativ = $gettok(%Sp.Attack.level,%start,32)
        if (%stat == %stativ) {
          var %output = %file %start
          writeini -n stats.txt Ivs Sp.Attack %output
        }
        inc %start
      }
    }
    alias checkSp.Defense {
      var %level = $1
      var %file = $readini( stats.txt,Ivs,Sp.Defense)
      var %last = $numtok(%file,32)
      var %start = $iif($gettok(%file,1,32),$gettok(%file,1,32),1)
      var %end = $iif($gettok(%file,%last,32),$gettok(%file,%last,32),32)
      var %pokemon.level = $readini( stats.txt,%pokemon,%level)
      var %Sp.Defense.level = $readini(stats.txt,Sp.Defense,%level)
      var %stat = $gettok(%pokemon.level,5,32)
      remini -n stats.txt ivs sp.defense
      while (%start <= %end) {
        var %file = $readini( stats.txt,Ivs,Sp.Defense)
        var %stativ = $gettok(%Sp.Defense.level,%start,32)
        if (%stat == %stativ) {
          var %output = %file %start
          writeini -n stats.txt Ivs Sp.Defense %output
        }
        inc %start
      }
    }
    alias checkSpeed {
      var %level = $1
      var %file = $readini(stats.txt,Ivs,Speed)
      var %last = $numtok(%file,32)
      var %start = $iif($gettok(%file,1,32),$gettok(%file,1,32),1)
      var %end = $iif($gettok(%file,%last,32), $gettok(%file,%last,32),32)
      var %pokemon.level = $readini(stats.txt,%pokemon,%level)
      var %Speed.level = $readini(stats.txt,Speed,%level)
      var %stat = $gettok(%pokemon.level,6,32)
      remini -n stats.txt ivs speed
      while (%start <= %end) {
        var %file = $readini(stats.txt,Ivs,Speed)
        var %stativ = $gettok(%Speed.level,%start,32)
        if (%stat == %stativ) {
          var %output = %file %start
          writeini -n stats.txt Ivs Speed %output
        }
        inc %start
      }
    }
    alias ivs {
      var %start = $1
      if ($readini(stats.txt,level,%start) == 1) {
        checkhp %start
        checkattack %start
        checkdefense %start
        checksp.Attack %start
        checksp.defense %start
        checkspeed %start
        set %lastlevel %start
      }
    }
    dialog results {
      option dbu
      title "BoB's IV Calculator Version 1.1"
      size -1 -1 140 130
      text "Stats" 1, 5 15 15 10
      text "HP:" 2, 5 25 10 10
      text "Attack:" 3, 5 35 20 10
      text "Defense" 12, 5 45 20 10
      text "Special Attack:" 4, 5 55 40 10
      text "Special Defense:" 5, 5 65 40 10
      text "Speed:" 6, 5 75 30 10
      text "IVs" 7, 55 15 10 10
      text %hpiv, 8, 55 25 20 10
      text %attackiv, 9, 55 35 20 10
      text %defenseiv, 10, 55 45 20 10
      text %sp.attackiv, 11, 55 55 20 10
      text %sp.defenseiv, 13, 55 65 20 10
      text %speediv, 14, 55 75 20 10
      text %hiddenpower3, 15, 5 85 120 20
      text "Next Helpful Level" 16, 85 15 50 10
      text %nhl.hp, 17, 85 25 10 10
      text %nhl.attack, 18, 85 35 10 10
      text %nhl.defense, 19, 85 45 10 10
      text %nhl.sp.attack, 20, 85 55 10 10
      text %nhl.sp.defense, 21, 85 65 10 10
      text %nhl.speed, 22, 85 75 10 10
      text "Results have been copied to clipboard." 23, 5 100 100 10
      Button "More Levels" 24, 65 110 40 10
      Button "Done" 25, 110 110 20 10
      Edit %nextlevel3, 26, 45 110 15 10
      text %pokemon2, 27, 5 5 50 10
      text %nature, 28, 60 5 40 10
      text "Keep Going" 29, 5 110 40 10
    }
    on *:dialog:results:sclick:24: {
      set %1.level $did(results,26)
      var %b = 2
      var %a = 20
      while (%b <= %a) {
        set % $+ %b $+ .level $calc(%1.level + %b - 1)
        inc %b
      }
      dialog -x results results
      refresh
      reset
    }
    on *:dialog:results:sclick:25: {
      dialog -x results results
      dialog -x iv iv
    }
    
    
    
    
    alias hiddenpower {
      if ((%hpiv1 != invalid) && (%hpiv1 == %hpiv2) && (%attackiv1 != invalid) && (%attackiv1 == %attackiv2) && (%defenseiv1 != invalid) && (%defenseiv1 == %defenseiv2) && (%sp.attackiv1 != invalid) && (%sp.attackiv1 == %sp.attackiv2) && (%sp.defenseiv1 != invalid) && (%sp.defenseiv1 == %sp.defenseiv2) && (%speediv1 != invalid) && (%speediv1 == %speediv2)) {
        var %hiddenpowertotal = 0
        if ( $int( $calc(%hpiv1 / 2 )) ==  $calc(%hpiv1 / 2 )) inc %hiddenpowertotal 1
        if ( $int( $calc(%attackiv1 / 2 )) ==  $calc(%attackiv1 / 2 )) inc %hiddenpowertotal 2
        if ( $int( $calc(%defenseiv1 / 2 )) ==  $calc(%defenseiv1 / 2 )) inc %hiddenpowertotal 4
        if ( $int( $calc(%sp.attackiv1 / 2 )) ==  $calc(%sp.attackiv1 / 2 )) inc %hiddenpowertotal 16
        if ( $int( $calc(%sp.defenseiv1 / 2 )) ==  $calc(%sp.defenseiv1 / 2 )) inc %hiddenpowertotal 32
        if ( $int( $calc(%speediv1 / 2 )) ==  $calc(%speediv1 / 2 )) inc %hiddenpowertotal 8
        if ((%hiddenpowertotal >= 0) && (%hiddenpowertotal <= 4)) set %hiddenpower Fighting
        if ((%hiddenpowertotal >= 5) && (%hiddenpowertotal <= 8)) set %hiddenpower Flying
        if ((%hiddenpowertotal >= 9) && (%hiddenpowertotal <= 12)) set %hiddenpower Poison
        if ((%hiddenpowertotal >= 13) && (%hiddenpowertotal <= 16)) set %hiddenpower Ground
        if ((%hiddenpowertotal >= 17) && (%hiddenpowertotal <= 20)) set %hiddenpower Rock
        if ((%hiddenpowertotal >= 21) && (%hiddenpowertotal <= 25)) set %hiddenpower Bug
        if ((%hiddenpowertotal >= 26) && (%hiddenpowertotal <= 29)) set %hiddenpower Ghost
        if ((%hiddenpowertotal >= 30) && (%hiddenpowertotal <= 33)) set %hiddenpower Steel
        if ((%hiddenpowertotal >= 34) && (%hiddenpowertotal <= 37)) set %hiddenpower Fire
        if ((%hiddenpowertotal >= 38) && (%hiddenpowertotal <= 41)) set %hiddenpower Water
        if ((%hiddenpowertotal >= 42) && (%hiddenpowertotal <= 46)) set %hiddenpower Grass
        if ((%hiddenpowertotal >= 47) && (%hiddenpowertotal <= 50)) set %hiddenpower Electric
        if ((%hiddenpowertotal >= 51) && (%hiddenpowertotal <= 54)) set %hiddenpower Psychic
        if ((%hiddenpowertotal >= 55) && (%hiddenpowertotal <= 58)) set %hiddenpower Ice
        if ((%hiddenpowertotal >= 59) && (%hiddenpowertotal <= 62)) set %hiddenpower Dragon
        if (%hiddenpowertotal == 63) set %hiddenpower Dark
        set %hiddenpowertotal2 0
        if ( $int($calc($int($calc( %hpiv1 / 2))/2)) ==  $calc($int($calc( %hpiv1 / 2))/2) ) inc %hiddenpowertotal2 1
        if ( $int($calc($int($calc( %attackiv1 / 2))/2)) ==  $calc($int($calc( %attackiv1 / 2))/2) ) inc %hiddenpowertotal2 2
        if ( $int($calc($int($calc( %defenseiv1 / 2))/2)) ==  $calc($int($calc( %defenseiv1 / 2))/2) ) inc %hiddenpowertotal2 4
        if ( $int($calc($int($calc( %sp.attackiv1 / 2))/2)) ==  $calc($int($calc( %sp.attackiv1 / 2))/2) ) inc %hiddenpowertotal2 16
        if ( $int($calc($int($calc( %sp.defenseiv1 / 2))/2)) ==  $calc($int($calc( %sp.defenseiv1 / 2))/2) ) inc %hiddenpowertotal2 32
        if ( $int($calc($int($calc( %speediv1 / 2))/2)) ==  $calc($int($calc( %speediv1 / 2))/2) ) inc %hiddenpowertotal2 8
        set %hiddenpowerpower $calc( $int( $calc(%hiddenpowertotal2 * 40 / 63)) + 30)
        set %hiddenpower2 Hidden Power %hiddenpower %hiddenpowerpower
        return Hidden Power Type is %hiddenpower  $+ . Power is %hiddenpowerpower  $+ .
      }
      else return One or more of the IVs is not exact, so Hidden Power calculation is not possible.
    }
    alias nexthelpfullevel {
      set %done 0
      unset %nhl.hp
      unset %nhl.attack
      unset %nhl.defense
      unset %nhl.sp.attack
      unset %nhl.sp.defense
      unset %nhl.speed
      set %level.nhl $calc(%lastlevel + 1)
      set %num.hpivs $numtok($readini(stats.txt,ivs,hp),32)
      set %nhl.hpivs $readini(stats.txt,ivs,hp)
      set %num.attackivs $numtok($readini(stats.txt,ivs,attack),32)
      set %nhl.attackivs $readini(stats.txt,ivs,attack)
      set %num.defenseivs $numtok($readini(stats.txt,ivs,defense),32)
      set %nhl.defenseivs $readini( stats.txt,ivs,defense)
      set %num.sp.attackivs $numtok($readini(stats.txt,ivs,sp.attack),32)
      set %nhl.sp.attackivs $readini(stats.txt,ivs,sp.attack)
      set %num.sp.defenseivs $numtok($readini(stats.txt,ivs,sp.defense ),32)
      set %nhl.sp.defenseivs $readini(stats.txt,ivs,sp.defense)
      set %num.speedivs $numtok($readini(stats.txt,ivs,speed),32)
      set %nhl.speedivs $readini(stats.txt,ivs,speed)
      while ((%level.nhl <= 100) && (%done < 6)) {
        calcpossiblestats %level.nhl
        if (%nhl.hpivs == invalid) { inc %done | set %hp3 done }
        else hpnhl
        if (%nhl.attackivs == invalid) { inc %done | set %attack3 done }
        else attacknhl
        if (%nhl.defenseivs == invalid) { inc %done | set %defense3 done }
        else defensenhl
        if (%nhl.sp.attackivs == invalid) { inc %done | set %sp.attack3 done }
        else sp.attacknhl
        if (%nhl.sp.defenseivs == invalid) { inc %done | set %sp.defense3 done }
        else sp.defensenhl
        if (%nhl.speedivs == invalid) { inc %done | set %speed3 done }
        else speednhl
        inc %level.nhl
      }
      unset %level.nhl
      unset %num.hpivs
      unset %num.attackivs
      unset %num.defenseivs
      unset %num.sp.attackivs
      unset %num.sp.defenseivs
      unset %num.speedivs
      unset %hp3
      unset %attack3
      unset %defense3
      unset %sp.attack3
      unset %sp.defense3
      unset %speed3
    
    }
    alias hpnhl {
      var %a = 1
      while ((%a < %num.hpivs) && (%hp3 != done)) {
        var %iv = $gettok(%nhl.hpivs,%a,32)
        var %stat1 = $gettok($readini(stats.txt,hp,%level.nhl),%iv,32)
        inc %iv
        var %stat2 = $gettok($readini( stats.txt,hp,%level.nhl),%iv,32)
        if (%stat1 != %stat2) {
          set %nhl.hp %level.nhl
          set %hp3 done
          inc %done
          break
        }
        inc %a
      }
    }
    alias attacknhl {
      var %a = 1
      while ((%a < %num.attackivs) && (%attack3 != done)) {
        var %iv = $gettok(%nhl.attackivs,%a,32)
        var %stat1 = $gettok( $readini(stats.txt,attack,%level.nhl),%iv,32)
        inc %iv
        var %stat2 = $gettok( $readini( stats.txt,attack,%level.nhl),%iv,32)
        if (%stat1 != %stat2) {
          set %nhl.attack %level.nhl
          set %attack3 done
          inc %done
          break
        }
        inc %a
      }
    }
    alias defensenhl {
      var %a = 1
      while ((%a < %num.defenseivs) && (%defense3 != done)) {
        var %iv = $gettok(%nhl.defenseivs,%a,32)
        var %stat1 = $gettok( $readini( stats.txt,defense,%level.nhl),%iv,32)
        inc %iv
        var %stat2 = $gettok( $readini(stats.txt,defense,%level.nhl),%iv,32)
        if (%stat1 != %stat2) {
          set %nhl.defense %level.nhl
          set %defense3 done
          inc %done
          break
        }
        inc %a
      }
    }
    alias sp.attacknhl {
      var %a = 1
      while ((%a < %num.sp.attackivs) && (%sp.attack3 != done)) {
        var %iv = $gettok(%nhl.sp.attackivs,%a,32)
        var %stat1.satk = $gettok($readini( stats.txt,sp.attack,%level.nhl),%iv,32)
        inc %iv
        var %stat2.satk = $gettok($readini(stats.txt,sp.attack,%level.nhl),%iv,32)
        if (%stat1.satk != %stat2.satk) {
          set %nhl.sp.attack %level.nhl
          set %sp.attack3 done
          inc %done
          break
        }
        inc %a
      }
    }
    alias sp.defensenhl {
      var %a = 1
      while ((%a < %num.sp.defenseivs) && (%sp.defense3 != done)) {
        set %iv $gettok(%nhl.sp.defenseivs,%a,32)
        set %stat1 $gettok($readini(stats.txt,sp.defense,%level.nhl),%iv,32)
        inc %iv
        set %stat2 $gettok($readini(stats.txt,sp.defense,%level.nhl),%iv,32)
        if (%stat1 != %stat2) {
          set %nhl.sp.defense %level.nhl
          set %sp.defense3 done
          inc %done
          break
        }
        inc %a
      }
    }
    alias speednhl {
      var %a = 1
      while ((%a < %num.speedivs) && (%speed3 != done)) {
        var %iv = $gettok(%nhl.speedivs,%a,32)
        var %stat1 = $gettok($readini(stats.txt,speed,%level.nhl),%iv,32)
        inc %iv
        var %stat2 = $gettok($readini(stats.txt,speed,%level.nhl),%iv,32)
        if (%stat1 != %stat2) {
          set %nhl.speed %level.nhl
          set %speed3 done
          inc %done
          break
        }
        inc %a
      }
    }
    #start on
    alias writepokemonfiles {
      write -c pokemonbasestats.txt
      write -c pokemonnatures.txt
      write -c pokemonpokemon.txt
      write pokemonbasestats.txt [Base Stats]
      write pokemonbasestats.txt Abomasnow=90 92 75 92 85 60
      write pokemonbasestats.txt Abra=25 20 15 105 55 90
      write pokemonbasestats.txt Absol=65 130 60 75 60 75
      write pokemonbasestats.txt Aerodactyl=80 105 65 60 75 130
      write pokemonbasestats.txt Aggron=70 110 180 60 60 50
      write pokemonbasestats.txt Aipom=55 70 55 40 55 85
      write pokemonbasestats.txt Alakazam=55 50 45 135 85 120
      write pokemonbasestats.txt Altaria=75 70 90 70 105 80
      write pokemonbasestats.txt Ambipom=75 100 66 60 115 482
      write pokemonbasestats.txt Ampharos=90 75 75 115 90 55
      write pokemonbasestats.txt Anorith=45 95 50 40 50 75
      write pokemonbasestats.txt Arbok=60 85 69 65 79 80
      write pokemonbasestats.txt Arcanine=90 110 80 100 80 95
      write pokemonbasestats.txt Arceus=120 120 120 120 120 120
      write pokemonbasestats.txt Ariados=70 90 70 60 60 40
      write pokemonbasestats.txt Armaldo=75 125 100 70 80 45
      write pokemonbasestats.txt Aron=50 70 100 40 40 30
      write pokemonbasestats.txt Articuno=90 85 100 95 125 85
      write pokemonbasestats.txt Azelf=75 125 70 125 70 115
      write pokemonbasestats.txt Azumarill=100 50 80 50 80 50
      write pokemonbasestats.txt Azurill=50 20 40 20 40 20 190
      write pokemonbasestats.txt Bagon=45 75 60 40 30 50
      write pokemonbasestats.txt Baltoy=40 40 55 40 70 55
      write pokemonbasestats.txt Banette=64 115 65 83 63 65
      write pokemonbasestats.txt Barboach=50 48 43 46 41 60
      write pokemonbasestats.txt Bastiodon=60 52 168 47 138 30
      write pokemonbasestats.txt Bayleef=60 62 80 63 80 60
      write pokemonbasestats.txt Beautifly=60 70 50 90 50 65
      write pokemonbasestats.txt Beedrill=65 80 40 45 80 75
      write pokemonbasestats.txt Beldum=40 55 80 35 60 30
      write pokemonbasestats.txt Bellossom=75 80 85 90 100 50
      write pokemonbasestats.txt Bellsprout=50 75 35 70 30 40
      write pokemonbasestats.txt Bibarel=79 85 60 55 60 71
      write pokemonbasestats.txt Bidoof=59 45 40 35 40 31
      write pokemonbasestats.txt Blastoise=79 83 100 85 105 78
      write pokemonbasestats.txt Blaziken=80 120 70 110 70 80
      write pokemonbasestats.txt Blissey=255 10 10 75 135 55
      write pokemonbasestats.txt Bonsly=50 80 95 10 45 10
      write pokemonbasestats.txt Breloom=60 130 80 60 60 70
      write pokemonbasestats.txt Bronzong=67 89 116 79 116 33
      write pokemonbasestats.txt Bronzor=57 24 86 24 86 23
      write pokemonbasestats.txt Budew=40 30 35 50 70 55
      write pokemonbasestats.txt Buizel=55 65 35 60 30 85
      write pokemonbasestats.txt Bulbasaur=45 49 49 65 65 45
      write pokemonbasestats.txt Buneary=55 66 44 44 56 85
      write pokemonbasestats.txt Burmy=40 29 45 29 45 36
      write pokemonbasestats.txt Butterfree=60 45 50 80 80 70
      write pokemonbasestats.txt Cacnea=50 85 40 85 40 35
      write pokemonbasestats.txt Cacturne=70 115 60 115 60 55
      write pokemonbasestats.txt Camerupt=70 100 70 105 75 40
      write pokemonbasestats.txt Carnivine=74 100 72 90 72 46
      write pokemonbasestats.txt Carvanha=45 90 20 65 20 65
      write pokemonbasestats.txt Cascoon=50 35 55 25 25 15
      write pokemonbasestats.txt Castform=70 70 70 70 70 70
      write pokemonbasestats.txt Caterpie=45 30 35 20 20 45
      write pokemonbasestats.txt Celebi=100 100 100 100 100 100
      write pokemonbasestats.txt Chansey=250 5 5 35 105 50
      write pokemonbasestats.txt Charizard=78 84 78 109 58 100
      write pokemonbasestats.txt Charmander=39 52 43 60 50 65
      write pokemonbasestats.txt Charmeleon=58 64 58 80 65 80
      write pokemonbasestats.txt Chatot=76 65 45 92 42 91
      write pokemonbasestats.txt Cherrim=70 60 70 87 78 85
      write pokemonbasestats.txt Cherubi=45 35 45 62 53 35
      write pokemonbasestats.txt Chikorita=45 49 65 49 65 45
      write pokemonbasestats.txt Chimchar=44 58 44 58 44 61
      write pokemonbasestats.txt Chimecho=65 50 70 95 80 65
      write pokemonbasestats.txt Chinchou=75 38 38 56 56 67
      write pokemonbasestats.txt Chingling=45 30 50 65 50 45
      write pokemonbasestats.txt Clamperl=35 64 85 74 55 32
      write pokemonbasestats.txt Claydol=60 70 105 70 120 75
      write pokemonbasestats.txt Clefable=95 70 73 85 90 60
      write pokemonbasestats.txt Clefairy=70 45 48 60 65 35
      write pokemonbasestats.txt Cleffa=50 25 28 45 55 15
      write pokemonbasestats.txt Cloyster=50 95 180 85 45 70
      write pokemonbasestats.txt Combee=30 30 42 30 42 70
      write pokemonbasestats.txt Combusken=60 85 60 85 60 55
      write pokemonbasestats.txt Corphish=43 80 65 50 35 35
      write pokemonbasestats.txt Corsola=55 55 85 65 85 35
      write pokemonbasestats.txt Cradily=86 81 97 81 107 43
      write pokemonbasestats.txt Cranidos=67 125 40 30 30 58
      write pokemonbasestats.txt Crawdaunt=63 120 85 90 55 55
      write pokemonbasestats.txt Cresselia=120 70 120 75 130 85
      write pokemonbasestats.txt Croagunk=48 61 40 61 40 50
      write pokemonbasestats.txt Crobat=85 90 80 70 80 130
      write pokemonbasestats.txt Croconaw=65 80 80 59 63 58
      write pokemonbasestats.txt Cubone=50 50 95 40 50 35
      write pokemonbasestats.txt Cyndaquil=39 52 43 60 50 65
      write pokemonbasestats.txt Darkrai=70 90 90 135 90 125
      write pokemonbasestats.txt Delcatty=70 65 65 55 55 70 380
      write pokemonbasestats.txt Delibird=45 55 45 65 45 75
      write pokemonbasestats.txt Deoxys=50 150 50 150 50 150
      write pokemonbasestats.txt Deoxys-E=50 95 90 95 90 180
      write pokemonbasestats.txt Deoxys-F=50 180 20 180 20 150
      write pokemonbasestats.txt Deoxys-L=50 70 160 70 160 90
      write pokemonbasestats.txt Dewgong=90 70 80 70 95 70
      write pokemonbasestats.txt Dialga=100 120 120 150 100 90
      write pokemonbasestats.txt Diglett=10 55 25 35 45 95
      write pokemonbasestats.txt Ditto=48 48 48 48 48 48
      write pokemonbasestats.txt Dodrio=60 110 70 60 60 100
      write pokemonbasestats.txt Doduo=35 85 45 35 35 75
      write pokemonbasestats.txt Donphan=90 120 120 60 60 50
      write pokemonbasestats.txt Dragonair=61 84 65 70 70 70
      write pokemonbasestats.txt Dragonite=91 134 95 100 100 80
      write pokemonbasestats.txt Drapion=70 90 110 60 75 95
      write pokemonbasestats.txt Dratini=41 64 45 50 50 50
      write pokemonbasestats.txt Drifblim=150 80 44 90 54 80
      write pokemonbasestats.txt Drifloon=90 50 34 60 44 70
      write pokemonbasestats.txt Drowzee=60 48 45 43 90 42
      write pokemonbasestats.txt Dugtrio=35 80 50 50 70 120
      write pokemonbasestats.txt Dunsparce=100 70 70 65 65 45
      write pokemonbasestats.txt Dusclops=40 70 130 60 130 25
      write pokemonbasestats.txt Dusknoir=45 100 135 65 135 45
      write pokemonbasestats.txt Duskull=20 40 90 30 90 25
      write pokemonbasestats.txt Dustox=60 50 70 50 90 65
      write pokemonbasestats.txt Eevee=55 55 50 45 65 55
      write pokemonbasestats.txt Ekans=35 60 44 40 54 55
      write pokemonbasestats.txt Electabuzz=65 83 57 95 85 105
      write pokemonbasestats.txt Electivire=75 123 67 95 85 95
      write pokemonbasestats.txt Electrike=40 45 40 65 40 65
      write pokemonbasestats.txt Electrode=60 50 70 80 80 140
      write pokemonbasestats.txt Elekid=45 63 37 65 55 95
      write pokemonbasestats.txt Empoleon=84 86 88 111 101 60
      write pokemonbasestats.txt Entei=115 115 85 90 75 100
      write pokemonbasestats.txt Espeon=65 65 60 130 95 110
      write pokemonbasestats.txt Exeggcute=60 40 80 60 45 40
      write pokemonbasestats.txt Exeggutor=95 95 85 125 65 55
      write pokemonbasestats.txt Exploud=104 91 63 91 63 68
      write pokemonbasestats.txt Farfetch'd=52 65 55 58 62 60
      write pokemonbasestats.txt Fearow=65 90 65 61 61 100
      write pokemonbasestats.txt Feebas=20 15 20 10 55 80
      write pokemonbasestats.txt Feraligatr=85 105 100 79 83 78
      write pokemonbasestats.txt Finneon=49 49 56 49 61 66
      write pokemonbasestats.txt Flaaffy=70 55 55 80 60 45
      write pokemonbasestats.txt Flareon=65 130 60 95 110 65
      write pokemonbasestats.txt Floatzel=85 105 55 85 50 115
      write pokemonbasestats.txt Flygon=80 100 80 80 80 100
      write pokemonbasestats.txt Forretress=75 90 140 60 60 40
      write pokemonbasestats.txt Froslass=70 80 70 80 70 110
      write pokemonbasestats.txt Furret=85 76 64 45 55 90
      write pokemonbasestats.txt Gabite=68 90 65 50 55 82
      write pokemonbasestats.txt Gallade=68 125 65 65 115 80
      write pokemonbasestats.txt Garchomp=108 130 95 80 85 102
      write pokemonbasestats.txt Gardevoir=68 65 65 125 115 80
      write pokemonbasestats.txt Gastly=30 35 30 100 35 80
      write pokemonbasestats.txt Gastrodon=111 83 68 92 82 39
      write pokemonbasestats.txt Gengar=60 65 60 130 75 110
      write pokemonbasestats.txt Geodude=40 80 100 30 30 20
      write pokemonbasestats.txt Gible=    58 70 45 40 45 42
      write pokemonbasestats.txt Girafarig=70 80 65 90 65 85
      write pokemonbasestats.txt Giratina=150 100 120 100 120 90
      write pokemonbasestats.txt Glaceon=65 60 110 130 95 65
      write pokemonbasestats.txt Glalie=80 80 80 80 80 80
      write pokemonbasestats.txt Glameow=49 55 42 42 37 85
      write pokemonbasestats.txt Gligar=65 75 105 35 65 85
      write pokemonbasestats.txt Gliscor=75 95 125 45 75 95
      write pokemonbasestats.txt Gloom=60 65 70 85 75 40
      write pokemonbasestats.txt Golbat=75 80 70 65 75 90
      write pokemonbasestats.txt Goldeen=45 67 60 35 50 63
      write pokemonbasestats.txt Golduck=80 82 78 95 80 85
      write pokemonbasestats.txt Golem=80 110 130 55 65 45
      write pokemonbasestats.txt Gorebyss=55 84 105 114 75 52
      write pokemonbasestats.txt Granbull=90 120 75 60 60 45
      write pokemonbasestats.txt Graveler=55 95 115 45 45 35
      write pokemonbasestats.txt Grimer=80 80 50 40 50 25
      write pokemonbasestats.txt Grotle=75 89 85 55 65 36
      write pokemonbasestats.txt Groudon=100 150 140 100 90 90
      write pokemonbasestats.txt Grovyle=50 65 45 85 65 95
      write pokemonbasestats.txt Growlithe=55 70 45 70 50 60
      write pokemonbasestats.txt Grumpig=80 45 65 90 110 80
      write pokemonbasestats.txt Gulpin=70 43 53 43 53 40
      write pokemonbasestats.txt Gyarados=95 125 79 60 100 81
      write pokemonbasestats.txt Happiny=100 5 5 15 65 30
      write pokemonbasestats.txt Hariyama=144 120 60 40 60 50
      write pokemonbasestats.txt Haunter=45 50 45 115
      write pokemonbasestats.txt Heatran=91 90 106 130 106 77
      write pokemonbasestats.txt Heracross=80 125 75 40 95 85
      write pokemonbasestats.txt Hippopotas=68 72 78 38 42 32
      write pokemonbasestats.txt Hippowdon=108 112 118 68 72 47
      write pokemonbasestats.txt Hitmonchan=50 105 79 35 110 76
      write pokemonbasestats.txt Hitmonlee=50 120 53 35 110 87
      write pokemonbasestats.txt Hitmontop=50 95 95 35 110 70
      write pokemonbasestats.txt Honchkrow=100 125 52 105 52 71
      write pokemonbasestats.txt Ho-oh=106 130 90 110 154 90
      write pokemonbasestats.txt Hoothoot=60 30 30 36 56 50
      write pokemonbasestats.txt Hoppip=35 35 40 35 55 50
      write pokemonbasestats.txt Horsea=30 40 70 70 25 60
      write pokemonbasestats.txt Houndoom=75 90 50 110 80 95
      write pokemonbasestats.txt Houndour=45 60 30 80 50 65
      write pokemonbasestats.txt Huntail=55 104 105 94 75 52
      write pokemonbasestats.txt Hypno=85 73 70 73 115 67
      write pokemonbasestats.txt Igglybuff=90 30 15 40 20 15
      write pokemonbasestats.txt Illumise=65 47 55 73 75 85
      write pokemonbasestats.txt Infernape=76 104 71 104 71 108
      write pokemonbasestats.txt Ivysaur=60 62 63 80 80 60
      write pokemonbasestats.txt Jigglypuff=115 45 20 45
      write pokemonbasestats.txt Jirachi=100 100 100 100 100 100
      write pokemonbasestats.txt Jolteon=65 65 60 110 95 130
      write pokemonbasestats.txt Jumpluff=75 55 70 55 85 110
      write pokemonbasestats.txt Jynx=65 50 35 115 95 95
      write pokemonbasestats.txt Kabuto=30 80 90 55 45 55
      write pokemonbasestats.txt Kabutops=60 115 105 65 70 80
      write pokemonbasestats.txt Kadabra=40 35 30 120 70 105
      write pokemonbasestats.txt Kakuna=45 25 50 25 25 35
      write pokemonbasestats.txt Kangaskhan=105 95 80 40 80 90
      write pokemonbasestats.txt Kecleon=60 90 70 60 120 40
      write pokemonbasestats.txt Kingdra=75 95 95 95 95 85
      write pokemonbasestats.txt Kingler=55 130 115 50 50 75
      write pokemonbasestats.txt Kirlia=38 35 35 65 55 50
      write pokemonbasestats.txt Koffing=40 65 95 60 45 35
      write pokemonbasestats.txt Krabby=30 105 90 25 25 50
      write pokemonbasestats.txt Kricketot=37 25 41 25 41 25
      write pokemonbasestats.txt Kricketune=77 85 51 55 51 65
      write pokemonbasestats.txt Kyogre=100 100 90 150 140 90
      write pokemonbasestats.txt Lairon=60 90 140 50 50 40
      write pokemonbasestats.txt Lanturn=125 58 58 76 76 67
      write pokemonbasestats.txt Lapras=130 85 80 85 95 60
      write pokemonbasestats.txt Larvitar=50 64 50 45 50 41
      write pokemonbasestats.txt Latias=80 80 90 110 130 110
      write pokemonbasestats.txt Latios=80 90 80 130 110 110
      write pokemonbasestats.txt Leafeon=65 110 130 60 65 95
      write pokemonbasestats.txt Ledian=55 35 50 55 110 85
      write pokemonbasestats.txt Ledyba=40 20 30 40 80 55
      write pokemonbasestats.txt Lickilicky=110 85 95 80 95 50
      write pokemonbasestats.txt Lickitung=90 55 75 60 75 30
      write pokemonbasestats.txt Lileep=66 41 77 61 87 23
      write pokemonbasestats.txt Linoone=78 70 61 50 61 100
      write pokemonbasestats.txt Lombre=60 50 50 60 70 50
      write pokemonbasestats.txt Lopunny=65 76 84 54 96 105
      write pokemonbasestats.txt Lotad=40 30 30 40 50 30
      write pokemonbasestats.txt Loudred=84 71 43 71 43 48
      write pokemonbasestats.txt Lucario=70 110 70 115 70 90
      write pokemonbasestats.txt Ludicolo=80 70 70 90 100 70
      write pokemonbasestats.txt Lugia=106 90 130 90 154 110
      write pokemonbasestats.txt Lumineon=69 69 76 69 86 91
      write pokemonbasestats.txt Lunatone=70 55 65 95 85 70
      write pokemonbasestats.txt Luvdisc=43 30 55 40 65 97
      write pokemonbasestats.txt Luxio=60 85 49 60 49 60
      write pokemonbasestats.txt Luxray=80 120 79 95 79 70
      write pokemonbasestats.txt Machamp=90 130 80 65 85 55
      write pokemonbasestats.txt Machoke=80 100 70 50 60 45
      write pokemonbasestats.txt Machop=70 80 50 35 35 35
      write pokemonbasestats.txt Magby=45 75 37 70 55 83
      write pokemonbasestats.txt Magcargo=50 50 120 80 80 30
      write pokemonbasestats.txt Magikarp=20 10 55 15 20 80
      write pokemonbasestats.txt Magmar=65 95 57 100 85 93
      write pokemonbasestats.txt Magmortar=75 95 67 125 95 83
      write pokemonbasestats.txt Magnemite=25 35 70 95 55 45
      write pokemonbasestats.txt Magneton=50 60 95 120 70 70
      write pokemonbasestats.txt Magnezone=70 70 115 130 90 60
      write pokemonbasestats.txt Makuhita=72 60 30 20 30 25
      write pokemonbasestats.txt Mamoswine=110 130 80 70 60 80
      write pokemonbasestats.txt Manaphy=100 100 100 100 100 100
      write pokemonbasestats.txt Manectric=70 75 60 105 60 105
      write pokemonbasestats.txt Mankey=40 80 35 35 45 70
      write pokemonbasestats.txt Mantine=65 40 70 80 140 70
      write pokemonbasestats.txt Mantyke=45 20 50 60 120
      write pokemonbasestats.txt Mareep=55 40 40 65 45 35
      write pokemonbasestats.txt Marill=70 20 50 20 50 40
      write pokemonbasestats.txt Marowak=60 80 110 50 80 45
      write pokemonbasestats.txt Marshtomp=70 85 70 60 70 50
      write pokemonbasestats.txt Masquerain=70 60 62 80 82 60
      write pokemonbasestats.txt Mawile=50 85 85 55 55 50
      write pokemonbasestats.txt Medicham=60 60 75 60 75 80
      write pokemonbasestats.txt Meditite=30 40 55 40 55 60
      write pokemonbasestats.txt Meganium=80 82 100 83 100 80
      write pokemonbasestats.txt Meowth=40 45 35 40 40 90
      write pokemonbasestats.txt Mesprit=80 105 105 105 105 80
      write pokemonbasestats.txt Metagross=80 135 130 95 90 70
      write pokemonbasestats.txt Metang=60 75 100 55 80 50
      write pokemonbasestats.txt Metapod=50 20 55 25 25 30
      write pokemonbasestats.txt Mew=100 100 100 100 100 100
      write pokemonbasestats.txt Mewtwo=106 110 90 154 90 130
      write pokemonbasestats.txt Mightyena=70 90 70 60 60 70
      write pokemonbasestats.txt Milotic=95 60 79 100 125 81
      write pokemonbasestats.txt Miltank=95 80 105 40 70 100
      write pokemonbasestats.txt MimeJr.=20 25 45 70 90 60
      write pokemonbasestats.txt Minun=60 40 50 75 85 95
      write pokemonbasestats.txt Misdreavus=60 60 60 85 85 85
      write pokemonbasestats.txt Mismagius=60 60 60 105 105 105
      write pokemonbasestats.txt Moltres=90 100 90 125 85 90
      write pokemonbasestats.txt Monferno=64 78 52 78 52 81
      write pokemonbasestats.txt Mothim=70 94 50 94 50 66
      write pokemonbasestats.txt Mr.Mime=40 45 65 100 120 90
      write pokemonbasestats.txt Mudkip=50 70 50 50 50 40
      write pokemonbasestats.txt Muk=105 105 75 65 100 50
      write pokemonbasestats.txt Munchlax=135 85 40 40 85 5
      write pokemonbasestats.txt Murkrow=60 85 42 85 42 91
      write pokemonbasestats.txt Natu=40 50 45 70 45 70
      write pokemonbasestats.txt Nidoking=81 92 77 85 75 85
      write pokemonbasestats.txt Nidoqueen=90 82 87 75 85 76
      write pokemonbasestats.txt Nidoran-F=55 47 52 40 40 41
      write pokemonbasestats.txt Nidoran-M=46 57 40 40 40 50
      write pokemonbasestats.txt Nidorina=70 62 67 55 55 56
      write pokemonbasestats.txt Nidorino=61 72 57 55 55 65
      write pokemonbasestats.txt Nincada=31 45 90 30 30 40
      write pokemonbasestats.txt Ninetales=73 76 75 81 100 100
      write pokemonbasestats.txt Ninjask=61 90 45 50 50 160
      write pokemonbasestats.txt Noctowl=100 50 50 76 96 70
      write pokemonbasestats.txt Nosepass=30 45 135 45 90 30
      write pokemonbasestats.txt Numel=60 60 40 65 45 35
      write pokemonbasestats.txt Nuzleaf=70 70 40 60 40 60
      write pokemonbasestats.txt Octillery=75 105 75 105 75 45
      write pokemonbasestats.txt Oddish=45 50 55 75 65 30
      write pokemonbasestats.txt Omanyte=35 40 100 90 55 35
      write pokemonbasestats.txt Omastar=70 60 125 115 70 55
      write pokemonbasestats.txt Onix=35 45 160 30 45 70
      write pokemonbasestats.txt Pachirisu=60 45 70 45 90 95
      write pokemonbasestats.txt Palkia=90 120 100 150 120 100
      write pokemonbasestats.txt Paras=35 70 55 45 55 25
      write pokemonbasestats.txt Parasect=60 95 80 60 80 30
      write pokemonbasestats.txt Pelipper=60 50 100 85 70 65
      write pokemonbasestats.txt Persian=65 70 60 65 65 115
      write pokemonbasestats.txt Phanpy=90 60 60 40 40 40
      write pokemonbasestats.txt Phione=80 80 80 80 80 80
      write pokemonbasestats.txt Pichu=20 40 15 35 35 60
      write pokemonbasestats.txt Pidgeot=83 80 75 70 70 91
      write pokemonbasestats.txt Pidgeotto=63 60 55 50 50 71
      write pokemonbasestats.txt Pidgey=40 45 40 35 35 56
      write pokemonbasestats.txt Pikachu=35 55 30 50 40 90
      write pokemonbasestats.txt Piloswine100 100 80 60 60 50
      write pokemonbasestats.txt Pineco=50 65 90 35 35 15
      write pokemonbasestats.txt Pinsir=65 125100 55 70 85
      write pokemonbasestats.txt Piplup=53 51 53 61 56 40
      write pokemonbasestats.txt Plusle=60 50 40 85 75 95
      write pokemonbasestats.txt Politoed=90 75 75 90 110 70
      write pokemonbasestats.txt Poliwag=40 50 40 40 40 90
      write pokemonbasestats.txt Poliwhirl=65 65 65 50 50 90
      write pokemonbasestats.txt Poliwrath=90 85 95 70 90 70
      write pokemonbasestats.txt Ponyta=50 85 55 65 65 90
      write pokemonbasestats.txt Poochyena=35 55 35 30 30 35
      write pokemonbasestats.txt Porygon=65 60 70 85 75 40
      write pokemonbasestats.txt Porygon2=85 80 90 105 95 60
      write pokemonbasestats.txt Porygon-Z=85 80 70 135 75 90
      write pokemonbasestats.txt Primeape=65 105 60 60 70 95
      write pokemonbasestats.txt Prinplup=64 66 68 81 76 50
      write pokemonbasestats.txt Probopass=60 55 145 75 150 40
      write pokemonbasestats.txt Psyduck=50 52 48 65 50 55
      write pokemonbasestats.txt Pupitar=70 84 70 65 70 51
      write pokemonbasestats.txt Purugly=71 82 64 64 59 112
      write pokemonbasestats.txt Quagsire=95 85 85 65 65 35
      write pokemonbasestats.txt Quilava=58 64 58 80 65 80
      write pokemonbasestats.txt Qwilfish=65 95 75 55 55 85
      write pokemonbasestats.txt Raichu=60 90 55 90 80 100
      write pokemonbasestats.txt Raikou=90 80 75 115 100 115
      write pokemonbasestats.txt Ralts=28 25 25 45 35 40
      write pokemonbasestats.txt Rampardos=97 165 60 65 50 58
      write pokemonbasestats.txt Rapidash=65 100 70 80 80 105
      write pokemonbasestats.txt Raticate=55 81 60 50 70 97
      write pokemonbasestats.txt Rattata=30 56 35 25 35 72
      write pokemonbasestats.txt Rayquaza=105 150 90 150 90 95
      write pokemonbasestats.txt Regice=80 50 100 100 200 50
      write pokemonbasestats.txt Regigigas=110 160 110 80 110 100
      write pokemonbasestats.txt Regirock=80 100 200 50 100 50
      write pokemonbasestats.txt Registeel=80 75 150 75 150 50
      write pokemonbasestats.txt Relicanth=100 90 130 45 65 55
      write pokemonbasestats.txt Remoraid=35 65 35 65 35 65
      write pokemonbasestats.txt Rhydon=105 130 120 45 45 40
      write pokemonbasestats.txt Rhyhorn=80 85 95 30 30 25
      write pokemonbasestats.txt Rhyperior=115 140 130 55 55 40
      write pokemonbasestats.txt Riolu=40 70 40 35 40 60
      write pokemonbasestats.txt Roselia=50 60 45 100 80 65
      write pokemonbasestats.txt Roserade=60 70 55 125 105 90
      write pokemonbasestats.txt Rotom=50 50 77 95 77 91
      write pokemonbasestats.txt Sableye=50 75 75 65 65 50
      write pokemonbasestats.txt Salamence=95 135 80 110 80 100
      write pokemonbasestats.txt Sandshrew=50 75 85 20 30 40
      write pokemonbasestats.txt Sandslash=75 100 110 45 55 65
      write pokemonbasestats.txt Sceptile=70 85 65 105 85 120
      write pokemonbasestats.txt Scizor=70 130 100 55 80 65
      write pokemonbasestats.txt Scyther=70 110 80 55 80 105
      write pokemonbasestats.txt Seadra=55 65 95 95 45 85
      write pokemonbasestats.txt Seaking=80 92 65 65 80 68
      write pokemonbasestats.txt Sealeo=90 60 70 75 70 45
      write pokemonbasestats.txt Seedot=40 40 50 30 30 30
      write pokemonbasestats.txt Seel=65 45 55 45 70 45
      write pokemonbasestats.txt Sentret=35 46 34 35 45 20
      write pokemonbasestats.txt Seviper=73 100 60 100 60 65
      write pokemonbasestats.txt Sharpedo=70 120 40 95 40 95
      write pokemonbasestats.txt Shaymin=100 100 100 100 100 100
      write pokemonbasestats.txt Shedinja=1 90 45 30 30 40
      write pokemonbasestats.txt Shelgon=65 95 100 60 50 50
      write pokemonbasestats.txt Shellder=30 65 100 45 25 40
      write pokemonbasestats.txt Shellos=76 48 48 57 62 34
      write pokemonbasestats.txt Shieldon=30 42 118 42 88 30
      write pokemonbasestats.txt Shiftry=90 100 60 90 60 80
      write pokemonbasestats.txt Shinx=45 65 34 40 34 45
      write pokemonbasestats.txt Shroomish=60 40 60 40 60 35
      write pokemonbasestats.txt Shuckle=20 10 230 10 230 5
      write pokemonbasestats.txt Shuppet=44 75 35 63 33 45
      write pokemonbasestats.txt Silcoon=50 35 55 25 25 15
      write pokemonbasestats.txt Skarmory=65 80 140 40 70 70
      write pokemonbasestats.txt Skiploom=55 45 50 45 65 80
      write pokemonbasestats.txt Skitty=50 45 45 35 35 50
      write pokemonbasestats.txt Skorupi=40 50 90 30 55 65
      write pokemonbasestats.txt Skuntank=103 93 67 71 61 84
      write pokemonbasestats.txt Slaking=150 160 100 95 65 100
      write pokemonbasestats.txt Slakoth=60 60 60 35 35 30
      write pokemonbasestats.txt Slowbro=95 75 110 100 80 30
      write pokemonbasestats.txt Slowking=95 75 80 100 110 30
      write pokemonbasestats.txt Slowpoke=90 65 65 40 40 15
      write pokemonbasestats.txt Slugma=40 40 40 70 40 20
      write pokemonbasestats.txt Smeargle=55 20 35 20 45 75
      write pokemonbasestats.txt Smoochum=45 30 15 85 65 65
      write pokemonbasestats.txt Sneasel=55 95 55 35 75 115
      write pokemonbasestats.txt Snorlax=160 110 65 65 110 30
      write pokemonbasestats.txt Snorunt=50 50 50 50 50 50
      write pokemonbasestats.txt Snover=60 62 50 62 60 40
      write pokemonbasestats.txt Snubbull=60 80 50 40 40 30
      write pokemonbasestats.txt Solrock=70 95 85 55 65 70
      write pokemonbasestats.txt Spearow=40 60 30 31 31 70
      write pokemonbasestats.txt Spheal=70 40 50 55 50 25
      write pokemonbasestats.txt Spinarak=40 60 40 40 40 30
      write pokemonbasestats.txt Spinda=60 60 60 60 60 60
      write pokemonbasestats.txt Spiritomb=50 92 108 92 108 35
      write pokemonbasestats.txt Spoink=60 25 35 70 80 60
      write pokemonbasestats.txt Squirtle=44 48 65 50 64 43
      write pokemonbasestats.txt Stantler=73 95 62 85 65 85
      write pokemonbasestats.txt Staraptor=85 120 70 50 50 100
      write pokemonbasestats.txt Staravia=55 75 50 40 40 80
      write pokemonbasestats.txt Starly=40 55 30 30 60
      write pokemonbasestats.txt Starmie=60 75 85 100 85 115
      write pokemonbasestats.txt Staryu=30 45 55 70 55 85
      write pokemonbasestats.txt Steelix=75 85 200 55 65 30
      write pokemonbasestats.txt Stunky=63 63 47 41 41 74
      write pokemonbasestats.txt Sudowoodo=70 100 115 30 65 30
      write pokemonbasestats.txt Suicune=100 75 115 90 115 85
      write pokemonbasestats.txt Sunflora=75 75 55 105 85 30
      write pokemonbasestats.txt Sunkern=30 30 30 30 30 30
      write pokemonbasestats.txt Surskit=40 30 32 50 52 65
      write pokemonbasestats.txt Swablu=45 40 60 40 75 50
      write pokemonbasestats.txt Swalot=100 73 83 73 83 55
      write pokemonbasestats.txt Swampert=100 110 90 85 90 60
      write pokemonbasestats.txt Swellow=60 85 60 50 50 125
      write pokemonbasestats.txt Swinub=50 50 40 30 30 50
      write pokemonbasestats.txt Taillow=40 55 30 30 30 85
      write pokemonbasestats.txt Tangela=65 55 115 100 40 60 435
      write pokemonbasestats.txt Tangrowth=100 100 125 110 50 50
      write pokemonbasestats.txt Tauros=75 100 95 40 70 110
      write pokemonbasestats.txt Teddiursa=60 80 50 50 50 40
      write pokemonbasestats.txt Tentacool=40 40 35 50 100 70
      write pokemonbasestats.txt Tentacruel=80 70 65 80 120 100
      write pokemonbasestats.txt Togekiss=85 50 95 120 115 80
      write pokemonbasestats.txt Togepi=35 20 65 40 65 20
      write pokemonbasestats.txt Togetic=55 40 85 80 105 40
      write pokemonbasestats.txt Torchic=45 60 40 70 50 45
      write pokemonbasestats.txt Torkoal=70 85 140 85 70 20
      write pokemonbasestats.txt Torterra=95 109 105 75 85 56
      write pokemonbasestats.txt Totodile=50 65 64 44 48 43
      write pokemonbasestats.txt Toxicroak=83 106 65 86 65 85
      write pokemonbasestats.txt Trapinch=45 100 45 45 45 10
      write pokemonbasestats.txt Treecko=40 45 35 65 55 70
      write pokemonbasestats.txt Tropius=99 68 83 72 87 51
      write pokemonbasestats.txt Turtwig=55 68 64 45 55 31
      write pokemonbasestats.txt Typhlosion=78 84 78 109 58 100
      write pokemonbasestats.txt Tyranitar=100 134 110 95 100 61
      write pokemonbasestats.txt Tyrogue=35 35 35 35 35 35
      write pokemonbasestats.txt Umbreon=95 65 110 60 130 65
      write pokemonbasestats.txt Unown=48 72 48 72 48 48
      write pokemonbasestats.txt Ursaring=90 130 75 75 75 55
      write pokemonbasestats.txt Uxie=75 75 130 75 130 95
      write pokemonbasestats.txt Vaporeon=130 65 60 110 95 65
      write pokemonbasestats.txt Venomoth=70 65 60 90 75 90
      write pokemonbasestats.txt Venonat=60 55 50 40 55 45
      write pokemonbasestats.txt Venusaur=80 82 83 100 100 80
      write pokemonbasestats.txt Vespiquen=70 80 102 80 120 40
      write pokemonbasestats.txt Vibrava=50 70 50 50 50 70
      write pokemonbasestats.txt Victreebel=80 105 65 100 60 70
      write pokemonbasestats.txt Vigoroth=80 80 80 55 55 90
      write pokemonbasestats.txt Vileplume=75 80 85 100 90 50
      write pokemonbasestats.txt Volbeat=65 73 55 47 75 85
      write pokemonbasestats.txt Voltorb=40 30 50 55 55 100
      write pokemonbasestats.txt Vulpix=38 41 40 50 65 65
      write pokemonbasestats.txt Wailmer=130 70 35 70 35 60
      write pokemonbasestats.txt Wailord=170 90 45 90 45 60
      write pokemonbasestats.txt Walrein=110 80 90 95 90 65
      write pokemonbasestats.txt Wartortle=59 63 80 65 80 58
      write pokemonbasestats.txt Weavile=70 120 65 45 85 125
      write pokemonbasestats.txt Weedle=40 35 30 20 20 50
      write pokemonbasestats.txt Weepinbell=65 90 50 85 45 55
      write pokemonbasestats.txt Weezing=65 90 120 85 70 60
      write pokemonbasestats.txt Whiscash=110 78 73 76 71 60
      write pokemonbasestats.txt Whismur=64 51 23 51 23 28
      write pokemonbasestats.txt Wigglytuff=140 70 45 75 50 45
      write pokemonbasestats.txt Wingull=40 30 30 55 30 85
      write pokemonbasestats.txt Wobbuffet=190 33 58 33 58 33
      write pokemonbasestats.txt Wooper=55 45 45 25 25 15
      write pokemonbasestats.txt Wormadam=60 59 85 79 105 36
      write pokemonbasestats.txt Wormadam(Ground)=60 79 105 59 85 36
      write pokemonbasestats.txt Wormadam(Steel)=60 69 95 69 95 36
      write pokemonbasestats.txt Wurmple=45 45 35 20 30 20
      write pokemonbasestats.txt Wynaut=95 23 48 23 48 23
      write pokemonbasestats.txt Xatu=65 75 70 95 70 95
      write pokemonbasestats.txt Yanma=65 65 45 75 45 95
      write pokemonbasestats.txt Yanmega=86 76 86 116 56 95
      write pokemonbasestats.txt Zangoose=73 115 60 60 60 90
      write pokemonbasestats.txt Zapdos=90 90 85 125 90 100
      write pokemonbasestats.txt Zigzagoon=38 30 41 30 41 60
      write pokemonbasestats.txt Zubat=40 45 35 30 40 55
      write pokemonpokemon.txt Abomasnow - #460
      write pokemonpokemon.txt Abra - #63
      write pokemonpokemon.txt Absol - #359
      write pokemonpokemon.txt Aerodactyl - #142
      write pokemonpokemon.txt Aggron - #306
      write pokemonpokemon.txt Aipom - #190
      write pokemonpokemon.txt Alakazam - #65
      write pokemonpokemon.txt Altaria - #334
      write pokemonpokemon.txt Ambipom - #424
      write pokemonpokemon.txt Ampharos - #181
      write pokemonpokemon.txt Anorith - #347
      write pokemonpokemon.txt Arbok - #24
      write pokemonpokemon.txt Arcanine - #59
      write pokemonpokemon.txt Arceus - #493
      write pokemonpokemon.txt Ariados - #168
      write pokemonpokemon.txt Armaldo - #348
      write pokemonpokemon.txt Aron - #304
      write pokemonpokemon.txt Articuno - #144
      write pokemonpokemon.txt Azelf - #482
      write pokemonpokemon.txt Azumarill - #184
      write pokemonpokemon.txt Azurill - #298
      write pokemonpokemon.txt Bagon - #371
      write pokemonpokemon.txt Baltoy - #343
      write pokemonpokemon.txt Banette - #354
      write pokemonpokemon.txt Barboach - #339
      write pokemonpokemon.txt Bastiodon - #411
      write pokemonpokemon.txt Bayleef - #153
      write pokemonpokemon.txt Beautifly - #267
      write pokemonpokemon.txt Beedrill - #15
      write pokemonpokemon.txt Beldum - #374
      write pokemonpokemon.txt Bellossom - #182
      write pokemonpokemon.txt Bellsprout - #69
      write pokemonpokemon.txt Bibarel - #400
      write pokemonpokemon.txt Bidoof - #399
      write pokemonpokemon.txt Blastoise - #9
      write pokemonpokemon.txt Blaziken - #257
      write pokemonpokemon.txt Blissey - #242
      write pokemonpokemon.txt Bonsly - #438
      write pokemonpokemon.txt Breloom - #286
      write pokemonpokemon.txt Bronzong - #437
      write pokemonpokemon.txt Bronzor - #436
      write pokemonpokemon.txt Budew - #406
      write pokemonpokemon.txt Buizel - #418
      write pokemonpokemon.txt Bulbasaur - #1
      write pokemonpokemon.txt Buneary - #427
      write pokemonpokemon.txt Burmy - #412
      write pokemonpokemon.txt Butterfree - #12
      write pokemonpokemon.txt Cacnea - #331
      write pokemonpokemon.txt Cacturne - #332
      write pokemonpokemon.txt Camerupt - #323
      write pokemonpokemon.txt Carnivine - #455
      write pokemonpokemon.txt Carvanha - #318
      write pokemonpokemon.txt Cascoon - #268
      write pokemonpokemon.txt Castform - #351
      write pokemonpokemon.txt Caterpie - #10
      write pokemonpokemon.txt Celebi - #251
      write pokemonpokemon.txt Chansey - #113
      write pokemonpokemon.txt Charizard - #6
      write pokemonpokemon.txt Charmander - #4
      write pokemonpokemon.txt Charmeleon - #5
      write pokemonpokemon.txt Chatot - #441
      write pokemonpokemon.txt Cherrim - #421
      write pokemonpokemon.txt Cherubi - #420
      write pokemonpokemon.txt Chikorita - #152
      write pokemonpokemon.txt Chimchar - #390
      write pokemonpokemon.txt Chimecho - #358
      write pokemonpokemon.txt Chinchou - #170
      write pokemonpokemon.txt Chingling - #433
      write pokemonpokemon.txt Clamperl - #366
      write pokemonpokemon.txt Claydol - #344
      write pokemonpokemon.txt Clefable - #36
      write pokemonpokemon.txt Clefairy - #35
      write pokemonpokemon.txt Cleffa - #173
      write pokemonpokemon.txt Cloyster - #91
      write pokemonpokemon.txt Combee - #415
      write pokemonpokemon.txt Combusken - #256
      write pokemonpokemon.txt Corphish - #341
      write pokemonpokemon.txt Corsola - #222
      write pokemonpokemon.txt Cradily - #346
      write pokemonpokemon.txt Cranidos - #408
      write pokemonpokemon.txt Crawdaunt - #342
      write pokemonpokemon.txt Cresselia - #488
      write pokemonpokemon.txt Croagunk - #453
      write pokemonpokemon.txt Crobat - #169
      write pokemonpokemon.txt Croconaw - #159
      write pokemonpokemon.txt Cubone - #104
      write pokemonpokemon.txt Cyndaquil - #155
      write pokemonpokemon.txt Darkrai - #491
      write pokemonpokemon.txt Delcatty - #301
      write pokemonpokemon.txt Delibird - #225
      write pokemonpokemon.txt Deoxys - #386
      write pokemonpokemon.txt Deoxys-E - #386
      write pokemonpokemon.txt Deoxys-F - #386
      write pokemonpokemon.txt Deoxys-L - #386
      write pokemonpokemon.txt Dewgong - #87
      write pokemonpokemon.txt Dialga - #483
      write pokemonpokemon.txt Diglett - #50
      write pokemonpokemon.txt Ditto - #132
      write pokemonpokemon.txt Dodrio - #85
      write pokemonpokemon.txt Doduo - #84
      write pokemonpokemon.txt Donphan - #232
      write pokemonpokemon.txt Dragonair - #148
      write pokemonpokemon.txt Dragonite - #149
      write pokemonpokemon.txt Drapion - #452
      write pokemonpokemon.txt Dratini - #147
      write pokemonpokemon.txt Drifblim - #426
      write pokemonpokemon.txt Drifloon - #425
      write pokemonpokemon.txt Drowzee - #96
      write pokemonpokemon.txt Dugtrio - #51
      write pokemonpokemon.txt Dunsparce - #206
      write pokemonpokemon.txt Dusclops - #356
      write pokemonpokemon.txt Dusknoir - #477
      write pokemonpokemon.txt Duskull - #355
      write pokemonpokemon.txt Dustox - #269
      write pokemonpokemon.txt Eevee - #133
      write pokemonpokemon.txt Ekans - #23
      write pokemonpokemon.txt Electabuzz - #125
      write pokemonpokemon.txt Electivire - #466
      write pokemonpokemon.txt Electrike - #309
      write pokemonpokemon.txt Electrode - #101
      write pokemonpokemon.txt Elekid - #239
      write pokemonpokemon.txt Empoleon - #395
      write pokemonpokemon.txt Entei - #244
      write pokemonpokemon.txt Espeon - #196
      write pokemonpokemon.txt Exeggcute - #102
      write pokemonpokemon.txt Exeggutor - #103
      write pokemonpokemon.txt Exploud - #295
      write pokemonpokemon.txt Farfetch'd - #83
      write pokemonpokemon.txt Fearow - #22
      write pokemonpokemon.txt Feebas - #349
      write pokemonpokemon.txt Feraligatr - #160
      write pokemonpokemon.txt Finneon - #456
      write pokemonpokemon.txt Flaaffy - #180
      write pokemonpokemon.txt Flareon - #136
      write pokemonpokemon.txt Floatzel - #419
      write pokemonpokemon.txt Flygon - #330
      write pokemonpokemon.txt Forretress - #205
      write pokemonpokemon.txt Froslass - #478
      write pokemonpokemon.txt Furret - #162
      write pokemonpokemon.txt Gabite - #444
      write pokemonpokemon.txt Gallade - #475
      write pokemonpokemon.txt Garchomp - #445
      write pokemonpokemon.txt Gardevoir - #282
      write pokemonpokemon.txt Gastly - #92
      write pokemonpokemon.txt Gastrodon - #423
      write pokemonpokemon.txt Gengar - #94
      write pokemonpokemon.txt Geodude - #74
      write pokemonpokemon.txt Gible - #443
      write pokemonpokemon.txt Girafarig - #203
      write pokemonpokemon.txt Giratina - #487
      write pokemonpokemon.txt Glaceon - #471
      write pokemonpokemon.txt Glalie - #362
      write pokemonpokemon.txt Glameow - #431
      write pokemonpokemon.txt Gligar - #207
      write pokemonpokemon.txt Gliscor - #472
      write pokemonpokemon.txt Gloom - #44
      write pokemonpokemon.txt Golbat - #42
      write pokemonpokemon.txt Goldeen - #118
      write pokemonpokemon.txt Golduck - #55
      write pokemonpokemon.txt Golem - #76
      write pokemonpokemon.txt Gorebyss - #368
      write pokemonpokemon.txt Granbull - #210
      write pokemonpokemon.txt Graveler - #75
      write pokemonpokemon.txt Grimer - #88
      write pokemonpokemon.txt Grotle - #388
      write pokemonpokemon.txt Groudon - #383
      write pokemonpokemon.txt Grovyle - #253
      write pokemonpokemon.txt Growlithe - #58
      write pokemonpokemon.txt Grumpig - #326
      write pokemonpokemon.txt Gulpin - #316
      write pokemonpokemon.txt Gyarados - #130
      write pokemonpokemon.txt Happiny - #440
      write pokemonpokemon.txt Hariyama - #297
      write pokemonpokemon.txt Haunter - #93
      write pokemonpokemon.txt Heatran - #485
      write pokemonpokemon.txt Heracross - #214
      write pokemonpokemon.txt Hippopotas - #449
      write pokemonpokemon.txt Hippowdon - #450
      write pokemonpokemon.txt Hitmonchan - #107
      write pokemonpokemon.txt Hitmonlee - #106
      write pokemonpokemon.txt Hitmontop - #237
      write pokemonpokemon.txt Honchkrow - #430
      write pokemonpokemon.txt Ho-oh - #250
      write pokemonpokemon.txt Hoothoot - #163
      write pokemonpokemon.txt Hoppip - #187
      write pokemonpokemon.txt Horsea - #116
      write pokemonpokemon.txt Houndoom - #229
      write pokemonpokemon.txt Houndour - #228
      write pokemonpokemon.txt Huntail - #367
      write pokemonpokemon.txt Hypno - #97
      write pokemonpokemon.txt Igglybuff - #174
      write pokemonpokemon.txt Illumise - #314
      write pokemonpokemon.txt Infernape - #392
      write pokemonpokemon.txt Ivysaur - #2
      write pokemonpokemon.txt Jigglypuff - #39
      write pokemonpokemon.txt Jirachi - #385
      write pokemonpokemon.txt Jolteon - #135
      write pokemonpokemon.txt Jumpluff - #189
      write pokemonpokemon.txt Jynx - #124
      write pokemonpokemon.txt Kabuto - #140
      write pokemonpokemon.txt Kabutops - #141
      write pokemonpokemon.txt Kadabra - #64
      write pokemonpokemon.txt Kakuna - #14
      write pokemonpokemon.txt Kangaskhan - #115
      write pokemonpokemon.txt Kecleon - #352
      write pokemonpokemon.txt Kingdra - #230
      write pokemonpokemon.txt Kingler - #99
      write pokemonpokemon.txt Kirlia - #281
      write pokemonpokemon.txt Koffing - #109
      write pokemonpokemon.txt Krabby - #98
      write pokemonpokemon.txt Kricketot - #401
      write pokemonpokemon.txt Kricketune - #402
      write pokemonpokemon.txt Kyogre - #382
      write pokemonpokemon.txt Lairon - #305
      write pokemonpokemon.txt Lanturn - #171
      write pokemonpokemon.txt Lapras - #131
      write pokemonpokemon.txt Larvitar - #246
      write pokemonpokemon.txt Latias - #380
      write pokemonpokemon.txt Latios - #381
      write pokemonpokemon.txt Leafeon - #470
      write pokemonpokemon.txt Ledian - #166
      write pokemonpokemon.txt Ledyba - #165
      write pokemonpokemon.txt Lickilicky - #463
      write pokemonpokemon.txt Lickitung - #108
      write pokemonpokemon.txt Lileep - #345
      write pokemonpokemon.txt Linoone - #264
      write pokemonpokemon.txt Lombre - #271
      write pokemonpokemon.txt Lopunny - #428
      write pokemonpokemon.txt Lotad - #270
      write pokemonpokemon.txt Loudred - #294
      write pokemonpokemon.txt Lucario - #448
      write pokemonpokemon.txt Ludicolo - #272
      write pokemonpokemon.txt Lugia - #249
      write pokemonpokemon.txt Lumineon - #457
      write pokemonpokemon.txt Lunatone - #337
      write pokemonpokemon.txt Luvdisc - #370
      write pokemonpokemon.txt Luxio - #404
      write pokemonpokemon.txt Luxray - #405
      write pokemonpokemon.txt Machamp - #68
      write pokemonpokemon.txt Machoke - #67
      write pokemonpokemon.txt Machop - #66
      write pokemonpokemon.txt Magby - #240
      write pokemonpokemon.txt Magcargo - #219
      write pokemonpokemon.txt Magikarp - #129
      write pokemonpokemon.txt Magmar - #126
      write pokemonpokemon.txt Magmortar - #467
      write pokemonpokemon.txt Magnemite - #81
      write pokemonpokemon.txt Magneton - #82
      write pokemonpokemon.txt Magnezone - #462
      write pokemonpokemon.txt Makuhita - #296
      write pokemonpokemon.txt Mamoswine - #473
      write pokemonpokemon.txt Manaphy - #490
      write pokemonpokemon.txt Manectric - #310
      write pokemonpokemon.txt Mankey - #56
      write pokemonpokemon.txt Mantine - #226
      write pokemonpokemon.txt Mantyke - #458
      write pokemonpokemon.txt Mareep - #179
      write pokemonpokemon.txt Marill - #183
      write pokemonpokemon.txt Marowak - #105
      write pokemonpokemon.txt Marshtomp - #259
      write pokemonpokemon.txt Masquerain - #284
      write pokemonpokemon.txt Mawile - #303
      write pokemonpokemon.txt Medicham - #308
      write pokemonpokemon.txt Meditite - #307
      write pokemonpokemon.txt Meganium - #154
      write pokemonpokemon.txt Meowth - #52
      write pokemonpokemon.txt Mesprit - #481
      write pokemonpokemon.txt Metagross - #376
      write pokemonpokemon.txt Metang - #375
      write pokemonpokemon.txt Metapod - #11
      write pokemonpokemon.txt Mew - #151
      write pokemonpokemon.txt Mewtwo - #150
      write pokemonpokemon.txt Mightyena - #262
      write pokemonpokemon.txt Milotic - #350
      write pokemonpokemon.txt Miltank - #241
      write pokemonpokemon.txt MimeJr. - #439
      write pokemonpokemon.txt Minun - #312
      write pokemonpokemon.txt Misdreavus - #200
      write pokemonpokemon.txt Mismagius - #429
      write pokemonpokemon.txt Moltres - #146
      write pokemonpokemon.txt Monferno - #391
      write pokemonpokemon.txt Mothim - #414
      write pokemonpokemon.txt Mr.Mime - #122
      write pokemonpokemon.txt Mudkip - #258
      write pokemonpokemon.txt Muk - #89
      write pokemonpokemon.txt Munchlax - #446
      write pokemonpokemon.txt Murkrow - #198
      write pokemonpokemon.txt Natu - #177
      write pokemonpokemon.txt Nidoking - #34
      write pokemonpokemon.txt Nidoqueen - #31
      write pokemonpokemon.txt Nidoran-F - #29
      write pokemonpokemon.txt Nidoran-M - #32
      write pokemonpokemon.txt Nidorina - #30
      write pokemonpokemon.txt Nidorino - #33
      write pokemonpokemon.txt Nincada - #290
      write pokemonpokemon.txt Ninetales - #38
      write pokemonpokemon.txt Ninjask - #291
      write pokemonpokemon.txt Noctowl - #164
      write pokemonpokemon.txt Nosepass - #299
      write pokemonpokemon.txt Numel - #322
      write pokemonpokemon.txt Nuzleaf - #274
      write pokemonpokemon.txt Octillery - #224
      write pokemonpokemon.txt Oddish - #43
      write pokemonpokemon.txt Omanyte - #138
      write pokemonpokemon.txt Omastar - #139
      write pokemonpokemon.txt Onix - #95
      write pokemonpokemon.txt Pachirisu - #417
      write pokemonpokemon.txt Palkia - #484
      write pokemonpokemon.txt Paras - #46
      write pokemonpokemon.txt Parasect - #47
      write pokemonpokemon.txt Pelipper - #279
      write pokemonpokemon.txt Persian - #53
      write pokemonpokemon.txt Phanpy - #231
      write pokemonpokemon.txt Phione - #489
      write pokemonpokemon.txt Pichu - #172
      write pokemonpokemon.txt Pidgeot - #18
      write pokemonpokemon.txt Pidgeotto - #17
      write pokemonpokemon.txt Pidgey - #16
      write pokemonpokemon.txt Pikachu - #25
      write pokemonpokemon.txt Piloswine - #221
      write pokemonpokemon.txt Pineco - #204
      write pokemonpokemon.txt Pinsir - #127
      write pokemonpokemon.txt Piplup - #393
      write pokemonpokemon.txt Plusle - #311
      write pokemonpokemon.txt Politoed - #186
      write pokemonpokemon.txt Poliwag - #60
      write pokemonpokemon.txt Poliwhirl - #61
      write pokemonpokemon.txt Poliwrath - #62
      write pokemonpokemon.txt Ponyta - #77
      write pokemonpokemon.txt Poochyena - #261
      write pokemonpokemon.txt Porygon - #137
      write pokemonpokemon.txt Porygon2 - #233
      write pokemonpokemon.txt Porygon-Z - #474
      write pokemonpokemon.txt Primeape - #57
      write pokemonpokemon.txt Prinplup - #394
      write pokemonpokemon.txt Probopass - #476
      write pokemonpokemon.txt Psyduck - #54
      write pokemonpokemon.txt Pupitar - #247
      write pokemonpokemon.txt Purugly - #432
      write pokemonpokemon.txt Quagsire - #195
      write pokemonpokemon.txt Quilava - #156
      write pokemonpokemon.txt Qwilfish - #211
      write pokemonpokemon.txt Raichu - #26
      write pokemonpokemon.txt Raikou - #243
      write pokemonpokemon.txt Ralts - #280
      write pokemonpokemon.txt Rampardos - #409
      write pokemonpokemon.txt Rapidash - #78
      write pokemonpokemon.txt Raticate - #20
      write pokemonpokemon.txt Rattata - #19
      write pokemonpokemon.txt Rayquaza - #384
      write pokemonpokemon.txt Regice - #378
      write pokemonpokemon.txt Regigigas - #486
      write pokemonpokemon.txt Regirock - #377
      write pokemonpokemon.txt Registeel - #379
      write pokemonpokemon.txt Relicanth - #369
      write pokemonpokemon.txt Remoraid - #223
      write pokemonpokemon.txt Rhydon - #112
      write pokemonpokemon.txt Rhyhorn - #111
      write pokemonpokemon.txt Rhyperior - #464
      write pokemonpokemon.txt Riolu - #447
      write pokemonpokemon.txt Roselia - #315
      write pokemonpokemon.txt Roserade - #407
      write pokemonpokemon.txt Rotom - #479
      write pokemonpokemon.txt Sableye - #302
      write pokemonpokemon.txt Salamence - #373
      write pokemonpokemon.txt Sandshrew - #27
      write pokemonpokemon.txt Sandslash - #28
      write pokemonpokemon.txt Sceptile - #254
      write pokemonpokemon.txt Scizor - #212
      write pokemonpokemon.txt Scyther - #123
      write pokemonpokemon.txt Seadra - #117
      write pokemonpokemon.txt Seaking - #119
      write pokemonpokemon.txt Sealeo - #364
      write pokemonpokemon.txt Seedot - #273
      write pokemonpokemon.txt Seel - #86
      write pokemonpokemon.txt Sentret - #161
      write pokemonpokemon.txt Seviper - #336
      write pokemonpokemon.txt Sharpedo - #319
      write pokemonpokemon.txt Shaymin - #492
      write pokemonpokemon.txt Shedinja - #292
      write pokemonpokemon.txt Shelgon - #372
      write pokemonpokemon.txt Shellder - #90
      write pokemonpokemon.txt Shellos - #422
      write pokemonpokemon.txt Shieldon - #410
      write pokemonpokemon.txt Shiftry - #275
      write pokemonpokemon.txt Shinx - #403
      write pokemonpokemon.txt Shroomish - #285
      write pokemonpokemon.txt Shuckle - #213
      write pokemonpokemon.txt Shuppet - #353
      write pokemonpokemon.txt Silcoon - #266
      write pokemonpokemon.txt Skarmory - #227
      write pokemonpokemon.txt Skiploom - #188
      write pokemonpokemon.txt Skitty - #300
      write pokemonpokemon.txt Skorupi - #451
      write pokemonpokemon.txt Skuntank - #435
      write pokemonpokemon.txt Slaking - #289
      write pokemonpokemon.txt Slakoth - #287
      write pokemonpokemon.txt Slowbro - #80
      write pokemonpokemon.txt Slowking - #199
      write pokemonpokemon.txt Slowpoke - #79
      write pokemonpokemon.txt Slugma - #218
      write pokemonpokemon.txt Smeargle - #235
      write pokemonpokemon.txt Smoochum - #238
      write pokemonpokemon.txt Sneasel - #215
      write pokemonpokemon.txt Snorlax - #143
      write pokemonpokemon.txt Snorunt - #361
      write pokemonpokemon.txt Snover - #459
      write pokemonpokemon.txt Snubbull - #209
      write pokemonpokemon.txt Solrock - #338
      write pokemonpokemon.txt Spearow - #21
      write pokemonpokemon.txt Spheal - #363
      write pokemonpokemon.txt Spinarak - #167
      write pokemonpokemon.txt Spinda - #327
      write pokemonpokemon.txt Spiritomb - #442
      write pokemonpokemon.txt Spoink - #325
      write pokemonpokemon.txt Squirtle - #7
      write pokemonpokemon.txt Stantler - #234
      write pokemonpokemon.txt Staraptor - #398
      write pokemonpokemon.txt Staravia - #397
      write pokemonpokemon.txt Starly - #396
      write pokemonpokemon.txt Starmie - #121
      write pokemonpokemon.txt Staryu - #120
      write pokemonpokemon.txt Steelix - #208
      write pokemonpokemon.txt Stunky - #434
      write pokemonpokemon.txt Sudowoodo - #185
      write pokemonpokemon.txt Suicune - #245
      write pokemonpokemon.txt Sunflora - #192
      write pokemonpokemon.txt Sunkern - #191
      write pokemonpokemon.txt Surskit - #283
      write pokemonpokemon.txt Swablu - #333
      write pokemonpokemon.txt Swalot - #317
      write pokemonpokemon.txt Swampert - #260
      write pokemonpokemon.txt Swellow - #277
      write pokemonpokemon.txt Swinub - #220
      write pokemonpokemon.txt Taillow - #276
      write pokemonpokemon.txt Tangela - #114
      write pokemonpokemon.txt Tangrowth - #465
      write pokemonpokemon.txt Tauros - #128
      write pokemonpokemon.txt Teddiursa - #216
      write pokemonpokemon.txt Tentacool - #72
      write pokemonpokemon.txt Tentacruel - #73
      write pokemonpokemon.txt Togekiss - #468
      write pokemonpokemon.txt Togepi - #175
      write pokemonpokemon.txt Togetic - #176
      write pokemonpokemon.txt Torchic - #255
      write pokemonpokemon.txt Torkoal - #324
      write pokemonpokemon.txt Torterra - #389
      write pokemonpokemon.txt Totodile - #158
      write pokemonpokemon.txt Toxicroak - #454
      write pokemonpokemon.txt Trapinch - #328
      write pokemonpokemon.txt Treecko - #252
      write pokemonpokemon.txt Tropius - #357
      write pokemonpokemon.txt Turtwig - #387
      write pokemonpokemon.txt Typhlosion - #157
      write pokemonpokemon.txt Tyranitar - #248
      write pokemonpokemon.txt Tyrogue - #236
      write pokemonpokemon.txt Umbreon - #197
      write pokemonpokemon.txt Unown - #201
      write pokemonpokemon.txt Ursaring - #217
      write pokemonpokemon.txt Uxie - #480
      write pokemonpokemon.txt Vaporeon - #134
      write pokemonpokemon.txt Venomoth - #49
      write pokemonpokemon.txt Venonat - #48
      write pokemonpokemon.txt Venusaur - #3
      write pokemonpokemon.txt Vespiquen - #416
      write pokemonpokemon.txt Vibrava - #329
      write pokemonpokemon.txt Victreebel - #71
      write pokemonpokemon.txt Vigoroth - #288
      write pokemonpokemon.txt Vileplume - #45
      write pokemonpokemon.txt Volbeat - #313
      write pokemonpokemon.txt Voltorb - #100
      write pokemonpokemon.txt Vulpix - #37
      write pokemonpokemon.txt Wailmer - #320
      write pokemonpokemon.txt Wailord - #321
      write pokemonpokemon.txt Walrein - #365
      write pokemonpokemon.txt Wartortle - #8
      write pokemonpokemon.txt Weavile - #461
      write pokemonpokemon.txt Weedle - #13
      write pokemonpokemon.txt Weepinbell - #70
      write pokemonpokemon.txt Weezing - #110
      write pokemonpokemon.txt Whiscash - #340
      write pokemonpokemon.txt Whismur - #293
      write pokemonpokemon.txt Wigglytuff - #40
      write pokemonpokemon.txt Wingull - #278
      write pokemonpokemon.txt Wobbuffet - #202
      write pokemonpokemon.txt Wooper - #194
      write pokemonpokemon.txt Wormadam - #413
      write pokemonpokemon.txt Wormadam(Ground) - #413
      write pokemonpokemon.txt Wormadam(Steel) - #413
      write pokemonpokemon.txt Wurmple - #265
      write pokemonpokemon.txt Wynaut - #360
      write pokemonpokemon.txt Xatu - #178
      write pokemonpokemon.txt Yanma - #193
      write pokemonpokemon.txt Yanmega - #469
      write pokemonpokemon.txt Zangoose - #335
      write pokemonpokemon.txt Zapdos - #145
      write pokemonpokemon.txt Zigzagoon - #263
      write pokemonpokemon.txt Zubat - #41
      write pokemonnatures.txt Adamant 1.1 1 0.9 1 1
      write pokemonnatures.txt Bashful 1 1 1 1 1
      write pokemonnatures.txt Bold 0.9 1.1 1 1 1
      write pokemonnatures.txt Brave 1.1 1 1 1 0.9
      write pokemonnatures.txt Calm 0.9 1 1 1.1 1
      write pokemonnatures.txt Careful 1 1 0.9 1.1 1
      write pokemonnatures.txt Docile 1 1 1 1 1
      write pokemonnatures.txt Gentle 1 0.9 1 1.1 1
      write pokemonnatures.txt Hardy 1 1 1 1 1
      write pokemonnatures.txt Hasty 1 0.9 1 1 1.1
      write pokemonnatures.txt Impish 1 1.1 0.9 1 1
      write pokemonnatures.txt Jolly 1 1 0.9 1 1.1
      write pokemonnatures.txt Lax 1 1.1 1 0.9 1
      write pokemonnatures.txt Lonely 1.1 0.9 1 1 1
      write pokemonnatures.txt Mild 1 0.9 1.1 1 1
      write pokemonnatures.txt Modest 0.9 1 1.1 1 1
      write pokemonnatures.txt Naive 1 1 1 0.9 1.1
      write pokemonnatures.txt Naughty 1.1 1 1 0.9 1
      write pokemonnatures.txt Quiet 1 1 1.1 1 0.9
      write pokemonnatures.txt Quirky 1 1 1 1 1
      write pokemonnatures.txt Rash 1 1 1.1 0.9 1
      write pokemonnatures.txt Relaxed 1 1.1 1 1 0.9
      write pokemonnatures.txt Sassy 1 1 1 1.1 0.9
      write pokemonnatures.txt Serious 1 1 1 1 1
      write pokemonnatures.txt Timid 0.9 1 1 1 1.1
      set %firsttimerunningbobsivcalculator no
      disable #start
    }
    #start end
    
  2. Kumar

    Kumar
    is a Site Staff Alumnusis a Forum Moderator Alumnusis a Researcher Alumnusis a Battle Server Moderator Alumnus

    Joined:
    Dec 19, 2004
    Messages:
    3,106
    posting to say that this is pretty awesome
  3. Phiphler

    Phiphler

    Joined:
    May 7, 2007
    Messages:
    210
    Use this remote, you must.
  4. Dan Dan

    Dan Dan

    Joined:
    Jan 1, 2005
    Messages:
    4,748
    this is fucking sick.
  5. MetalKid

    MetalKid

    Joined:
    Aug 5, 2005
    Messages:
    245
    That looks like it was a lot of work!
  6. genious999

    genious999

    Joined:
    May 25, 2007
    Messages:
    90
    haha it took a while, not too bad though

    EDIT: I found a bug dealing with the Hidden Power base power calculations, it wasnt giving the correct power. I also fixed a slight problem where if you selected a Pokemon/Nature in one tab, it would not allow you to select a different Pokemon/Nature in the other tab. However, everyone will need to re-copy the script.
  7. Misty

    Misty oh
    is a Site Staff Alumnusis a Battle Server Admin Alumnusis a Programmer Alumnusis a Smogon IRC SOp Alumnusis a Researcher Alumnusis a Contributor Alumnusis an Administrator Alumnus

    Joined:
    Mar 8, 2005
    Messages:
    7,152
    stickying for a while (i'll later record it in the main sticky), because this is awesome.
  8. Cerozero

    Cerozero

    Joined:
    Jun 7, 2007
    Messages:
    61
    How about for people who do IV battles I cant seem to get lvl 1 and 100 to be on there at the same time.
  9. Misty

    Misty oh
    is a Site Staff Alumnusis a Battle Server Admin Alumnusis a Programmer Alumnusis a Smogon IRC SOp Alumnusis a Researcher Alumnusis a Contributor Alumnusis an Administrator Alumnus

    Joined:
    Mar 8, 2005
    Messages:
    7,152
    Once you do an IV battle, L1 stats are irrelevant. Just enter the L100 stats and it will tell you the exact IVs.
  10. Cerozero

    Cerozero

    Joined:
    Jun 7, 2007
    Messages:
    61
    Oh, thanks for the info. I'm an idiot. You just saved me a lot of work.
  11. GonE

    GonE

    Joined:
    Jan 6, 2005
    Messages:
    867
    Hey you must be BoB :D.

    Yeah I tried this and it's awesome. Props to you for putting so much time into it ;).
  12. Dan Dan

    Dan Dan

    Joined:
    Jan 1, 2005
    Messages:
    4,748
    is the code broken at the end, or is it just missing a tag?
  13. Judgement

    Judgement
    is a Forum Moderator Alumnus

    Joined:
    May 24, 2006
    Messages:
    1,935
    this is pretty cool. im going to have to try this.
  14. genious999

    genious999

    Joined:
    May 25, 2007
    Messages:
    90
    it was both, fixed now though.

    Also fixed a typo giving Giratina 900 base speed.

Users Viewing Thread (Users: 0, Guests: 0)