Advertiser Content
Seen 4 Weeks Ago
Posted July 27th, 2019
1 posts
3 Years
Hello, I have been trying to figure something out for days and have yet to find a solution either by myself or in the forums.

I am trying to get the Master Trainer system from the Let's GO games to work in essentials, but I am having difficulties.

The first hurdle is figuring out how to check for the same pokemon in the party. So far I have come up with using $Trainer.pokemonParty[0].species==PBSpecies::BLAZIKEN and doing it specifically for each Master Trainer, but that seems tedious, and I think it would be simpler if I could have a variable with a number for the kind of pokemon, and it checks if a pokemon in the party matches that number. Then I can change just the variable instead of 6 different scripts each time.

The second, and biggest hurdle, is that I cannot for the life of me find a way to have the player choose their pokemon, Blaziken in this case, and then remove all other party members, storing in a "game_variables" until the battle it done so I can give them back.

If anyone can help me with these problems, it would be greatly appreciated.
Male
Unova
Online now
Posted 1 Week Ago
114 posts
11.2 Years
It is funny how Thundga released a video on deleting Pokemon from the players party the same day you asked about removing Pokemon from your team.
link: https://www.youtube.com/watch?v=nfRuA33Wt2I

A concept you would mess around with is to use the for loop that Thundga uses on his first event to find the Pokemon of choice, this this case a Blaziken and store that Pokemon in a variable then remove the Blaziken from the party. Then make another variable to store the rest of $Trainer.pokemonparty, use the delete command to completely remove all the Pokemon from the players party, re-add the Blaziken to the players party by calling the first variable you made. At this point you should only have the Blaziken in your party for the 1v1 match, then finish the event win or lose to add the remaining Pokemon back to the party by calling the second variable.... Then clear both variables to prevent any form of Pokemon duplication later on.
Advertiser Content