• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[HELP] pokefirered Trying to Set Up Fly without Teaching It

  • 37
    Posts
    1
    Years
    • Seen Apr 6, 2025
    I've set up every HM field move so it can be done without a Pokémon knowing it. However, it doesn't work for Fly or Flash. Flash is an easy enough workaround, but Fly seems to be picky.

    I tried using the method posted here. Here's how it looks in my file (plus some extra for context):
    C:
                if (GetMonData(&mons[slotId], i + MON_DATA_MOVE1) == sFieldMoves[j])
                {
    //                AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, j + CURSOR_OPTION_FIELD_MOVES);
    //                break;
    [B]                if (sFieldMoves[j] != MOVE_FLY) // If Mon already knows FLY, prevent it from being added to action list
                        AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, j + CURSOR_OPTION_FIELD_MOVES);
                        break;
                }
            }
        }
        if (sPartyMenuInternal->numActions < 5 ) // If Mon action list consists of < 4 moves, add FLY to action list
            AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, 5 + CURSOR_OPTION_FIELD_MOVES);[/B]
        if (GetMonData(&mons[1], MON_DATA_SPECIES) != SPECIES_NONE)
            AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, CURSOR_OPTION_SWITCH);
        if (ItemIsMail(GetMonData(&mons[slotId], MON_DATA_HELD_ITEM)))
            AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, CURSOR_OPTION_MAIL);
    I changed MENU_FIELD_MOVES to CURSOR_OPTION_FIELD_MOVES because the former doesn't seem to exist in pokefirered and the latter seems to be the equivalent.

    The problem is, it ends up adding Rock Smash to every Pokémon's party menu. I'm hoping changing whatever is causing it to Fly is fairly simple, I'm just not sure what to change.
     
    I've set up every HM field move so it can be done without a Pokémon knowing it. However, it doesn't work for Fly or Flash. Flash is an easy enough workaround, but Fly seems to be picky.

    I tried using the method posted here. Here's how it looks in my file (plus some extra for context):
    C:
                if (GetMonData(&mons[slotId], i + MON_DATA_MOVE1) == sFieldMoves[j])
                {
    //                AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, j + CURSOR_OPTION_FIELD_MOVES);
    //                break;
    [B]                if (sFieldMoves[j] != MOVE_FLY) // If Mon already knows FLY, prevent it from being added to action list
                        AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, j + CURSOR_OPTION_FIELD_MOVES);
                        break;
                }
            }
        }
        if (sPartyMenuInternal->numActions < 5 ) // If Mon action list consists of < 4 moves, add FLY to action list
            AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, 5 + CURSOR_OPTION_FIELD_MOVES);[/B]
        if (GetMonData(&mons[1], MON_DATA_SPECIES) != SPECIES_NONE)
            AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, CURSOR_OPTION_SWITCH);
        if (ItemIsMail(GetMonData(&mons[slotId], MON_DATA_HELD_ITEM)))
            AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, CURSOR_OPTION_MAIL);
    I changed MENU_FIELD_MOVES to CURSOR_OPTION_FIELD_MOVES because the former doesn't seem to exist in pokefirered and the latter seems to be the equivalent.

    The problem is, it ends up adding Rock Smash to every Pokémon's party menu. I'm hoping changing whatever is causing it to Fly is fairly simple, I'm just not sure what to change.
    In your code the line
    Code:
    AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, 5 + CURSOR_OPTION_FIELD_MOVES);
    is adding Rock smash to the menu. The 5 refers to the value at index 5 in sFieldMoves. You should change the number to 2 to add Fly instead.
     
    In your code the line
    Code:
    AppendToList(sPartyMenuInternal->actions, &sPartyMenuInternal->numActions, 5 + CURSOR_OPTION_FIELD_MOVES);
    is adding Rock smash to the menu. The 5 refers to the value at index 5 in sFieldMoves. You should change the number to 2 to add Fly instead.
    Huh... Is this different in pokeemerald? That was how the code was written when I copied it.

    [PokeCommunity.com] [HELP] pokefirered Trying to Set Up Fly without Teaching It
     
    Back
    Top