This is a really cool script! I actually have a couple questions about it, maybe the solutions are simple, maybe they aren't.
Is it possible to, after a certain point in time in the game (After a switch is set?) Combine the trainers PC Boxes or Bags? Or, if that's not possible, would it be...