Using An Attribute Like an Index
Hey GS Community! I was wondering if someone can help me, i have to tables, 1 called CUCP1.Table and the other Called CUCP2.Table and i call them via the expression editor and i was wondering is it possible have an attribute take the place of the numbers "1" or "2" in the expression editor so that it is more like CUCP[Attribute].Table or CUCP[Attribute+1].Table so i can do some advance table calling making it easier for me? Thanks in advance guys!!
Best Answer
-
tatiang Posts: 11,949
No, it's not possible to refer to tables using attributes.
If you only have two tables, you could have a rule with When game.tableChoice=1 --> [use CUCP1.Table in your rules/behaviors]; Otherwise --> [use CUCP2.Table in your rules/behaviors].New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers