• 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?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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.

Checking if you're in a battle

  • 772
    Posts
    13
    Years
    • UK
    • Seen May 22, 2024
    Is there a way to check if your currently in a battle, i have the pokemon following script installed and when pressing the alt key (i changed it from ctrl) during a battle i get an error message, works fine in the field

    The code that calls it is
    Code:
    if trigger?(Input::ALT) # Added Toggle Following Pokemon
          pbToggleFollowingPokemon
        end
     
    Is there a way to check if your currently in a battle, i have the pokemon following script installed and when pressing the alt key (i changed it from ctrl) during a battle i get an error message, works fine in the field

    The code that calls it is
    Code:
    if trigger?(Input::ALT) # Added Toggle Following Pokemon
          pbToggleFollowingPokemon
        end

    If you put the code in the SceneMap section it should work fine.
     
    Back
    Top