Merging or Combining 2 Tables?

razblintrazblint Member, PRO Posts: 1
Does anyone have a way to combine two tables into one table, without one overwriting the other?

For my quiz game, I want to let the user choose which sets of questions to be asked in the quiz. I wanted to do this by having each quiz set in a different table, and then combine different sets together based on the user's choice.

I haven't been able to figure out if I can merge two different quiz sets into one, though. Or -- if there is another way to accomplish the same task, of having remixable content for the quiz.

Any thoughts or advice?

Comments

  • KeithQKeithQ Member Posts: 25
    I'm currently working on a puzzle game that reads and writes to multiple tables. Instead of merging tables write the sets of questions from each table to a third table using an indexer so as not to overwrite the sets. Or Add additional rows to the beginning or ending of the table.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Can you explain this a bit more? Are you wanting the tables merged one after the other, like this:
    T1R1
    T1R2
    +
    T2R1
    T2R2
    =
    T1R1
    T1R2
    T2R2
    T2R2

    Or are you interspersing the rows somehow? Or does the player have the ability to choose a few questions from one table and a few from another?

    There is no built-in way to merge tables. You can create a system to do so, though.

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

Sign In or Register to comment.