• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Randomizing

Status
Not open for further replies.
Level 1
Joined
Apr 2, 2006
Messages
5
Im currently making a chinese card game. When the map starts, 52 cards will be divided to 4 players evenly. So in the trigger i did.

For each (Interger A from 1 to 13, do (Actions)
Loop-Actions
Set Game_Card =(Random unit from Game_Card_Group)
Set Game_Card_Int = (Game_Card_Int + 1).
Create floating txt that reads((string Game_Card_Int))+ Diamond)at(Position of Game_Card_Unit).
Remove Game_Card from Game_Card_Group.
Remove Game_Card from the game.

And the trigger will be same to create Club,Heart and Spade cards.I got everything done...the only problem is that everytime i restart the game, i get the same game card. >.<"
 
Status
Not open for further replies.
Top