How can I use a table name as a variable

BigDaveBigDave Member Posts: 2,239
edited March 2016 in Working with GS (Mac)

Maybe someone of you knows how to do this.

I got multiple levels/scenes.
Each is loading data from the related table. Example Level 1 -> Data from TB-Level1

Problem:
I got thousands of rules loading from that one Table and this would require me to go through each rule and change the table to the current level.

What am I looking for:
I want to have one attribute which I give the important table reference too.
And in all other rules it uses this attribute.

Example:

change attribute self.currentleveltable to TB-Level1

tableCellValue( self.currentleveltable,1,1)

But this does not work for text,int or index variable types
Any idea?

Comments

Sign In or Register to comment.