Hello, I am just wondering how to make a random number generator since there is not built-in one.
Thanks in advance!
Details please? You can randomize an integer/real yourself at any given time between certain parameters.
For live trigger help add me on Skype
Tutorial:Keeping your code clean and organised
Tutorial:Simple Tug of War system
Well the first reason I need a generator is to pick a random race for a team if a team votes on x race and it is tied. Another reason is to send spawned units to a random point on a map.
Quote from MoDTassadar: GoHello, I am just wondering how to make a random number generator since there is not built-in one.
Have you tried using the random number generator that is built in?
You should try and find answers yourself before asking people on the forum.
If you DO know how to use the inbuilt random number generator and are asking how to set a better seed for extra randomness or some other related question then you should phrase your question better
You only need a Random number for the first part. If you are using Terran as Race 1, Protoss as Race 2 , Zerg as Race 3 and the Tie is Between Zerg and Terran then pick a Random Integer (Number) between 1 and 2, One can be Zerg and Two can be Terran or vice-verse.
A Random Real wouldn't be as effective as Random Point in Region, as you could get a random real that you can't reach. The Random Point in Region you can have it be in the Playable Map so no getting stuck (Except for Ground Units that try to get to an Island with no Ground pathing to it)
Blizzard Fan since Starcraft. The Single Player story is AMAZING IMO, I can't wait for the Expansions. In Warcraft 3 I only enjoy the Custom Maps scene (& Blizzards Worm Wars).
You must login to post a comment. Don't have an account? Register to get one!