Tables help

This is going to sound completely noobish, but I just now started messing with tables and have a question. So I have a boolean in a table. How do I reference it directly for a level unlock type of deal? Thanks

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You use the tableCellValue function. You can't reference it on the left side of a rule do if you need to do that, do Change Attribute self.whatever (Boolean) to tableCellValue() and then do When attribute self.whatever is true/false ...

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

  • poorcollegedevpoorcollegedev Member Posts: 289
    Correct me if Im crazy, but I want to be like If tableCellValue() true, ChangeImage. How would I go about doing that?
  • SocksSocks London, UK.Member Posts: 12,822
    edited February 2013
    Correct me if Im crazy, but I want to be like If tableCellValue() true, ChangeImage. How would I go about doing that?
    Like tatiang said:

    1) Make an attribute - let's call it: "AAA"

    2) Then copy the tableCellValue(whatever) into "AAA" using: Change Attribute self.AAA to tableCellValue(whatever)

    3) Now you can use a rule that says: When Attribute "AAA" = true/false then Change Image.
  • poorcollegedevpoorcollegedev Member Posts: 289
    I may just be tired, but I still don't understand. Is there a video or a demo of this anywhere? Would you mind whipping on up for me?
  • SocksSocks London, UK.Member Posts: 12,822
    I may just be tired, but I still don't understand . . .
    Which part don't you understand ?

  • poorcollegedevpoorcollegedev Member Posts: 289
    All of it! Sorry, Im a visual learner
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    This is what it looks like:

    image

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

  • poorcollegedevpoorcollegedev Member Posts: 289
    Got it! Thanks much!
Sign In or Register to comment.