I think this is my first post! I may have failed in my search but I couldn't find an answer so here goes:
I'm making a card-game map where there will be 100+ cards that you randomly draw throughout the game. My question is, how should I store the deck? Because I'm thinking of adding different cards and make different deck combos (like pick 100 cards from 200 of total).
Each card has about 4 values, so I started a record with 100 members named Deck. Instead of copypasting 100x4 values, I thought of making a text file and reading from there but can it be done? How should I handle it?
If the cards (deck) are going to be saved then you can do it by giving each card a specific variable name ,and when the game starts the bank will load what the player saved. triggers are your answer not data.
For example, you have 200 cards, each card is named by specific name, and you have 100 card on your deck only. so you have to make a loop that will repeat itself 100 times to check what the player 100 cards (deck) are.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Greetings friends,
I think this is my first post! I may have failed in my search but I couldn't find an answer so here goes:
I'm making a card-game map where there will be 100+ cards that you randomly draw throughout the game. My question is, how should I store the deck? Because I'm thinking of adding different cards and make different deck combos (like pick 100 cards from 200 of total).
Each card has about 4 values, so I started a record with 100 members named Deck. Instead of copypasting 100x4 values, I thought of making a text file and reading from there but can it be done? How should I handle it?
If the cards (deck) are going to be saved then you can do it by giving each card a specific variable name ,and when the game starts the bank will load what the player saved. triggers are your answer not data.
For example, you have 200 cards, each card is named by specific name, and you have 100 card on your deck only. so you have to make a loop that will repeat itself 100 times to check what the player 100 cards (deck) are.