#1
|
||||
|
||||
Random Breeding
How can I make it so breeding is random meaning a 50% chance of producing offspring.
|
#2
|
||||
|
||||
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:
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
Where do I put this?
|
#4
|
||||
|
||||
what about having liters? lol
__________________
https://gemnode.com Free Hosting for Mysidia Adopt Sites Just join our forum and request your free hosting account |
#5
|
||||
|
||||
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?
__________________
|
#6
|
||||
|
||||
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.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#7
|
||||
|
||||
LOLOLOLOLOLOLOLOLLOL
"Massive Baby Production" HOF that killed me XD XD XD
__________________
https://gemnode.com Free Hosting for Mysidia Adopt Sites Just join our forum and request your free hosting account |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Random egg | Skaiya | Questions and Supports | 2 | 03-30-2014 03:42 PM |
Random breeding outcome/ rare breeding | SilverDragonTears | Questions and Supports | 0 | 03-25-2012 03:33 AM |
Make Breeding Random? | SilverDragonTears | Suggestions and Feature Requests | 7 | 08-25-2011 05:58 AM |
Random 3D Art | alonaria | Art Gallery | 4 | 06-13-2011 06:19 PM |
Random 5 is not realy random! | RipJawWolfFang | Questions and Supports | 9 | 04-30-2009 07:03 AM |
What's New? |
What's Hot? |
What's Popular? |