Advertisement
Lunos

EV/IV Lecture - Emerald

Dec 28th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. // The following script was created by me (Lunos) on July 5, 2018.
  2. // It uses an ASM Routine created by PokeCommunity user Blurose to read the EVs and/or IVs of a Pokémon in your party.
  3. // Please give credits where it's due if used.
  4.  
  5. // Source: https://www.pokecommunity.com/showthread.php?p=9897717#post9897717
  6. // Archived: http://web.archive.org/web/20191228093104/https://www.pokecommunity.com/showthread.php?t=339153&page=56
  7.  
  8. // Note: 0x8XXXXXX+1 = Offset where the routine was inserted +1.
  9.  
  10. #dynamic 0x71BBA0
  11.  
  12. #org @start
  13. lock
  14. msgbox @string1 0x5
  15. compare 0x800D 0x1
  16. if 0x1 goto @snippet1
  17. if 0x0 goto @snippet2
  18. #org @snippet1
  19. special 0xA2
  20. waitstate
  21. compare 0x8004 0x6
  22. if 0x4 goto @snippet3
  23. setvar 0x8000 0x1
  24. callasm 0x8XXXXXX+1
  25. buffernumber 0x0 0x8000
  26. buffernumber 0x1 0x8001
  27. buffernumber 0x2 0x8002
  28. msgbox @string2 0x4
  29. closeonkeypress
  30. buffernumber 0x0 0x8003
  31. buffernumber 0x1 0x8004
  32. buffernumber 0x2 0x8005
  33. msgbox @string3 0x4
  34. closeonkeypress
  35. goto @snippet2
  36.  
  37. #org @snippet2
  38. msgbox @string4 0x5
  39. compare 0x800D 0x1
  40. if 0x1 goto @snippet4
  41. release
  42. end
  43.  
  44. #org @snippet3
  45. end
  46.  
  47. #org @snippet4
  48. special 0xA2
  49. waitstate
  50. compare 0x8004 0x6
  51. if 0x4 goto @snippet3
  52. setvar 0x8000 0x0
  53. callasm 0x8XXXXXX+1
  54. buffernumber 0x0 0x8000
  55. buffernumber 0x1 0x8001
  56. buffernumber 0x2 0x8002
  57. msgbox @string5 0x4
  58. closeonkeypress
  59. buffernumber 0x0 0x8003
  60. buffernumber 0x1 0x8004
  61. buffernumber 0x2 0x8005
  62. msgbox @string3 0x4
  63. closeonkeypress
  64. release
  65. end
  66.  
  67. #org @string1
  68. = Do you want to check a pokémon's\nIVs?
  69.  
  70. #org @string2
  71. = Its IVs are: [buffer1], [buffer2], [buffer3]
  72.  
  73. #org @string3
  74. = Followed by: [buffer1], [buffer2], [buffer3]
  75.  
  76. #org @string4
  77. = Do you want to check a pokémon's\nEVs?
  78.  
  79. #org @string5
  80. = Its EVs are: [buffer1], [buffer2], [buffer3]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement