saffronhouse2.asm 729 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. SaffronHouse2Script:
  2. jp EnableAutoTextBoxDrawing
  3. SaffronHouse2TextPointers:
  4. dw SaffronHouse2Text1
  5. SaffronHouse2Text1:
  6. TX_ASM
  7. CheckEvent EVENT_GOT_TM29
  8. jr nz, .asm_9e72b
  9. ld hl, TM29PreReceiveText
  10. call PrintText
  11. lb bc, TM_29, 1
  12. call GiveItem
  13. jr nc, .BagFull
  14. ld hl, ReceivedTM29Text
  15. call PrintText
  16. SetEvent EVENT_GOT_TM29
  17. jr .asm_fe4e1
  18. .BagFull
  19. ld hl, TM29NoRoomText
  20. call PrintText
  21. jr .asm_fe4e1
  22. .asm_9e72b
  23. ld hl, TM29ExplanationText
  24. call PrintText
  25. .asm_fe4e1
  26. jp TextScriptEnd
  27. TM29PreReceiveText:
  28. TX_FAR _TM29PreReceiveText
  29. db "@"
  30. ReceivedTM29Text:
  31. TX_FAR _ReceivedTM29Text
  32. TX_SFX_ITEM_1
  33. db "@"
  34. TM29ExplanationText:
  35. TX_FAR _TM29ExplanationText
  36. db "@"
  37. TM29NoRoomText:
  38. TX_FAR _TM29NoRoomText
  39. db "@"