trouble using table

Hi, I am learning how to use table. I followed a video by GShelper.com on utube and made my first table to randomly display words. I think I did exactly what he did except I used windows version of GS creator. However, it did not display words. it shows the number "0" in the actor in preview. I don't know why. Thank you

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Can you post your code, please? That'll help us help you. :)
  • PandaParentsPandaParents Member Posts: 64
    Hi, Braydon, thank you for your help. I had a table called TBrandom number, with 4 rows and 1 column. The rule for the actor is "display text". In functions, I chose tableCellvalue(table(game.TBrandom number),1,1). Thanks again!
  • PandaParentsPandaParents Member Posts: 64
    Hi, Braydon, I forgot to post the table setting. In the table, I had it as "text" with 1 column and 4 rows (4 words). Thanks!
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Hi @PandaParents -- The tableCellValue function you posted above -- is that exactly how it looks like in your expression?

    Try changing it to this: tableCellValue(game.TBrandom number,1,1)
    There should only be one set of parenthesis
  • PandaParentsPandaParents Member Posts: 64
    I retyped it and worked. Thanks! I was also learning one of your other videos: how to make an actor following a path. In the video, you used index but on windows, there is no index, so can I still do this? Thanks again
  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Yes you can. Use a different attribute type: you could use "real" for example, as the "real" attribute type supports decimal points and numbers.
  • PandaParentsPandaParents Member Posts: 64
    Thanks! Your tutorials are great!
Sign In or Register to comment.