updated the OP
0.17 is here, trainers are implemented, this is youngster joey, his script is simple.
in the same folder is 001.trainer
Code:
64
Youngster
Joey
OK let's do this!~My Rattata is top~percentage!
But it is top percentage...
14
1|19,4
2|
3|
4|
5|
6|
first line is money for winning. then trainer class, then name, then start text before battle, then what he says on defeat. if you talk to him again he says the defeat line. after that is his skin, 14.xnb, the next 6 lines are of course the party. he has 1 pokemon, a level 4 rattata.
It leaves a registry entry in your save, for this trainer it is "trainer_001". if you have that in your registry he is flagged as defeated, to reset him you can delete the registry from the save. it appears to be no different from other registry entries so you could probably reset him by unregistering that entry in a script