Advertisement
ProClifo

Untitled

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