I know there are custom plugins for complex CCGs and card game minigames, but that's not what I need. Instead, here's what I want to do...
1) There are four different card "types" (for example: earth, fire, wind, water).
2) Sitting on a table is a "deck" of cards that contains the following 8 cards: x2 earth cards, x3 fire cards, x1 wind card, x2 water cards.
3) The player "uses" the object (event) deck and "draws" a card at RANDOM from the deck. The player is told what card they drew and the card is REMOVED from the deck.
4)The player can keep drawing cards until they have drawn them all, at which point they can reshuffle the deck and start over.
How would I go about doing this? It seems quite possible with just eventing and minor scripting but I'm not really sure how to make this work.
The bit I'm most stuck on is removing the card from the deck so the same card can't be drawn again until all the others have been.
Do I need to script a variable array, or is there a simpler option with conditions and normal variables?
1) There are four different card "types" (for example: earth, fire, wind, water).
2) Sitting on a table is a "deck" of cards that contains the following 8 cards: x2 earth cards, x3 fire cards, x1 wind card, x2 water cards.
3) The player "uses" the object (event) deck and "draws" a card at RANDOM from the deck. The player is told what card they drew and the card is REMOVED from the deck.
4)The player can keep drawing cards until they have drawn them all, at which point they can reshuffle the deck and start over.
How would I go about doing this? It seems quite possible with just eventing and minor scripting but I'm not really sure how to make this work.
The bit I'm most stuck on is removing the card from the deck so the same card can't be drawn again until all the others have been.
Do I need to script a variable array, or is there a simpler option with conditions and normal variables?