Advertisement
ProClifo

Emerald: ProClifo's Give Pokémon Template

Jun 26th, 2015
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. /*
  2.  
  3. ProClifo's template for giving Pokémon with intergrated nicknaming and boxing.
  4.  
  5. This is meant to be called on by an earlier script. Remember to save the offsets when compiling, because this can be used more than once.
  6. Before calling this script, you must do this beforehand:
  7.  
  8. setvar 0x4001 to Pokemon's ID
  9.  
  10. Call/goto this script on the next line after a 'givepokemon' command.
  11. This doesn't return to the previous script, but you can modify the aftermath at @release.
  12.  
  13. */
  14.  
  15. #freespace 0xFF
  16. #dynamic 0xF00000
  17.  
  18. #org @start
  19. compare LASTRESULT 0x0
  20. if 0x1 goto @nick1
  21. compare LASTRESULT 0x1
  22. if 0x1 goto @nick2
  23. goto 0x8273811
  24.  
  25. #org @nick1
  26. call @received
  27. msgbox 0x8273374 MSG_YESNO
  28. compare LASTRESULT 0x0
  29. if 0x1 goto @release
  30. call 0x827378B
  31. call 0x82723DD
  32. goto @release
  33.  
  34. #org @nick2
  35. call @received
  36. msgbox 0x8273374 MSG_YESNO
  37. compare LASTRESULT 0x0
  38. if 0x1 goto @offset
  39. call 0x8273797
  40. goto @offset
  41.  
  42. #org @received
  43. bufferpokemon 0x1 0x4001
  44. fanfare 0x172
  45. preparemsg @received_msg
  46. waitmsg
  47. waitfanfare
  48. bufferpokemon 0x0 0x4001
  49. return
  50.  
  51. #org @release
  52. release
  53. end
  54.  
  55. #org @offset
  56. call 0x82737A0
  57. goto @release
  58.  
  59. #org @received_msg
  60. = [player] received a [buffer2]!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement