lab3.asm 877 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Lab3Script:
  2. jp EnableAutoTextBoxDrawing
  3. Lab3TextPointers:
  4. dw Lab3Text1
  5. dw Lab3Text2
  6. dw Lab3Text3
  7. dw Lab3Text4
  8. dw Lab3Text5
  9. Lab3Text1:
  10. TX_ASM
  11. CheckEvent EVENT_GOT_TM35
  12. jr nz, .asm_e551a
  13. ld hl, TM35PreReceiveText
  14. call PrintText
  15. lb bc, TM_35, 1
  16. call GiveItem
  17. jr nc, .BagFull
  18. ld hl, ReceivedTM35Text
  19. call PrintText
  20. SetEvent EVENT_GOT_TM35
  21. jr .asm_eb896
  22. .BagFull
  23. ld hl, TM35NoRoomText
  24. call PrintText
  25. jr .asm_eb896
  26. .asm_e551a
  27. ld hl, TM35ExplanationText
  28. call PrintText
  29. .asm_eb896
  30. jp TextScriptEnd
  31. TM35PreReceiveText:
  32. TX_FAR _TM35PreReceiveText
  33. db "@"
  34. ReceivedTM35Text:
  35. TX_FAR _ReceivedTM35Text
  36. TX_SFX_ITEM_1
  37. db "@"
  38. TM35ExplanationText:
  39. TX_FAR _TM35ExplanationText
  40. db "@"
  41. TM35NoRoomText:
  42. TX_FAR _TM35NoRoomText
  43. db "@"
  44. Lab3Text2:
  45. TX_FAR _Lab3Text2
  46. db "@"
  47. Lab3Text4:
  48. Lab3Text3:
  49. TX_FAR _Lab3Text3
  50. db "@"
  51. Lab3Text5:
  52. TX_FAR _Lab3Text5
  53. db "@"