/maps/CeladonDeptStore4F.asm

https://github.com/Rangi42/polishedcrystal · Assembly · 167 lines · 148 code · 19 blank · 0 comment · 0 complexity · 25712e59b2e46ee4469c16197f41f8d0 MD5 · raw file

  1. CeladonDeptStore4F_MapScriptHeader:
  2. def_scene_scripts
  3. def_callbacks
  4. def_warp_events
  5. warp_event 12, 0, CELADON_DEPT_STORE_5F, 1
  6. warp_event 15, 0, CELADON_DEPT_STORE_3F, 2
  7. warp_event 2, 0, CELADON_DEPT_STORE_ELEVATOR, 1
  8. def_coord_events
  9. def_bg_events
  10. bg_event 14, 0, BGEVENT_JUMPTEXT, CeladonDeptStore4FDirectoryText
  11. def_object_events
  12. object_event 13, 5, SPRITE_CLERK, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_COMMAND, pokemart, MARTTYPE_STANDARD, MART_CELADON_4F, -1
  13. object_event 7, 6, SPRITE_POKEMANIAC, SPRITEMOVEDATA_WALK_LEFT_RIGHT, 0, 1, -1, -1, PAL_NPC_GREEN, OBJECTTYPE_COMMAND, jumptextfaceplayer, UnknownText_0x70f21, -1
  14. object_event 8, 2, SPRITE_SCHOOLBOY, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_COMMAND, jumptextfaceplayer, UnknownText_0x70f55, -1
  15. object_event 15, 5, SPRITE_CLERK, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, PosterClerkScript, -1
  16. PosterClerkScript:
  17. faceplayer
  18. opentext
  19. writetext PosterClerkText
  20. .Start:
  21. special PlaceMoneyTopRight
  22. loadmenu .MenuData
  23. verticalmenu
  24. closewindow
  25. ifequal $1, .MarillPoster
  26. ifequal $2, .ClefairyPoster
  27. ifequal $3, .PikachuPoster
  28. endtext
  29. .MarillPoster:
  30. checkmoney $0, 3200
  31. ifequal $2, .NotEnoughMoney
  32. checkevent EVENT_DECO_POSTER_3
  33. iftrue .AlreadyBought
  34. takemoney $0, 3200
  35. setevent EVENT_DECO_POSTER_3
  36. writetext BoughtMarillPosterText
  37. playsound SFX_TRANSACTION
  38. waitbutton
  39. writetext MarillPosterSentText
  40. waitbutton
  41. jump .Start
  42. .ClefairyPoster:
  43. checkmoney $0, 4800
  44. ifequal $2, .NotEnoughMoney
  45. checkevent EVENT_DECO_POSTER_2
  46. iftrue .AlreadyBought
  47. takemoney $0, 4800
  48. setevent EVENT_DECO_POSTER_2
  49. writetext BoughtClefairyPosterText
  50. playsound SFX_TRANSACTION
  51. waitbutton
  52. writetext ClefairyPosterSentText
  53. waitbutton
  54. jump .Start
  55. .PikachuPoster:
  56. checkmoney $0, 6400
  57. ifequal $2, .NotEnoughMoney
  58. checkevent EVENT_DECO_POSTER_1
  59. iftrue .AlreadyBought
  60. takemoney $0, 6400
  61. setevent EVENT_DECO_POSTER_1
  62. writetext BoughtPikachuPosterText
  63. playsound SFX_TRANSACTION
  64. waitbutton
  65. writetext PikachuPosterSentText
  66. waitbutton
  67. jump .Start
  68. .NotEnoughMoney:
  69. writetext PosterClerkNoMoneyText
  70. waitbutton
  71. jump .Start
  72. .AlreadyBought:
  73. writetext PosterClerkAlreadyBoughtText
  74. waitbutton
  75. jump .Start
  76. .MenuData:
  77. db $40 ; flags
  78. db 02, 00 ; start coords
  79. db 11, 19 ; end coords
  80. dw .MenuData2
  81. db 1 ; default option
  82. .MenuData2:
  83. db $80 ; flags
  84. db 4 ; items
  85. db "Marill ¥3200@"
  86. db "Clefairy ¥4800@"
  87. db "Pikachu ¥6400@"
  88. db "Cancel@"
  89. PosterClerkText:
  90. text "Welcome! Would you"
  91. line "like a poster?"
  92. done
  93. PosterClerkNoMoneyText:
  94. text "You don't have"
  95. line "enough money."
  96. done
  97. PosterClerkAlreadyBoughtText:
  98. text "You bought that"
  99. line "already."
  100. done
  101. BoughtMarillPosterText:
  102. text "<PLAYER> bought"
  103. line "Marill Poster."
  104. done
  105. MarillPosterSentText:
  106. text "Marill Poster"
  107. line "was sent home."
  108. done
  109. BoughtClefairyPosterText:
  110. text "<PLAYER> bought"
  111. line "Clefairy Poster."
  112. done
  113. ClefairyPosterSentText:
  114. text "Clefairy Poster"
  115. line "was sent home."
  116. done
  117. BoughtPikachuPosterText:
  118. text "<PLAYER> bought"
  119. line "Pikachu Poster."
  120. done
  121. PikachuPosterSentText:
  122. text "Pikachu Poster"
  123. line "was sent home."
  124. done
  125. UnknownText_0x70f21:
  126. text "I'm here to buy"
  127. line "Lovely Mail for"
  128. cont "my girlfriend."
  129. done
  130. UnknownText_0x70f55:
  131. text "This is the only"
  132. line "place where you"
  133. para "can buy posters."
  134. line "I collect them!"
  135. done
  136. CeladonDeptStore4FDirectoryText:
  137. text "Express Yourself"
  138. line "With Gifts!"
  139. para "4F: Wiseman Gifts"
  140. done