• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Apologies if you've had troubles connecting to the site, you may need a VPN to access it. Staff are also facing issues connecting, so if it's urgent please message Cat on-site or through Discord directly.
  • Hey Guest, staff applications are open! If you are interested in becoming a forum staff member and/or Discord staff member, please apply through this Google Form before April 2! You can also message Cat with any questions.
Resource icon

v21.1 Random Team Generator 1.0.0

This resource pertains to version 21.1 of Pokémon Essentials.
Pokémon Essentials Version
v21.1 ✅
This is a simple plugin that starts a battle against a team that was randomly picked from a list of pre-defined Pokémon.
The opponent name, class and other properties are hardcoded but it can easily be replaced by parameters as well to make it more dynamic.

How to use:
In your event commands simply call this script "pbRandomTeamGenerator(3)" -> 3 being the opponent team size.

It will pick 3 unique Pokémon from the list defined in the plugin and start a battle against it.
Right now it's possible to change some properties of the Pokémon such as level, ability, moves, held item and nature, but it should be possible to change other properties following the same logic.

In Inritum we are using this plugin to power an EV/XP training feature, to generate different battles every time we use it instead of just beating the crap out of audinos.

If you don't want to use plugins, it's a single method that can be added elsewhere in your code.
Credits
Robonox for the idea where to use this mechanism
Lunardoof from Thundaga's server for helping me how to create a trainer programatically.
Author
BloodyNeonz
Downloads
190
Views
787
First release
Last update

Ratings

0.00 star(s) 0 ratings
Back
Top