Guest User

Untitled

a guest
May 1st, 2017
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const_value set 2
  2. const SILVERCAVEOUTSIDE_MEW
  3.  
  4. SilverCaveOutside_MapScriptHeader:
  5. .MapTriggers:
  6. db 0
  7.  
  8. .MapCallbacks:
  9. db 2
  10.  
  11. ; callbacks
  12. dbw MAPCALLBACK_NEWMAP, .FlyPoint
  13. dbw MAPCALLBACK_OBJECTS, .Mew
  14.  
  15. .FlyPoint:
  16. setflag ENGINE_FLYPOINT_SILVER_CAVE
  17. return
  18.  
  19. .Mew
  20. checkevent EVENT_FOUGHT_MEW
  21. iftrue .NoAppear
  22. checkitem CLEAR_BELL
  23. iftrue .Appear
  24. jump .NoAppear
  25.  
  26. .Appear:
  27. appear SILVERCAVEOUTSIDE_MEW
  28. return
  29.  
  30. .NoAppear:
  31. disappear SILVERCAVEOUTSIDE_MEW
  32. return
  33.  
  34. Mew:
  35. faceplayer
  36. opentext
  37. writetext MewText
  38. cry MEW
  39. pause 15
  40. closetext
  41. setevent EVENT_FOUGHT_MEW
  42. writecode VAR_BATTLETYPE, BATTLETYPE_FORCEITEM
  43. loadwildmon MEW, 30
  44. startbattle
  45. disappear SILVERCAVEOUTSIDE_MEW
  46. reloadmapafterbattle
  47. end
  48.  
  49. MewText:
  50. text "Meewww!"
  51. done
  52.  
  53. MtSilverPokeCenterSign:
  54. jumpstd pokecentersign
  55.  
  56. MtSilverSign:
  57. jumptext MtSilverSignText
  58.  
  59. SilverCaveOutsideHiddenFullRestore:
  60. dwb EVENT_SILVER_CAVE_OUTSIDE_HIDDEN_FULL_RESTORE, FULL_RESTORE
  61.  
  62. MtSilverSignText:
  63. text "MT.SILVER"
  64. done
  65.  
  66. SilverCaveOutside_MapEventHeader:
  67. ; filler
  68. db 0, 0
  69.  
  70. .Warps:
  71. db 2
  72. warp_def $13, $17, 1, SILVER_CAVE_POKECENTER_1F
  73. warp_def $b, $12, 1, SILVER_CAVE_ROOM_1
  74.  
  75. .XYTriggers:
  76. db 0
  77.  
  78. .Signposts:
  79. db 3
  80. signpost 19, 24, SIGNPOST_READ, MtSilverPokeCenterSign
  81. signpost 13, 17, SIGNPOST_READ, MtSilverSign
  82. signpost 25, 9, SIGNPOST_ITEM, SilverCaveOutsideHiddenFullRestore
  83.  
  84. .PersonEvents:
  85. db 1
  86. person_event SPRITE_MEW, 25, 9, SPRITEMOVEDATA_POKEMON, 0, 0, -1, -1, (1 << 3) | PAL_OW_BLUE, PERSONTYPE_SCRIPT, 0, Mew, EVENT_SILVERCAVEOUTSIDE_MEW
RAW Paste Data