- Joined
- Sep 10, 2008
- Messages
- 8
I'll explain the whole thing. I'm making a card game. My goal is to set a deck of cards to a variable (each card is a unit-type). and program that variable of 40 cards to get a random card draw when you click an ability on a unit (the ability on the unit being "draw a card")
The next part i'm trying to do is remove the card picked so that I don't randomize the card again! I have added the attachment of my trigger to this post.
Basically I have set the unit-type variables:
unittype variable1 = card1, unittype variable2 = card2 ect. to card 40.
Then when the ability is clicked on the unit - create 1 unit-type variable of random integer 1-40 for player at location "your cards"
I just don't get how to remove the picked card using a unit-type variable.
The next part i'm trying to do is remove the card picked so that I don't randomize the card again! I have added the attachment of my trigger to this post.
Basically I have set the unit-type variables:
unittype variable1 = card1, unittype variable2 = card2 ect. to card 40.
Then when the ability is clicked on the unit - create 1 unit-type variable of random integer 1-40 for player at location "your cards"
I just don't get how to remove the picked card using a unit-type variable.