- 13
- Posts
- 5
- Years
- Seen Jun 22, 2022
I'm using 17.2.
I want players to be able to choose whether the game will focus on single or double battles, so I tinkered with the script and found what I thought was a solution, but it's causing problems. I'll openly admit I'm not very experienced with scripting (of any kind), so bear with me.
I named switch 66 DoubleBattle. In PField_Field, I changed line 381 to
Thanks for your help.
I want players to be able to choose whether the game will focus on single or double battles, so I tinkered with the script and found what I thought was a solution, but it's causing problems. I'll openly admit I'm not very experienced with scripting (of any kind), so bear with me.
I named switch 66 DoubleBattle. In PField_Field, I changed line 381 to
I thought that this would check to see if Switch 66 was on, and if so, make wild battles double. Instead, whenever I encounter a wild Pokemon, it turns Switch 66 on and runs a double battle. I don't want it to turn the switch on, I just want it to check if it is on.if !$PokemonTemp.forceSingleBattle && ($PokemonGlobal.partner || ($Trainer.ablePokemonCount>1 && $game_switches[66]=true) ||
Thanks for your help.