• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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