My table is giving only 0?

Greetings, I 'm brand new to gamesalad and come from a macromedia director coding background (lingo)
i seem to be having trouble with pulling data from my table,
regardless of what i've typed in the cell it only says 0 when i try and pull the figure. I set up a display text actor so I can see the variable and all i see is 0, even when i set up a "global" attribute for it.

the coding is tableCellValue(game.tablename, 1, 9) ?

Best Answer

  • gyroscopegyroscope I am here.Posts: 6,598
    Accepted Answer

    Hi @mscmultimedia and welcome to GSC and the Forums. :-)

    I used to use Lingo too, from when it was Macromind Director, for interest.

    By what you've written, it doesn't seem like you're doing anything wrong… I've done a little test for you to have a look at, to check what could be different with your programming… hope it helps you.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Answers

  • quantumsheepquantumsheep Member Posts: 8,188
    edited October 2013
    In your display actor, check that you pressed the 'e' button next to the text box, and select 'tablecellvalue' from the drop down menu (i.e. don't just type it out).

    Then use the dropdown to replace game.tablename with the table you're using.

    See if that helps!

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • mscmultimediamscmultimedia Member Posts: 5
    yes, i used the drop down system to do this. I wish it was as easy a solution as that :)
  • quantumsheepquantumsheep Member Posts: 8,188
    yes, i used the drop down system to do this. I wish it was as easy a solution as that :)
    No worries - when people are new, it's easy to make those simple mistakes.

    Hell, I still do it sometimes!

    QS =D

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • mscmultimediamscmultimedia Member Posts: 5
    Thanks Gyroscope,
    the only real difference i noticed is that your table call (game.Table 1) was in a blue pillbox, is that a mac/win difference (I'm in win) or could that be why it's not really working?
  • mscmultimediamscmultimedia Member Posts: 5
    what drop down to select tablename? I can drop down to get the tablecellvalue but by the sounds of it I should have a further option box appear to select the table from?
  • mscmultimediamscmultimedia Member Posts: 5
    Hey, figured it out. i was looking for a drop down when i needed to double click, I figured it out now thanks guys
    :)
    MSCM
Sign In or Register to comment.