Relocated the note about pokedex.h because the article didn't look too nice.

LOuroboros 2022-07-30 10:15:54 -03:00
parent 819893508d
commit ea0021c060
1 changed files with 8 additions and 8 deletions

@ -113,10 +113,6 @@ These commands will check the state of either the Seen or the Caught Pokédex fl
2. Next, our special functions. You can add them to any .c file, although since these are meant to be used from the overworld, I suggest `src/field_specials.c` specifically.
Keep in mind that in order to access `FLAG_GET_SEEN` and `FLAG_GET_CAUGHT`, you must use the `#include` directive to read the contents of the `include/pokedex.h`.
In other words, you need to add a `#include "pokedex.h"` to the list of headers at the top of the file.
```c
bool8 GetSeenMon(void)
{
@ -129,6 +125,10 @@ bool8 GetCaughtMon(void)
}
```
Keep in mind that in order to access `FLAG_GET_SEEN` and `FLAG_GET_CAUGHT`, you must use the `#include` directive to read the contents of the `include/pokedex.h`.
In other words, you need to add a `#include "pokedex.h"` to the list of headers at the top of the file.
To use them, simply type either `getseenmon` or `getcaughtmon` in your script, followed by the species ID. For example, `getcaughtmon SPECIES_MAGIKARP`.
The result *(either `TRUE` or `FALSE`)* will be stored in `VAR_RESULT`.
@ -157,10 +157,6 @@ These commands will set either the Seen or the Caught Pokédex flags of a specie
2. Next, our special functions. You can add them to any .c file, although since these are meant to be used from the overworld, I suggest `src/field_specials.c` specifically.
Keep in mind that in order to access `FLAG_GET_SEEN` and `FLAG_GET_CAUGHT`, you must use the `#include` directive to read the contents of the `include/pokedex.h`.
In other words, you need to add a `#include "pokedex.h"` to the list of headers at the top of the file.
```c
bool8 SetSeenMon(void)
{
@ -174,4 +170,8 @@ bool8 SetCaughtMon(void)
}
```
Keep in mind that in order to access `FLAG_GET_SEEN` and `FLAG_GET_CAUGHT`, you must use the `#include` directive to read the contents of the `include/pokedex.h`.
In other words, you need to add a `#include "pokedex.h"` to the list of headers at the top of the file.
To use them, simply type either `setseenmon` or `setcaughtmon` in your script, followed by the species ID. For example, `setcaughtmon SPECIES_MAGIKARP`.