Random Breeding
How can I make it so breeding is random meaning a 50% chance of producing offspring.
|
So you want breeding to have 50% chance of success and 50% chance of failure? You may want to use the mt_rand() function to generate random number at equal chance, a typical way of doing this is:
PHP Code:
|
Where do I put this?
|
what about having liters? lol
|
oh god, I'd love the chance to have litters. You could enter in an amount, say there is a random chance of your pet having between 0-4 babies maybe?
|
Well massive baby production was not brought into our attention before since normally you do not want your members to have a huge number of adoptables through breeding, especially for rare species. I may create a Mod for that someday, but again be careful with this possible feature since it can potentially ruin your site.
@ Silverdragontears: In your breeding.php file of course. Do you have a modified version of that script file already? If so, please send me the content of your breeding.php file through PM so I can tell you where to add these random number generation lines. |
LOLOLOLOLOLOLOLOLLOL
"Massive Baby Production" HOF that killed me XD XD XD |
All times are GMT -5. The time now is 08:55 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.