I think you misunderstood what I'm trying to do THobson, although getting the living loons from a trigger list will be a much better idea than adding them to an array via the exec command
What I'm trying to do is check how many vehicles are in each group, and from there add a rating to those vehicles so the script will then decide the actions of each group and that of the enemy groups depending on squad ratings, positions and ofcourse, the overall count.. I'll also be factoring in variables such as defined defensive positions and perhaps unit losses (morale).
Making a list of all groups isn't the problem,. I want to create an array of all the vehicles in a group, therefore I want a different array for each group. Which means dynamicly naming the arrays since I do not know which groups will have vehicles, and how many groups there will be.
If you're wondering why the hell I'm doing this, I'm just seeing how far I can go with my knowledge of the scripting command as far as AI control goes.