• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

[Solved][Pokeemerald-expansion v1.9.0] Multi battle crashes the game.

  • 11
    Posts
    1
    Years
    • Seen Sep 28, 2024
    Im trying to implement a multi battle but for some reason the partner trainer party doesn't display and when the battle starts the game just crashes with a "jump to invalid address" error message. This is the code i have for the multi battle:

    MauvilleCity_EventScript_WallyTagBattle::
    multi_fixed_2_vs_1 TRAINER_CALVIN_1, MauvilleCity_Text_TrainerDefeated, TRAINER_WALLY_MAUVILLE
    specialvar VAR_RESULT, GetBattleOutcome
    compare VAR_RESULT, B_OUTCOME_LOST
    goto_if_ne MauvilleCity_EventScript_PostBattle
    end

    I don't know whats wrong with it, TRAINER_WALLY_MAUVILLE is defined and has a party of less than 3 mons.
     
    I have found the issue, basically partner trainers are defined on battle_partner.h instead of trainers.h and the parties are stored on battle_partners.party.
     
    Back
    Top