vermilionhouse2.asm 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. VermilionHouse2Script:
  2. jp EnableAutoTextBoxDrawing
  3. VermilionHouse2TextPointers:
  4. dw VermilionHouse2Text1
  5. VermilionHouse2Text1:
  6. TX_ASM
  7. ld a, [wd728]
  8. bit 3, a
  9. jr nz, .asm_03ef5
  10. ld hl, VermilionHouse2Text_560b1
  11. call PrintText
  12. call YesNoChoice
  13. ld a, [wCurrentMenuItem]
  14. and a
  15. jr nz, .asm_eb1b7
  16. lb bc, OLD_ROD, 1
  17. call GiveItem
  18. jr nc, .BagFull
  19. ld hl, wd728
  20. set 3, [hl]
  21. ld hl, VermilionHouse2Text_560b6
  22. jr .asm_5dd95
  23. .BagFull
  24. ld hl, VermilionHouse2Text_560ca
  25. jr .asm_5dd95
  26. .asm_eb1b7
  27. ld hl, VermilionHouse2Text_560c0
  28. jr .asm_5dd95
  29. .asm_03ef5
  30. ld hl, VermilionHouse2Text_560c5
  31. .asm_5dd95
  32. call PrintText
  33. jp TextScriptEnd
  34. VermilionHouse2Text_560b1:
  35. TX_FAR _VermilionHouse2Text_560b1
  36. db "@"
  37. VermilionHouse2Text_560b6:
  38. TX_FAR _VermilionHouse2Text_560b6
  39. TX_SFX_ITEM_1
  40. TX_FAR _VermilionHouse2Text_560bb
  41. db "@"
  42. VermilionHouse2Text_560c0:
  43. TX_FAR _VermilionHouse2Text_560c0
  44. db "@"
  45. VermilionHouse2Text_560c5:
  46. TX_FAR _VermilionHouse2Text_560c5
  47. db "@"
  48. VermilionHouse2Text_560ca:
  49. TX_FAR _VermilionHouse2Text_560ca
  50. db "@"