- Joined
- Sep 10, 2008
- Messages
- 8
I'll explain it the best I can, and please don't post in jass language I don't know jass! Basically im trying to make a card game.
So far in my trigger i have
Events:
Unit - A unit owned by player 1 begins casting an ability (ability being card)
Conditions:
(Ability being cast) Equal to (draw a card)
Actions:
Unit - Create 1 -card draw variable- (Random integer number between 1 and 10) for (Triggering player) at (Region)
on the second trigger i set card draw to variable1 = card1 , variable2= card2 ect.
Now i want to know how do I randomize the card draw from 1-10 and remove the picked card that was randomized. Meaning I want to randomize a second time and not have the same card number as the first randomize. So I don't get a one of a kind card twice. help please!
So far in my trigger i have
Events:
Unit - A unit owned by player 1 begins casting an ability (ability being card)
Conditions:
(Ability being cast) Equal to (draw a card)
Actions:
Unit - Create 1 -card draw variable- (Random integer number between 1 and 10) for (Triggering player) at (Region)
on the second trigger i set card draw to variable1 = card1 , variable2= card2 ect.
Now i want to know how do I randomize the card draw from 1-10 and remove the picked card that was randomized. Meaning I want to randomize a second time and not have the same card number as the first randomize. So I don't get a one of a kind card twice. help please!