Loading text from random location in table

Hi all,
I have a table called "x" with 3 rows and three columns filled with text values. There's an actor that is set to display text and for that text I have "tableCellValue(x,rand(1,3),1)"

What I want this to do is display a random row in the first column, but it only shows "Invalid Expression".
Am I doing something wrong?

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    It would be:

    tableCellValue(game.x,random(1,3),1)

    Also, no quotes.
  • redleafredleaf Member Posts: 10
    That fixed the problem, thanks!
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    Best to use the expression editor rather then tying in manually.
Sign In or Register to comment.