• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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