• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

[Script] How do I edit the Zigzagoon at the start of Emerald's Moveset, Ivs, nature?

247
Posts
6
Years
    • Seen May 12, 2024

    I believe you'll want to look into src/battle_controllers.c, within the function SetUpBattleVarsAndBirchZigzagoon. This block of code here looks like exactly what you're looking for, although I don't know exactly what needs to be changed to accomplish what you're looking for:
    Code:
    if (gBattleTypeFlags & BATTLE_TYPE_FIRST_BATTLE)
        {
            ZeroEnemyPartyMons();
            CreateMon(&gEnemyParty[0], SPECIES_ZIGZAGOON, 2, 32, 0, 0, OT_ID_PLAYER_ID, 0);
            i = 0;
            SetMonData(&gEnemyParty[0], MON_DATA_HELD_ITEM, &i);
        }
     
    Back
    Top