Build an Attribute Name based on Two Attributes

millerbrother1millerbrother1 Member Posts: 108
edited November -1 in Working with GS (Mac)
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.

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    I have searched the forums and a numerous templates but can't find the answer to the above issue which I am also trying to solve.

    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.
  • simo103simo103 Member, PRO Posts: 1,331
    thanks tsb .... appreciated as usual.
Sign In or Register to comment.