Blockland Forums > Modification Help
Randomizing
<< < (3/4) > >>
phflack:
weird city rp lottary every hour? random person gets stuff?
Chrono:

--- Quote from: phflack on March 04, 2012, 10:20:23 PM ---weird city rp lottary every hour? random person gets stuff?

--- End quote ---
You shouldn't even do that unless there's at least 5 people on the server.

If there's 0 people, the error wont even affect anything anyways.
If there's 1 person, he'll win every time.
If there's 2 people, there's a good chance they're friends and will just sit there and collect. 50% is still too high of a chance.
Etc.
HellsHero:

--- Quote from: Chrono on March 04, 2012, 10:23:15 PM ---You shouldn't even do that unless there's at least 5 people on the server.

If there's 0 people, the error wont even affect anything anyways.
If there's 1 person, he'll win every time.
If there's 2 people, there's a good chance they're friends and will just sit there and collect. 50% is still too high of a chance.
Etc.

--- End quote ---
Add some chance for no one to win?
Greek2me:
There could be a 15% chance that somebody will be picked randomly.
Chrono:
This also isn't to discuss how you would make your random lottery. I even recommended the one that returns -1 if there's no clients rather than giving an error and returning nothing. (which wont actually produce a different result)
Navigation
Message Index
Next page
Previous page

Go to full version