route15gateupstairs.asm 939 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. Route15GateUpstairsScript:
  2. jp DisableAutoTextBoxDrawing
  3. Route15GateUpstairsTextPointers:
  4. dw Route15GateUpstairsText1
  5. dw Route15GateUpstairsText2
  6. Route15GateUpstairsText1:
  7. TX_ASM
  8. CheckEvent EVENT_GOT_EXP_ALL
  9. jr nz, .asm_49683
  10. ld a, 50 ; pokemon needed
  11. ld [hOaksAideRequirement], a
  12. ld a, EXP_ALL ; oak's aide reward
  13. ld [hOaksAideRewardItem], a
  14. ld [wd11e], a
  15. call GetItemName
  16. ld hl, wcd6d
  17. ld de, wOaksAideRewardItemName
  18. ld bc, ITEM_NAME_LENGTH
  19. call CopyData
  20. predef OaksAideScript
  21. ld a, [hOaksAideResult]
  22. cp $1
  23. jr nz, .asm_49689
  24. SetEvent EVENT_GOT_EXP_ALL
  25. .asm_49683
  26. ld hl, Route15GateUpstairsText_4968c
  27. call PrintText
  28. .asm_49689
  29. jp TextScriptEnd
  30. Route15GateUpstairsText_4968c:
  31. TX_FAR _Route15GateUpstairsText_4968c
  32. db "@"
  33. Route15GateUpstairsText2:
  34. TX_ASM
  35. ld hl, Route15GateUpstairsText_49698
  36. jp GateUpstairsScript_PrintIfFacingUp
  37. Route15GateUpstairsText_49698:
  38. TX_FAR _Route15GateUpstairsText_49698
  39. db "@"