save_trainer_name.asm 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. SaveTrainerName:
  2. ld hl, TrainerNamePointers
  3. ld a, [wTrainerClass]
  4. dec a
  5. ld c, a
  6. ld b, 0
  7. add hl, bc
  8. add hl, bc
  9. ld a, [hli]
  10. ld h, [hl]
  11. ld l, a
  12. ld de, wcd6d
  13. .CopyCharacter
  14. ld a, [hli]
  15. ld [de], a
  16. inc de
  17. cp "@"
  18. jr nz, .CopyCharacter
  19. ret
  20. TrainerNamePointers:
  21. ; what is the point of these?
  22. dw YoungsterName
  23. dw BugCatcherName
  24. dw LassName
  25. dw wTrainerName
  26. dw JrTrainerMName
  27. dw JrTrainerFName
  28. dw PokemaniacName
  29. dw SuperNerdName
  30. dw wTrainerName
  31. dw wTrainerName
  32. dw BurglarName
  33. dw EngineerName
  34. dw JugglerXName
  35. dw wTrainerName
  36. dw SwimmerName
  37. dw wTrainerName
  38. dw wTrainerName
  39. dw BeautyName
  40. dw wTrainerName
  41. dw RockerName
  42. dw JugglerName
  43. dw wTrainerName
  44. dw wTrainerName
  45. dw BlackbeltName
  46. dw wTrainerName
  47. dw ProfOakName
  48. dw ChiefName
  49. dw ScientistName
  50. dw wTrainerName
  51. dw RocketName
  52. dw CooltrainerMName
  53. dw CooltrainerFName
  54. dw wTrainerName
  55. dw wTrainerName
  56. dw wTrainerName
  57. dw wTrainerName
  58. dw wTrainerName
  59. dw wTrainerName
  60. dw wTrainerName
  61. dw wTrainerName
  62. dw wTrainerName
  63. dw wTrainerName
  64. dw wTrainerName
  65. dw wTrainerName
  66. dw wTrainerName
  67. dw wTrainerName
  68. dw wTrainerName
  69. YoungsterName:
  70. db "YOUNGSTER@"
  71. BugCatcherName:
  72. db "BUG CATCHER@"
  73. LassName:
  74. db "LASS@"
  75. JrTrainerMName:
  76. db "JR.TRAINER♂@"
  77. JrTrainerFName:
  78. db "JR.TRAINER♀@"
  79. PokemaniacName:
  80. db "POKéMANIAC@"
  81. SuperNerdName:
  82. db "SUPER NERD@"
  83. BurglarName:
  84. db "BURGLAR@"
  85. EngineerName:
  86. db "ENGINEER@"
  87. JugglerXName:
  88. db "JUGGLER@"
  89. SwimmerName:
  90. db "SWIMMER@"
  91. BeautyName:
  92. db "BEAUTY@"
  93. RockerName:
  94. db "ROCKER@"
  95. JugglerName:
  96. db "JUGGLER@"
  97. BlackbeltName:
  98. db "BLACKBELT@"
  99. ProfOakName:
  100. db "PROF.OAK@"
  101. ChiefName:
  102. db "CHIEF@"
  103. ScientistName:
  104. db "SCIENTIST@"
  105. RocketName:
  106. db "ROCKET@"
  107. CooltrainerMName:
  108. db "COOLTRAINER♂@"
  109. CooltrainerFName:
  110. db "COOLTRAINER♀@"