/maps/Route19BeachHouse.asm

https://github.com/Rangi42/polishedcrystal · Assembly · 130 lines · 107 code · 23 blank · 0 comment · 0 complexity · 42fbaf78cd6bd2d8f1d9ca95d8e0edf3 MD5 · raw file

  1. Route19BeachHouse_MapScriptHeader:
  2. def_scene_scripts
  3. def_callbacks
  4. def_warp_events
  5. warp_event 2, 7, ROUTE_19, 2
  6. warp_event 3, 7, ROUTE_19, 2
  7. def_coord_events
  8. def_bg_events
  9. def_object_events
  10. object_event 2, 3, SPRITE_COOL_DUDE, SPRITEMOVEDATA_STANDING_DOWN, 0, 0, -1, -1, PAL_NPC_BLUE, OBJECTTYPE_SCRIPT, 0, Route19BeachHouseVictorScript, -1
  11. object_event 6, 4, SPRITE_SURFING_PIKACHU, SPRITEMOVEDATA_WANDER, 1, 1, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, Route19BeachHouseSurfingPikachuScript, -1
  12. object_const_def
  13. const ROUTE19BEACHHOUSE_VICTOR
  14. Route19BeachHouseVictorScript:
  15. faceplayer
  16. opentext
  17. checkevent EVENT_BEAT_VICTOR
  18. iftrue .AfterScript
  19. writetext .GreetingText
  20. waitbutton
  21. special CheckForSurfingPikachu
  22. iffalse .NoPikachu
  23. writetext .ChallengeText
  24. yesorno
  25. iffalse .NoBattle
  26. writetext .SeenText
  27. waitbutton
  28. closetext
  29. winlosstext .BeatenText, 0
  30. setlasttalked ROUTE19BEACHHOUSE_VICTOR
  31. loadtrainer VICTOR, 1
  32. startbattle
  33. reloadmapafterbattle
  34. setevent EVENT_BEAT_VICTOR
  35. opentext
  36. .AfterScript:
  37. jumpopenedtext .AfterText
  38. .NoPikachu:
  39. jumpopenedtext .NoPikachuText
  40. .NoBattle:
  41. jumpopenedtext .NoBattleText
  42. .GreetingText:
  43. text "Hey there, friend!"
  44. line "The name's Victor."
  45. para "I love to Surf,"
  46. line "and so does Puka."
  47. cont "That's my Pikachu!"
  48. done
  49. .ChallengeText:
  50. text "Whoa!"
  51. para "Your Pikachu knows"
  52. line "how to Surf! So,"
  53. cont "I'm not alone…"
  54. para "Great! You earned"
  55. line "the right to a"
  56. para "Surfing battle"
  57. line "with me and Puka!"
  58. para "Give it a go?"
  59. done
  60. .SeenText:
  61. text "The sea unites"
  62. line "all in surfdom!"
  63. cont "Let's go!"
  64. done
  65. .BeatenText:
  66. text "I knew you could"
  67. line "do it!"
  68. done
  69. .AfterText:
  70. text "I hear some Pika-"
  71. line "chu in Johto"
  72. para "taught themselves"
  73. line "to Surf."
  74. para "Maybe that's where"
  75. line "mine came from."
  76. para "I found Puka wash-"
  77. line "ed ashore years"
  78. cont "ago, and we've been"
  79. para "partners ever"
  80. line "since then."
  81. done
  82. .NoPikachuText:
  83. text "You can do it,"
  84. line "too!"
  85. para "Go out there and"
  86. line "find a Surfing"
  87. cont "Pikachu!"
  88. para "Show me that you"
  89. line "love Surfing too!"
  90. done
  91. .NoBattleText:
  92. text "Shucks. Come Surf"
  93. line "anytime, friend!"
  94. done
  95. Route19BeachHouseSurfingPikachuScript:
  96. faceplayer
  97. showcrytext .Text, PIKACHU
  98. end
  99. .Text:
  100. text "Puka: Pi-kaa!"
  101. done