universal-pokemon-randomizer-zx icon indicating copy to clipboard operation
universal-pokemon-randomizer-zx copied to clipboard

[Help] Is there a way to enable double battles on Gen 4 games without randomize the trainer's Pokémon?

Open dvpmedeiros opened this issue 1 year ago • 3 comments

Is there a way to enable double battles on Gen 4 games without randomize the trainer's Pokémon?

It seems like the toggle for double battles is only available if I randomize the trainers. I understand we technically can't fight a 2 vs 1 if the foe only has 1 Pokémon, for example, but still, is there any way to enable double battles without randomizing?

Or at very least, with the minimum randomizing as possible, if it makes any sense.

dvpmedeiros avatar Mar 18 '23 01:03 dvpmedeiros

I was asking myself the same question, so I recently commented out the lines in the code where the Gen7RomHandler and the Randomizer itself do the isDoubleBattleMode check, so double battle mode is always enabled, without having to ramdoize the Trainers.

I tested it with a Ultra Moon ROM and it works fine. It just duplicates the pokemon if a trainer has only one. I don't know whether that would work for other Gens as well. But I assume so. So afaict it's just a matter of making the setting available in the GUI without having to randomize the trainers.

dweipert-3138720606 avatar Jun 15 '23 13:06 dweipert-3138720606

I'd love to see this as an option as well. I enjoy doubles way more than singles, but sometimes I want doubles with the original mons instead of new ones.

I may try doing this myself following @dweipert-3138720606's comment, but I'd rather see official support for this.

EDIT: Yes, it worked as far as I can tell on a HeartGold ROM. Change a couple lines related to checking for doubles mode, build a JAR from NewRandomizerGUI.main in IntelliJ, and you're good to go :slightly_smiling_face:

patrickholley avatar Sep 06 '23 02:09 patrickholley

Just did this too by doing the same thing, thanks for the solve @dweipert-3138720606! Don't know anything about JARs, but thanks @patrickholley for including all of the necessary info to figure out building one from the modified source code with a free trial of IntelliJ and a couple of online guides!

bmediavilla avatar May 20 '24 15:05 bmediavilla