- 2
- Posts
- 3
- Years
- Seen Jan 20, 2022
Wanna mess around with making a game that exclusively uses Double Battles, just 'cause I really like Double Battles. However, whenever the player goes into a fight with one able Pokemon, Pokemon Essentials automatically turns it into a 1v1.
It technically isn't an issue with one Pokemon in your party, since I could easily just set up some pre-battle logic to set it to a 1v2 instead. The problems begin to arise when dealing with a party where all but one Pokemon is fainted. If you Revive an extra party member, it doesn't turn it into a 2v2.
In this specific scenario, locking players out of fights if they only have one able Pokemon would be a terrible solution; in a game centered entirely around Doubles, not only would it be an enormous inconvenience to have to go back and heal when you have only one active Pokemon remaning... but, if the game were like Colosseum and you could only gain new Pokemon from trainer battles*, then the player could easily accidentally softlock themself just by releasing all but one of their Pokemon.
*My plan for the game was for it to be like Colosseum, where you can only gain new Pokemon from trainer battles
I've tried looking through Essentials' code myself to try and figure out how to do it myself, but I have no experience with Ruby and am basically a hobbyist with the coding languages that I do know. Between that and the sparse notation in that section of the code, attempting to do it myself without at the very least a point in the right direction seems to be a lost cause.
I've also tried searching the internet to see if anybody else wanted a solution to this problem, and most of the threads I've checked are either far too old or completely unresolved. One on this very site literally ends with somebody telling the OP to wait for the 1v2 to be added in a future revision..... which, clearly hasn't resolved the issue as all, seeing as this post exists now!
Which leaves me with one recourse - requesting help from people who are significantly better at reading than me.
So, uh.
Help, please? 😭
It technically isn't an issue with one Pokemon in your party, since I could easily just set up some pre-battle logic to set it to a 1v2 instead. The problems begin to arise when dealing with a party where all but one Pokemon is fainted. If you Revive an extra party member, it doesn't turn it into a 2v2.
In this specific scenario, locking players out of fights if they only have one able Pokemon would be a terrible solution; in a game centered entirely around Doubles, not only would it be an enormous inconvenience to have to go back and heal when you have only one active Pokemon remaning... but, if the game were like Colosseum and you could only gain new Pokemon from trainer battles*, then the player could easily accidentally softlock themself just by releasing all but one of their Pokemon.
*My plan for the game was for it to be like Colosseum, where you can only gain new Pokemon from trainer battles
I've tried looking through Essentials' code myself to try and figure out how to do it myself, but I have no experience with Ruby and am basically a hobbyist with the coding languages that I do know. Between that and the sparse notation in that section of the code, attempting to do it myself without at the very least a point in the right direction seems to be a lost cause.
I've also tried searching the internet to see if anybody else wanted a solution to this problem, and most of the threads I've checked are either far too old or completely unresolved. One on this very site literally ends with somebody telling the OP to wait for the 1v2 to be added in a future revision..... which, clearly hasn't resolved the issue as all, seeing as this post exists now!
Which leaves me with one recourse - requesting help from people who are significantly better at reading than me.
So, uh.
Help, please? 😭