Calculating an attribute name

emphyrioemphyrio Member Posts: 2
edited November -1 in Working with GS (Mac)
Hello everybody,
Is there a way to calculate an attribute name ?
For example, suppose I have three game attributes called Position1, Position2 and PositionNumber.
Then, I would like to be able to do something like this :

game.PositionNumber = 1
game.Position..game.PositionNumber = something

to set the value of attribut game.Position1.

Is it possible ?
Thanks
Emphyrio
Sign In or Register to comment.