Random Quote Using Tables?
Ok, so I set up a table with 20 rows of quotes and sayings that I want an actor to randomly display. I did this a long time ago and now I forgot how I did it. Can anyone help me? Thanks.
Best Answers
-
carlblanchet Posts: 755
-
TomCoffee Posts: 175
You can make that a little easier to maintain by using tableRowCount instead of a static number (like 20)...
tableCellValue( game.MyQuotes ,tableRowCount( game.MyQuotes ),1)
This way you can add more quotes/rows to that table without having to worry about remembering to update the formula...
Answers
Display Text:
tableCellValue( game.Random.Quote ,random(1,20),1)
Replace 20 with the number of rows you have.