Is there a command or way to check how many pokemon the player has seen or caught in their national dex for fire red? Like the aids in game who give you rewards for catching a certain number of kanto pokemon except for national dex.
Just go to the professor oak script in amap and click him... should pop up his script and just search where the command is for it to find it.
A quick look inside the script I can find a text related to the function:
Hey look the text is apart of an offset that is pulled from somewhere... lets look for what calls for 0x1A747E
hmm.. well then. there we go. In that jumbo of a mess is what is used to count how many pokemon you've caught.
this part is a msg that shows the buffer how many pokemon you've caught vs how much you've seen. "= The amount of progress you've made\non your POKéDEX is:\p[buffer1] POKéMON seen and\n[buffer2] POKéMON owned.\p\c\h06ÁPROF. OAK's rating:"
Now looking at the script:
setvar 0x8004 0x1F
special 0x17E
special 0x17D
setvar 0x8004 0x0
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
copyvar 0x800A LASTRESULT
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A6CA3 MSG_KEEPOPEN '"The amount of progress you've made..."
checkflag 0x2FF
if 0x0 call 0x81A746D
call 0x81A73B6
compare 0x800A 0x0
if 0x1 goto 0x81A748F
setvar 0x8004 0x1
special2 LASTRESULT 0xD4
copyvar 0x8008 0x8005
copyvar 0x8009 0x8006
buffernumber 0x0 0x8008
buffernumber 0x1 0x8009
msgbox 0x81A71AA MSG_KEEPOPEN '"And your NATIONAL POKéDEX is:\p[bu..."
So right before our messages tell us the exact number we notice that there are two different times it says the numbers ... two sections show that they are the same however the only difference is if setvar 0x8004 is 0x0 or 0x1. Not exactly sure on where it is in here that the function is for determining how much pokemon seen/caught, but you can't go wrong with exploring and experimenting and see what actually causes it. Only way you're going to learn is to research into it like I did, and now you have to play with it to get it to work and try to understand it. If you don't understand the commands, google them or go to Help -> Command Help in XSE.
https://www.pokecommunity.com/threads/184273 a good start to understanding the special and special2 commands