It helps if you know what @ids[index] is. It's the number of a trainer type, not a trainer itself. You'd need to load that trainer's party information yourself. You should probably create another array like @ids, at the same time as @ids itself is being created (in def commands), which stores the parties of every trainer. Then use @parties[index] to fill in the 6 PokemonIconSprites.
I would define each @sprites["party#{i}"] in the def initialize, and include them in def dispose, i.e. the same as how @sprite works.
Personally, I'd just keep trainers.txt open and choose the desired opponent from there.
I would define each @sprites["party#{i}"] in the def initialize, and include them in def dispose, i.e. the same as how @sprite works.
Personally, I'd just keep trainers.txt open and choose the desired opponent from there.