Calculating an attribute name
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
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