GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Table's name in TableCellValue

TheGabfatherTheGabfather Posts: 633Member
edited September 2012 in Working with GS (Mac)
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 :D
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!

0011 0010 0011 0010 0010 0000 0110 1101 0010 0000 0111 0011 0110 1001 0110 1110 0110 0111 0110 1100 0110 0101

Best Answer

  • tatiangtatiang Posts: 11,815Member, Sous Chef, PRO, Senior Sous-Chef
    edited September 2012 Accepted Answer
    It'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

  • TheGabfatherTheGabfather Posts: 633Member
    Ahh, I feared it'd be that way. Thanks for the info @tatiang !
    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

    0011 0010 0011 0010 0010 0000 0110 1101 0010 0000 0111 0011 0110 1001 0110 1110 0110 0111 0110 1100 0110 0101

This discussion has been closed.