Topic renamed to help the search -Staff
Randomly select units each time you play? [Solved]
Moderator: Moderators
- 666rulerofclones
- Command Sergeant Major

- Posts: 281
- Joined: Fri Aug 08, 2008 1:30 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The Badger State!
Randomly select units each time you play? [Solved]
i was wondering how mav in his recent Aquaralis (hope i spelled it right
) Deep Sea map, the function of how it would randomly select one of the Convopack units each time you played Clone Wars Conquest. If he spills the beans, it should be placed in the FAQ thread! (im sure that its some sorta .lua function or something).
Topic renamed to help the search -Staff
Topic renamed to help the search -Staff
-
Aman/Pinguin
- Jedi

- Posts: 1104
- Joined: Tue Jan 30, 2007 6:04 am
- Projects :: Inactive
- Location: Germany
Re: how does mav do it?
He uses the "math.random()" function.
math.random(SmallestPossibleNumber,BiggestPossibleNumber)
I think you can figure out the rest yourself...
math.random(SmallestPossibleNumber,BiggestPossibleNumber)
I think you can figure out the rest yourself...
Hidden/Spoiler:
-
Master_Ben
- Lieutenant General

- Posts: 675
- Joined: Wed Nov 12, 2008 9:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Watching your PC over your shoulder. No, the other sholder....
Re: how does mav do it?
Ooh very clever Aman/Pinguin.
- 666rulerofclones
- Command Sergeant Major

- Posts: 281
- Joined: Fri Aug 08, 2008 1:30 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: The Badger State!
Re: Randomly select units each time you play?
thanks guys, ill try it out.
STAFF: thanks for renaming it although i couldnt find the topic and had to look for my name under the "author" section lol
STAFF: thanks for renaming it although i couldnt find the topic and had to look for my name under the "author" section lol
