route1.asm 805 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. Route1Script:
  2. jp EnableAutoTextBoxDrawing
  3. Route1TextPointers:
  4. dw Route1Text1
  5. dw Route1Text2
  6. dw Route1Text3
  7. Route1Text1:
  8. TX_ASM
  9. CheckAndSetEvent EVENT_GOT_POTION_SAMPLE
  10. jr nz, .asm_1cada
  11. ld hl, Route1ViridianMartSampleText
  12. call PrintText
  13. lb bc, POTION, 1
  14. call GiveItem
  15. jr nc, .BagFull
  16. ld hl, Route1Text_1cae8
  17. jr .asm_1cadd
  18. .BagFull
  19. ld hl, Route1Text_1caf3
  20. jr .asm_1cadd
  21. .asm_1cada
  22. ld hl, Route1Text_1caee
  23. .asm_1cadd
  24. call PrintText
  25. jp TextScriptEnd
  26. Route1ViridianMartSampleText:
  27. TX_FAR _Route1ViridianMartSampleText
  28. db "@"
  29. Route1Text_1cae8:
  30. TX_FAR _Route1Text_1cae8
  31. TX_SFX_ITEM_1
  32. db "@"
  33. Route1Text_1caee:
  34. TX_FAR _Route1Text_1caee
  35. db "@"
  36. Route1Text_1caf3:
  37. TX_FAR _Route1Text_1caf3
  38. db "@"
  39. Route1Text2:
  40. TX_FAR _Route1Text2
  41. db "@"
  42. Route1Text3:
  43. TX_FAR _Route1Text3
  44. db "@"