- 23
- Posts
- 7
- Years
- Seen Nov 28, 2023
Dear all,
I'm trying to make a move tutor that checks egg moves in addition to TM and tutor moves when determining if a Pokémon is able to learn a move. Example: Bulbasaur has Skull Bash as an egg move. If I made a tutor that teaches Skull Bash, I would like Bulbasaur to learn it.
I have found and modified the function CanMonLearnTMTutor in src/party_menu.c, but I am unable to include the array gEggMoves at src/data/pokemon/egg_moves.h. Upon compiling, if I try to include daycare.h and/or data/pokemon/egg_moves.h in party_menu.c, I get either an undeclared error or multiple definitions error for gEggMoves. As the include fails one way or another, I don't have very good understanding of how I could access the function GetEggMoves in src/daycare.c and gEggMoves in src/data/pokemon/egg_moves.h.
Any help would be greatly appreciated. If needed, I can post the error messages of each situation. Thank you in advance!
I'm trying to make a move tutor that checks egg moves in addition to TM and tutor moves when determining if a Pokémon is able to learn a move. Example: Bulbasaur has Skull Bash as an egg move. If I made a tutor that teaches Skull Bash, I would like Bulbasaur to learn it.
I have found and modified the function CanMonLearnTMTutor in src/party_menu.c, but I am unable to include the array gEggMoves at src/data/pokemon/egg_moves.h. Upon compiling, if I try to include daycare.h and/or data/pokemon/egg_moves.h in party_menu.c, I get either an undeclared error or multiple definitions error for gEggMoves. As the include fails one way or another, I don't have very good understanding of how I could access the function GetEggMoves in src/daycare.c and gEggMoves in src/data/pokemon/egg_moves.h.
Any help would be greatly appreciated. If needed, I can post the error messages of each situation. Thank you in advance!