In this I will explain how to create a trainer for your game using the Pokemon Battle System script. Assuming that you either have the starter kit or the scripts required for the battle system to work let’s get started.
Step 1: Creating a Trainer Class
Trainer Classes are very important. They are defined in the Trainers script. The most important part is the name.
First locate the Trainers script in the script editor.
Now let’s add the Leader trainer class:
Next is the name:
Now let’s add the gender extensions. These are added to the name depending on the gender of the trainer. This is only displayed if you have Bubs Gender Function. For Leaders this is left blank.
Now were are going to add the image files for default. These don’t do anything outside of battle facilities. We will leave all of these blank.
Finally we will add the notes and close the hash. The notes can be what every you’d like them to be they do nothing by default.
Now that the trainer class it is now time to make the trainer itself.
Step 2: Making the trainer
The only things important here are the sprite Gold, and Notes. Trainers don’t usually drop items but is is there if your want to.
We will make Brock. In the name box put Brock.
Make his sprite to that of Brock. If using the ones in Pokemon for ace use the static one.
Change his Gold to 200. This makes it so his payout rate is 200 (payout = rate * level of last Pokemon in party)
Add the following notetags to the notebox
<gender: male> <intro pose> <class: 2> <trainer>
Now time to make the Pokemon.
His Pokemon are:
- Geodude Level 12
- Onix Level 14
Lets make Geodude with the moves Tackle, Defense Curl, Rock Polish, and Rock Throw. The ability is Rock Head.
Type in the note box
<trainer data> class: 74 level: 12 ability: 69 moves: 40, 118, 404, 95 [new pokemon]
Next is Onix
His moves are Tackle, Harden, Bind, and Smack Down
Use [new pokemon] to signify that what is being typed is a new Pokemon not overwriting Geodude’s data.
Type in the notebox
class: 95 level: 14 ability: 69 moves: 40, 113, 27, 479 <\trainer data> After all that it should look like this. If you have any question about this process please feel free to ask me.
When the trainer sends out a pokemon, a copy of the trainer comes out. What do I do?