lavenderhouse1.asm 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. LavenderHouse1Script:
  2. call EnableAutoTextBoxDrawing
  3. ret
  4. LavenderHouse1TextPointers:
  5. dw LavenderHouse1Text1
  6. dw LavenderHouse1Text2
  7. dw LavenderHouse1Text3
  8. dw LavenderHouse1Text4
  9. dw LavenderHouse1Text5
  10. dw LavenderHouse1Text6
  11. LavenderHouse1Text1:
  12. TX_ASM
  13. CheckEvent EVENT_RESCUED_MR_FUJI
  14. jr nz, .asm_72e5d
  15. ld hl, LavenderHouse1Text_1d8d1
  16. call PrintText
  17. jr .asm_6957f
  18. .asm_72e5d
  19. ld hl, LavenderHouse1Text_1d8d6
  20. call PrintText
  21. .asm_6957f
  22. jp TextScriptEnd
  23. LavenderHouse1Text_1d8d1:
  24. TX_FAR _LavenderHouse1Text_1d8d1
  25. db "@"
  26. LavenderHouse1Text_1d8d6:
  27. TX_FAR _LavenderHouse1Text_1d8d6
  28. db "@"
  29. LavenderHouse1Text2:
  30. TX_ASM
  31. CheckEvent EVENT_RESCUED_MR_FUJI
  32. jr nz, .asm_06470
  33. ld hl, LavenderHouse1Text_1d8f4
  34. call PrintText
  35. jr .asm_3d208
  36. .asm_06470
  37. ld hl, LavenderHouse1Text_1d8f9
  38. call PrintText
  39. .asm_3d208
  40. jp TextScriptEnd
  41. LavenderHouse1Text_1d8f4:
  42. TX_FAR _LavenderHouse1Text_1d8f4
  43. db "@"
  44. LavenderHouse1Text_1d8f9:
  45. TX_FAR _LavenderHouse1Text_1d8f9
  46. db "@"
  47. LavenderHouse1Text3:
  48. TX_FAR _LavenderHouse1Text3
  49. TX_ASM
  50. ld a, PSYDUCK
  51. call PlayCry
  52. jp TextScriptEnd
  53. LavenderHouse1Text4:
  54. TX_FAR _LavenderHouse1Text4
  55. TX_ASM
  56. ld a, NIDORINO
  57. call PlayCry
  58. jp TextScriptEnd
  59. LavenderHouse1Text5:
  60. TX_ASM
  61. CheckEvent EVENT_GOT_POKE_FLUTE
  62. jr nz, .asm_15ac2
  63. ld hl, LavenderHouse1Text_1d94c
  64. call PrintText
  65. lb bc, POKE_FLUTE, 1
  66. call GiveItem
  67. jr nc, .BagFull
  68. ld hl, ReceivedFluteText
  69. call PrintText
  70. SetEvent EVENT_GOT_POKE_FLUTE
  71. jr .asm_da749
  72. .BagFull
  73. ld hl, FluteNoRoomText
  74. call PrintText
  75. jr .asm_da749
  76. .asm_15ac2
  77. ld hl, MrFujiAfterFluteText
  78. call PrintText
  79. .asm_da749
  80. jp TextScriptEnd
  81. LavenderHouse1Text_1d94c:
  82. TX_FAR _LavenderHouse1Text_1d94c
  83. db "@"
  84. ReceivedFluteText:
  85. TX_FAR _ReceivedFluteText
  86. TX_SFX_KEY_ITEM
  87. TX_FAR _FluteExplanationText
  88. db "@"
  89. FluteNoRoomText:
  90. TX_FAR _FluteNoRoomText
  91. db "@"
  92. MrFujiAfterFluteText:
  93. TX_FAR _MrFujiAfterFluteText
  94. db "@"
  95. LavenderHouse1Text6:
  96. TX_FAR _LavenderHouse1Text6
  97. db "@"