Advertisement
Tyler_Elric

Only Once Script

Sep 9th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. #define ITEM_ORANBERRY 0x8B
  2. #define ITEM_POKEBALL 0x4
  3.  
  4. #clean
  5. #dynamic 0x740000
  6.  
  7. 0x81D475
  8.  
  9. #define PLAYER_PERSON 0xFF
  10. #define MOM_PERSON 0x1
  11. #define PROF_PERSON 0x2
  12. #define PLAYER_PKMN 0x5000
  13. #define RIVAL_GENDER 0x4002
  14. #define BOY_GENDER 0x0
  15. #define global_event_var 0
  16.  
  17. #define move_a 0x7457BD
  18. #define move_b 0x7457E4
  19. #define move_c 0x81BDF0
  20. #define move_d 0x81BF1B
  21. #define move_e 0x81BF65
  22.  
  23. #define str_a 0x81D510
  24. #define str_b 0x81D509
  25. #define str_c 0x81D714
  26.  
  27. #define set_gender 0x81D509
  28.  
  29. #org @main
  30. lockall
  31. applymovement MOM_PERSON move_b
  32. applymovement PLAYER_PERSON move_a
  33. waitmovement PLAYER_PERSON
  34. msgbox str_a 0x6
  35. applymovement MOM_PERSON move_c
  36. waitmovement MOM_PERSON
  37. hidesprite MOM_PERSON
  38. applymovement PROF_PERSON move_d
  39. waitmovement PROF_PERSON
  40. msgbox str_b 0x6
  41. giveitem ITEM_POKEBALL 5 0
  42. givepokemon PLAYER_PKMN 5 ITEM_ORANBERRY 0 0 0
  43. special 0x9E
  44. msgbox str_c 0x6
  45. setvar RIVAL_GENDER 0
  46. checkgender
  47. compare LASTRESULT BOY_GENDER
  48. if 0x1 call set_gender
  49. call set_gender ' 1=female, 2=male.
  50. applymovement PROF_PERSON move_e
  51. waitmovement PROF_PERSON
  52. call @advance_event
  53. releaseall
  54. end
  55.  
  56. #org @advance_event
  57. addvar global_event_var 1
  58. return
  59.  
  60. //---------------
  61. #org 0x81D509
  62. addvar 0x4002 0x1
  63. return
  64.  
  65. //-----------
  66. // Strings
  67. //-----------
  68. #org 0x81D510
  69. = [player][.] I know this is hard,\nbut you have to listen[.] Ever\lsince your dad left, it's been\lharder and harder to keep food on\lthe table. Quite honestly, I\ldon't even have food for\ltonight[.] So[.] so[.]
  70.  
  71. #org 0x81D5D0
  72. = Professor: [player], you have to\nunderstand that these are tough\ltimes. This was a very hard\ldecision for your mother, but I\lbelieve she's right. I've brought\lyou a Pokemon, some money,\land some pokeballs to help you\lstart out.
  73.  
  74. #org 0x81D714
  75. = I know this is difficult, but I\nknow t[rival], is a rookie trainer\las well.\lYou two can keep each other safe.
  76.  
  77.  
  78. //-----------
  79. // Movements
  80. //-----------
  81. #org 0x7457BD
  82. #raw 0xC //Step Down (Slow)
  83. #raw 0xE //Step Left (Slow)
  84. #raw 0xE //Step Left (Slow)
  85. #raw 0x4 //Face Down (Faster)
  86. #raw 0x63 //Question Mark (?)
  87. #raw 0xFE //End of Movements
  88.  
  89. #org 0x7457E4
  90. #raw 0x1 //Face Up
  91. #raw 0xFE //End of Movements
  92.  
  93. #org 0x81BDF0
  94. #raw 0x3 //Face Right
  95. #raw 0x2 //Face Left
  96. #raw 0x1 //Face Up
  97. #raw 0x64 //Cross (X)
  98. #raw 0x1D //Step Down (Fast)
  99. #raw 0x1D //Step Down (Fast)
  100. #raw 0x1F //Step Left (Fast)
  101. #raw 0x1F //Step Left (Fast)
  102. #raw 0x1F //Step Left (Fast)
  103. #raw 0x1F //Step Left (Fast)
  104. #raw 0x1D //Step Down (Fast)
  105. #raw 0x1 //Face Up
  106. #raw 0x62 //Exclamation Mark (!)
  107. #raw 0x53 //Jump in Place (Facing Up)
  108. #raw 0xC //Step Down (Slow)
  109. #raw 0xFE //End of Movements
  110.  
  111. #org 0x81BF1B
  112. #raw 0xD //Step Up (Slow)
  113. #raw 0x13 //Step Right (Normal)
  114. #raw 0x13 //Step Right (Normal)
  115. #raw 0x11 //Step Up (Normal)
  116. #raw 0x13 //Step Right (Normal)
  117. #raw 0x13 //Step Right (Normal)
  118. #raw 0x13 //Step Right (Normal)
  119. #raw 0x11 //Step Up (Normal)
  120. #raw 0x11 //Step Up (Normal)
  121. #raw 0x62 //Exclamation Mark (!)
  122. #raw 0xFE //End of Movements
  123.  
  124. #org 0x81BF65
  125. #raw 0x10 //Step Down (Normal)
  126. #raw 0x10 //Step Down (Normal)
  127. #raw 0x12 //Step Left (Normal)
  128. #raw 0x12 //Step Left (Normal)
  129. #raw 0x12 //Step Left (Normal)
  130. #raw 0x10 //Step Down (Normal)
  131. #raw 0x12 //Step Left (Normal)
  132. #raw 0x12 //Step Left (Normal)
  133. #raw 0x10 //Step Down (Normal)
  134. #raw 0xFE //End of Movements
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement