Changing the #define lines:
Code:
#define TMHM_LEARNSET(moves, moves2) {(u32)(moves), ((u64)(moves) >> 32), (u32)(moves2), (u64)(moves2) >> 32}
#define TMHM(tmhm) ((u64)1 << (ITEM_##tmhm - ITEM_TM00_CONFIDE)) // item id 482
#define TMHM2(tmhm) ((u64)1 << (ITEM_##tmhm - ITEM_TM64_EXPLOSION)) // item id 546
Having in mind that confide is TM number 100 but i changed it to be the first one in the tm's list because i just didn't want to mess with the number orderings in the tm bag pocket, as it bugged at number 100. If you changed nothing it should be ITEM_TM01_FOCUS_PUNCH
Secondly, change
Code:
const u32 gTMHMLearnsets[][2] =
to
Code:
const u32 gTMHMLearnsets[][4] =
and then the important part, the learnsets go like this:
Code:
{
[SPECIES_NONE] = TMHM_LEARNSET(0, 0),
[SPECIES_BULBASAUR] = TMHM_LEARNSET(TMHM(TM00_CONFIDE)
| TMHM(TM01_WORK_UP)
| TMHM(TM06_TOXIC)
| TMHM(TM09_VENOSHOCK)
| TMHM(TM10_HIDDEN_POWER)
| TMHM(TM11_SUNNY_DAY)
| TMHM(TM16_LIGHT_SCREEN)
| TMHM(TM17_PROTECT)
| TMHM(TM20_SAFEGUARD)
| TMHM(TM21_FRUSTRATION)
| TMHM(TM27_RETURN)
| TMHM(TM32_DOUBLE_TEAM)
| TMHM(TM36_SLUDGE_BOMB)
| TMHM(TM42_FACADE)
| TMHM(TM44_REST)
| TMHM(TM45_ATTRACT)
| TMHM(TM48_ROUND)
| TMHM(TM49_ECHOED_VOICE)
| TMHM(TM53_ENERGY_BALL),
TMHM2(TM75_SWORDS_DANCE)
| TMHM2(TM86_GRASS_KNOT)
| TMHM2(TM87_SWAGGER)
| TMHM2(TM88_SLEEP_TALK)
| TMHM2(TM90_SUBSTITUTE)
| TMHM2(TM96_NATURE_POWER)
| TMHM2(HM01_CUT)
| TMHM2(HM04_STRENGTH)
| TMHM2(HM05_FLASH)
| TMHM2(HM06_ROCK_SMASH)),
where the first 64 tm's (in my case TM00 to TM63) go with TMHM where the first 0 in TMHM_LEARNSET(0, 0) would be (confide to energy ball in the code above), and the rest of tm's and hm's go with TMHM2, where the second 0 should be (swords dance to rock smash in the code above).