safarizonesecrethouse.asm 790 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. SafariZoneSecretHouseScript:
  2. jp EnableAutoTextBoxDrawing
  3. SafariZoneSecretHouseTextPointers:
  4. dw SafariZoneSecretHouseText1
  5. SafariZoneSecretHouseText1:
  6. TX_ASM
  7. CheckEvent EVENT_GOT_HM03
  8. jr nz, .asm_20a9b
  9. ld hl, SafariZoneSecretHouseText_4a350
  10. call PrintText
  11. lb bc, HM_03, 1
  12. call GiveItem
  13. jr nc, .BagFull
  14. ld hl, ReceivedHM03Text
  15. call PrintText
  16. SetEvent EVENT_GOT_HM03
  17. jr .asm_8f1fc
  18. .BagFull
  19. ld hl, HM03NoRoomText
  20. call PrintText
  21. jr .asm_8f1fc
  22. .asm_20a9b
  23. ld hl, HM03ExplanationText
  24. call PrintText
  25. .asm_8f1fc
  26. jp TextScriptEnd
  27. SafariZoneSecretHouseText_4a350:
  28. TX_FAR _SecretHouseText_4a350
  29. db "@"
  30. ReceivedHM03Text:
  31. TX_FAR _ReceivedHM03Text
  32. TX_SFX_ITEM_1
  33. db "@"
  34. HM03ExplanationText:
  35. TX_FAR _HM03ExplanationText
  36. db "@"
  37. HM03NoRoomText:
  38. TX_FAR _HM03NoRoomText
  39. db "@"