Using An Attribute Like an Index

TWEAmazingAppsTWEAmazingApps Member Posts: 219
edited May 2012 in Working with GS (Mac)
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

  • tatiangtatiang Posts: 11,949
    edited May 2012 Accepted Answer
    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

Sign In or Register to comment.