• 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.

[Battle] Bank Number

Lance32497

LanceKoijer of Pokemon_Addicts
  • 792
    Posts
    10
    Years
    hello guys, I am now learning Battle Script and I encountered a tad problem.
    Bank 0 is the target and Bank 1 is the user, what if I am in a double battle?
    What is the Bank number of the player's first and second pokemon and opponent's first and second pokemon.

    I tried bank 0x2 and Bank 0x3 but nothing happened.
     
    Banks 2 and 3 are the defender's ally and the attacker's ally respectively. What commands are you using that this is not working for?
     
    Banks 2 and 3 are the defender's ally and the attacker's ally respectively. What commands are you using that this is not working for?

    Jumpifability
    I am trying to make an attack that when the user hits the target, the target's partner's Attack will decrease by one stage.

    And.. Is there a way to check whether you are in double battle?
     
    Jumpifability
    I am trying to make an attack that when the user hits the target, the target's partner's Attack will decrease by one stage.

    And.. Is there a way to check whether you are in double battle?

    Why are you checking ability for that? Looking at the code for jumpifability, I see no reason why it shouldn't be working. Maybe it's an error in your script?

    Also you can check for double battle by checking the battle flags bitfield. This is at 02022B4C in FireRed. Bit 0 is the double battle flag, so a double battle check would be something like "jumpifword 4 0x02022B4C 1 JUMPHEREIFDOUBLEBATTLE". Jumpifword mode 4 is bitwise AND so you can check if the first bit is set like that
     
    Why are you checking ability for that? Looking at the code for jumpifability, I see no reason why it shouldn't be working. Maybe it's an error in your script?

    Also you can check for double battle by checking the battle flags bitfield. This is at 02022B4C in FireRed. Bit 0 is the double battle flag, so a double battle check would be something like "jumpifword 4 0x02022B4C 1 JUMPHEREIFDOUBLEBATTLE". Jumpifword mode 4 is bitwise AND so you can check if the first bit is set like that

    ah I made a mistake, it should be, if the target's partner has an ability Blaze, Torrent or Overgrow, it's attack will be decreased. Perhaps there's something wrong in my script. Thank you for the reply.
     
    Back
    Top