Copy row from one table to another


Is there a way to copy an entire row from one table to another table? both tables with same columns.

Its for an easy rpg card game, turn based, so each turn I want to store randomly 3 cards (in screen) with all their values (attack, health, coins, etc..) from of a big table with all the cards.

Thanks a lot!!

P.D: Sorry about my poor english.


  • tatiangtatiang Posts: 11,297Member, Sous Chef, PRO, Senior Sous-Chef

    There's no built-in way to copy table rows... I wish there was. But you can achieve the same thing by pre-creating a blank extra table and then using three Change Table Value behaviors to copy the three rows and all of their columns to the blank table.

    Consider whether there might be a way to simply index the three random rows within your large table, such as changing the value of a column from false to true and then searching for that value.

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

Sign In or Register to comment.