- 21
- Posts
- 7
- Years
- Seen Nov 3, 2021
I'm trying to add new TMs like this:
src/data/items.h
"I add the new item (TM51) directly under the entry for TM50"
[ITEM_TM51_OVERHEAT] =
{
.name = _("TM51"),
.itemId = ITEM_TM51_OVERHEAT,
.price = 0,
.description = sTM51Desc,
.importance = 1,
.pocket = POCKET_TM_HM,
.type = 1,
.fieldUseFunc = ItemUseOutOfBattle_TMHM,
.secondaryId = 0,
},
src/data/party_menu.h
"I add the move to the TM/HM list in party_menu.h"
static const u16 sTMHMMoves[] =
{
...
MOVE_SNATCH,
MOVE_OVERHEAT,
MOVE_OVERHEAT,
MOVE_CUT,
MOVE_FLY,
...
}
include/constants/items.h
"I change the number of TMs from 50 to 51"
...
#define NUM_TECHNICAL_MACHINES 51
#define NUM_HIDDEN_MACHINES 8
...
src/data/texyt/item_descriptions.h
"I'm adding TM51s item description""
...
static const u8 sTM50Desc[] = _(
"Enables full-power\n"
"attack, but sharply\n"
"lowers SP. ATK.");
static const u8 sTM51Desc[] = _(
"Enables full-power\n"
"attack, but sharply\n"
"lowers SP. ATK.");
static const u8 sHM01Desc[] = _(
"Attacks the foe\n"
"with sharp blades\n"
"or claws.");
...
Everytime I do that though it doesn't work and I get all kinds of error messages when compiling...
The TMs 50 to 100 are already defined in include/constants/items.h by the item_expansion...
I just don't get how to implement them into the game.
I'd really appreciate the help!
src/data/items.h
"I add the new item (TM51) directly under the entry for TM50"
[ITEM_TM51_OVERHEAT] =
{
.name = _("TM51"),
.itemId = ITEM_TM51_OVERHEAT,
.price = 0,
.description = sTM51Desc,
.importance = 1,
.pocket = POCKET_TM_HM,
.type = 1,
.fieldUseFunc = ItemUseOutOfBattle_TMHM,
.secondaryId = 0,
},
src/data/party_menu.h
"I add the move to the TM/HM list in party_menu.h"
static const u16 sTMHMMoves[] =
{
...
MOVE_SNATCH,
MOVE_OVERHEAT,
MOVE_OVERHEAT,
MOVE_CUT,
MOVE_FLY,
...
}
include/constants/items.h
"I change the number of TMs from 50 to 51"
...
#define NUM_TECHNICAL_MACHINES 51
#define NUM_HIDDEN_MACHINES 8
...
src/data/texyt/item_descriptions.h
"I'm adding TM51s item description""
...
static const u8 sTM50Desc[] = _(
"Enables full-power\n"
"attack, but sharply\n"
"lowers SP. ATK.");
static const u8 sTM51Desc[] = _(
"Enables full-power\n"
"attack, but sharply\n"
"lowers SP. ATK.");
static const u8 sHM01Desc[] = _(
"Attacks the foe\n"
"with sharp blades\n"
"or claws.");
...
Everytime I do that though it doesn't work and I get all kinds of error messages when compiling...
The TMs 50 to 100 are already defined in include/constants/items.h by the item_expansion...
I just don't get how to implement them into the game.
I'd really appreciate the help!