go to the game folder, then to the pbs files, then go and add the information (don't type the word type, or name, just put them in, and make sure the type is in caps, also, put the pokemon in caps. and yes, that is the number of pokemon.
lastly, the battles don't work on just command lines, people still think it does because they never read on. if you read in the notes, there is a part that says "Behind the Scenes", it tells you of some stuff that you also have to put in the trainer event.:
Code:
[I]If you inspect the generated event commands, you will see that Trainer events normally consist of two event pages. The first has an Event Touch trigger and has the following structure:[/I]
[I]Text: I challenge you![/I]
[I]Conditional Branch: Script: pbTrainerBattle(PBTrainers::LEADER_Roxanne,"Roxanne",_I("Excellent. You have earned the Stone Badge."))[/I]
[I] -- here you can add event commands to be run when the player wins, but this is not necessary[/I]
[I] Script: $Trainer.badges[0]=true[/I]
[I] Text: \PN received the Stone Badge![/I]
[I] Text: The Stone Badge proves you can succeed in the Pokemon League.[/I]
[I] Control Self Switch: A =ON[/I]
[I]Branch End[/I]
[I]Notice the parameters to pbTrainerBattle. Here is a list of the parameters:[/I]
[I]Parameter 1: Trainer type. [/I]
[I]Parameter 2: Trainer's name. The Trainer type and Trainer name must be found in the Trainer data file. [/I]
[I]Parameter 3: Dialogue that the Trainer says when the player wins. This parameter should be wrapped in _I() (with a capital i), to support localization of the text. [/I]
[I]Parameter 4: Optional. Whether the battle is a double battle. The default is false. If the battle is a double battle, an exception will be raised if the player has only one Pokemon, so this case must be checked before the battle begins. For an example, see the two people to the left of the Pokemon Center's PC. [/I]
[I]Parameter 5: Optional. A number to distinguish Trainers with the same Trainer type and Trainer name. Specify 0 if there is only one such Trainer. [/I]
[I]Parameter 6: Optional. If true, the game will continue where the battle began even if the player loses the battle. If the player loses, the option "Set handling when conditions do not apply" should be active for the conditional branch and commands to run when the player loses should be placed in the Else part of that branch. [/I]
hope that helps