Build an Attribute Name based on Two Attributes
millerbrother1
Member Posts: 108
Is it possible to have an AttributeName recognized in your Rules by combining two Attributes?
For example.
Create a Scene Attribute called "Scene Number" which can hold an integer like "1"
Then create multiple Game Attributes called "HiScore1", "HiScore2" etc.
The idea here would be to have logic that can be reused to save HiScore to the Game Attribute of "HiScore" + the value of "Scene Number".
If you were on Scene 1 this would be saved to "HiScore"+"1" = "HiScore1" when combined.
This would allow me to make a change in one place when the scene loads and know that the logic throughout the scene would follow the scene logic that matches that number.
For example.
Create a Scene Attribute called "Scene Number" which can hold an integer like "1"
Then create multiple Game Attributes called "HiScore1", "HiScore2" etc.
The idea here would be to have logic that can be reused to save HiScore to the Game Attribute of "HiScore" + the value of "Scene Number".
If you were on Scene 1 this would be saved to "HiScore"+"1" = "HiScore1" when combined.
This would allow me to make a change in one place when the scene loads and know that the logic throughout the scene would follow the scene logic that matches that number.
Comments
Is it possible or should I find another way?
Or possibly a attribute value that is a combination of two attribute values. IE: Answer is A, level is 1 ... Result is A1.