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

[Scripting Question] Forcing the player to turn on the "Set" Option

mhana300

Pokemon Guardians Developer
22
Posts
7
Years
  • Age 24
  • Seen Jan 20, 2017
The title pretty much explains it. My game has small tournaments so I want to make it so that the player may not have the "Switch" option on during those series of battles.
 
1,680
Posts
8
Years
  • Age 24
  • Seen today
Well you can set the battle style with $PokemonSystem.battlestyle. 0 is Switch, and 1 is Set.
You might want to set a variable to the value of this variable so you can restore it afterwards. I have an example below.
Code:
$game_variables[[I]varNum[/I]] = $PokemonSystem.battlestyle
 
Back
Top