route12house.asm 984 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Route12HouseScript:
  2. jp EnableAutoTextBoxDrawing
  3. Route12HouseTextPointers:
  4. dw Route12HouseText1
  5. Route12HouseText1:
  6. TX_ASM
  7. ld a, [wd728]
  8. bit 5, a
  9. jr nz, .asm_b4cad
  10. ld hl, Route12HouseText_564c0
  11. call PrintText
  12. call YesNoChoice
  13. ld a, [wCurrentMenuItem]
  14. and a
  15. jr nz, .asm_a2d76
  16. lb bc, SUPER_ROD, 1
  17. call GiveItem
  18. jr nc, .BagFull
  19. ld hl, wd728
  20. set 5, [hl]
  21. ld hl, Route12HouseText_564c5
  22. jr .asm_df984
  23. .BagFull
  24. ld hl, Route12HouseText_564d9
  25. jr .asm_df984
  26. .asm_a2d76
  27. ld hl, Route12HouseText_564cf
  28. jr .asm_df984
  29. .asm_b4cad
  30. ld hl, Route12HouseText_564d4
  31. .asm_df984
  32. call PrintText
  33. jp TextScriptEnd
  34. Route12HouseText_564c0:
  35. TX_FAR _Route12HouseText_564c0
  36. db "@"
  37. Route12HouseText_564c5:
  38. TX_FAR _Route12HouseText_564c5
  39. TX_SFX_ITEM_1
  40. TX_FAR _Route12HouseText_564ca
  41. db "@"
  42. Route12HouseText_564cf:
  43. TX_FAR _Route12HouseText_564cf
  44. db "@"
  45. Route12HouseText_564d4:
  46. TX_FAR _Route12HouseText_564d4
  47. db "@"
  48. Route12HouseText_564d9:
  49. TX_FAR _Route12HouseText_564d9
  50. db "@"