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.
It would work, but the game shouldn't be changing the player's options for them. You'd need to revert it to whatever it was previously once the battle is over.
It'd be simpler just to make the battle style Set by overriding it if a particular game switch is on. Find where the value of $PokemonSystem.battlestyle is used in battle, and add appropriate code.