Hello, welcome to the community.
I'm not sure I understand what you want to do. I have two questions to make things a bit more clear, if you don't mind:
Why do you want to add the numbers to global variables if you've already stored them in an array? Why not just refer to the array when you need the number?
And what is it you're looking to place based on coordinates? Do you mean you want to place sprites based on values in the variables/array?
If you could make your problem a bit more clear, I'm sure I (or someone else) can help you out.