Advertisement
ProClifo

Untitled

Jun 26th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.80 KB | None | 0 0
  1. /*
  2. ProClifo's template for giving Pokémon with intergrated nicknaming and boxing.
  3.  
  4. Before calling this script, you must do these things:
  5.  
  6. setvar 0x4001 to Pokemon's ID
  7. setvar 0x8002 to Pokemon's level
  8. setvar 0x8003 to Pokemon's held item
  9.  
  10. */
  11.  
  12. #org @start
  13. givepokemon 0x4001 0x8002 0x8003 0x0 0x0 0x0
  14. compare LASTRESULT 0x0
  15. if 0x1 goto @nick1
  16. compare LASTRESULT 0x1
  17. if 0x1 goto @nick2
  18. goto 0x8273811
  19.  
  20. #org @nick1
  21. call @received
  22. msgbox 0x8273374 MSG_YESNO '"Do you want to give a nickname to\..."
  23. compare LASTRESULT 0x0
  24. if 0x1 goto @release_all
  25. call 0x827378B
  26. call 0x82723DD
  27. goto @release_all
  28.  
  29. #org @nick2
  30. call @received
  31. msgbox 0x8273374 MSG_YESNO '"Do you want to give a nickname to\..."
  32. compare LASTRESULT 0x0
  33. if 0x1 goto @offset
  34. call 0x8273797
  35. goto @offset
  36.  
  37. #org 0x273811
  38. msgbox 0x827331C MSG_KEEPOPEN '"There's no more room for POKéMON!\..."
  39. release
  40. end
  41.  
  42. #org @received
  43. bufferpokemon 0x1 0x4001
  44. hidesprite 0x2
  45. fanfare 0x172
  46. preparemsg @received_msg
  47. waitmsg
  48. waitfanfare
  49. bufferpokemon 0x0 0x4001
  50. return
  51.  
  52. #org @release_all
  53. releaseall
  54. end
  55.  
  56. #org 0x27378B
  57. countpokemon
  58. subvar LASTRESULT 0x1
  59. copyvar 0x8004 LASTRESULT
  60. return
  61.  
  62. #org 0x2723DD
  63. fadescreen 0x1
  64. special 0xA1
  65. waitstate
  66. return
  67.  
  68. #org @offset
  69. call 0x82737A0
  70. goto @release_all
  71.  
  72. #org 0x273797
  73. fadescreen 0x1
  74. special 0x1E6
  75. waitstate
  76. lock
  77. faceplayer
  78. return
  79.  
  80. #org 0x2737A0
  81. bufferboxname 0x0 0x4036
  82. bufferpokemon 0x1 0x4001
  83. checkflag 0x8AB
  84. if 0x0 call 0x82737BB
  85. checkflag 0x8AB
  86. if 0x1 call 0x82737E6
  87. return
  88.  
  89. #org 0x2737BB
  90. special2 LASTRESULT 0x1E8
  91. compare LASTRESULT 0x1
  92. if 0x1 goto 0x82737D4
  93. msgbox 0x8273216 MSG_KEEPOPEN '"[buffer2] was transferred to\nSOME..."
  94. return
  95.  
  96. #org 0x2737E6
  97. special2 LASTRESULT 0x1E8
  98. compare LASTRESULT 0x1
  99. if 0x1 goto 0x82737FF
  100. msgbox 0x8273256 MSG_KEEPOPEN '"[buffer2] was transferred to\nLANE..."
  101. return
  102.  
  103. #org 0x2737D4
  104. special2 LASTRESULT 0x1E7
  105. bufferboxname 0x2 LASTRESULT
  106. msgbox 0x8273296 MSG_KEEPOPEN '"BOX ["][buffer3]" on\nSOMEONE'S PC..."
  107. return
  108.  
  109. #org 0x2737FF
  110. special2 LASTRESULT 0x1E7
  111. bufferboxname 0x2 LASTRESULT
  112. msgbox 0x82732D9 MSG_KEEPOPEN '"BOX ["][buffer3]" on\nLANETTE'S PC..."
  113. return
  114.  
  115. #org 0x273374
  116. = Do you want to give a nickname to\nthis [buffer1]?
  117.  
  118. #org 0x27331C
  119. = There's no more room for POKéMON!\pThe POKéMON BOXES are full and\ncan't accept any more!
  120.  
  121. #org @received_msg
  122. = [player] received a [buffer2]!
  123.  
  124. #org 0x273216
  125. = [buffer2] was transferred to\nSOMEONE'S PC.\pIt was placed in \nBOX ["][buffer1]."
  126.  
  127. #org 0x273256
  128. = [buffer2] was transferred to\nLANETTE'S PC.\pIt was placed in \nBOX ["][buffer1]."
  129.  
  130. #org 0x273296
  131. = BOX ["][buffer3]" on\nSOMEONE'S PC was full.\p[buffer2] was transferred to\nBOX ["][buffer1]."
  132.  
  133. #org 0x2732D9
  134. = BOX ["][buffer3]" on\nLANETTE'S PC was full.\p[buffer2] was transferred to\nBOX ["][buffer1]."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement