Reading Table Question

bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
I have a star system set up to save to a table, I was wondering how to change the data in the table like below.
If Score 1 > Row 1, Column 1 Change Row 1, Column 1 to Score 1

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    You need to use write to table.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    edited May 2013
    When game.score1 > tableCellValue(tableName,1,1)
         Change Table Value... table:tableName; row: 1; column: 1 value: game.score1

    You need to know that rules only trigger one time and then have to become false before they will trigger again. So if game.score1 exceeds the table value, it will change the table value but if it then increases again, it won't change until game.score1 is ≤ to the table value. You may need a second condition (e.g. a boolean) to get this to work.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.