Thanks for the feedback!
Am I supposed to do something like that? $opponent = PokeBattle_Trainer(John,PERSON)
And then using $opponent.party to call its party? I'm still quite noobish at scripting, so I'm sure I'm missing something.
trainer=pbLoadTrainer...
$OpponentParty = trainer[2]