Table's name in TableCellValue
TheGabfather
Member Posts: 633
Hey guys, I've got another question for today.
Is it possible to use a custom text Attribute for the Table's name when using the function TableCellValue?
Ok actually I'm thinking the answer is "no" because I'm trying it and it's not working
but perhaps anyone know of a way to do so?
What I'm trying to do:
if game.cust Typed Guess is tableCellValue(game.cust Current Level, game.cust Current Row, 4)
game.cust Current Level is the text attribute which has the current value of A (where "A" is the name of the Table I am trying to reference to)
Thanks, any help would be greatly appreciated!
Is it possible to use a custom text Attribute for the Table's name when using the function TableCellValue?
Ok actually I'm thinking the answer is "no" because I'm trying it and it's not working
but perhaps anyone know of a way to do so?
What I'm trying to do:
if game.cust Typed Guess is tableCellValue(game.cust Current Level, game.cust Current Row, 4)
game.cust Current Level is the text attribute which has the current value of A (where "A" is the name of the Table I am trying to reference to)
Thanks, any help would be greatly appreciated!
Best Answer
-
tatiang Posts: 11,949It's not possible, though I wish it was. For now, you're limited to Rules that cover possible values of an attribute and then select a table based on those values.
You could potentially have a table that has "sub-tables" (for lack of a better word) and then use an index attribute to select a starting row. For example, the "top" table would be rows 1-10 and the "bottom" table would be rows 11-20.New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
I combined all 4 tables I had, kinda bloody but I guess it's not so bad. A few formulas fixed most dilemmas.. hopefully it won't make things difficult in the future when adding content like extra levels :-S