Help with tables

nir3112nir3112 Member, PRO Posts: 316
I want to try to save all my attributes in a table how I do it?
Just use save table? I don't need to load it back?
How I change cell value in table like 'change attribute' command?
Tanks!

Comments

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    Yes, just save it. There is no need to load it, GameSalad automatically loads it in.

    You can change a value when you use the "Change Table Value" behavior.
  • nir3112nir3112 Member, PRO Posts: 316
    Yes, just save it. There is no need to load it, GameSalad automatically loads it in.

    You can change a value when you use the "Change Table Value" behavior.
    Ok thanks!
    I have another question.. How do I check cell value??
    I mean I want something to happens just when cell value is "false" how I can do it??
  • ycanycan Member, PRO Posts: 207
    Check it out.

    http://bit.ly/1dm5oGi
  • nir3112nir3112 Member, PRO Posts: 316
    Check it out.

    http://bit.ly/1dm5oGi
    Oh you soooo funny!! I already did this and there is nothing in google or YouTube...
  • harrywatsonharrywatson Member Posts: 61
    What about a 'display text' on you actor? tableCellValue(MyTable,1,1).
    That will tell YOU at least what your table is doing. Not sure that helps.
    I use lots of 'display text' behaviours to see what's happening or not happening.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    *sigh* I just had a student suggest that GameSalad needs a console that lists all attributes and their values during scene previews for debugging purposes. I so wish we had that.
  • colandercolander Member Posts: 1,610
    edited October 2013
    Something to think about when you are setting up your tables. The Change Table Value allows you to change one row and multiple columns. If you set up your table with multiple rows and one column you will need a separate Change Table Value attribute for each value change. Depending on how many changes you need to make at one time it can get a little clunky to work with but it makes no difference to how GS works.

    This doesn't matter if you only need to make one change at a time. However if you need to make multiple changes consider how you set up your tables beforehand and think about using one row with multiple columns instead of the other way around.
  • nir3112nir3112 Member, PRO Posts: 316
    edited October 2013
    Thanks to everybody! I did it by self.attribute
    So if I want to check if table cell value is 1 I create self.attribute=1 and check if it's=table cell value
    It works fine for me thanks a lot!
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Check out my video on debugging and also checkout my video on tables.
Sign In or Register to comment.