![]() |
#6
|
||||
|
||||
![]()
Well you can create a new field called 'breedchance' in table prefix_adoptables, which stores the probability of successful breeding(from 0 to 100). Then modify the breeding.php to add another if...else statement. Inside this conditional statement will you need to define a new variable that generates random number from 0 to 100. What you should do next is to insert another if...else statement that checks if this random number is greater or smaller than the value in field 'breedchance'. Breeding will be successful if the random number is smaller than the value 'breedchance', or it will fail.
__________________
![]() Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Random breeding outcome/ rare breeding | SilverDragonTears | Questions and Supports | 0 | 03-25-2012 02:33 AM |
Make users make their own website on your site ... | kitty08 | Mys v1.2.x Mods | 0 | 10-27-2011 03:49 PM |
Random Breeding | SilverDragonTears | Questions and Supports | 6 | 09-18-2011 11:49 PM |
How to make a breeding System? | SieghartZeke | Questions and Supports | 23 | 10-19-2009 06:11 PM |
Random 5 is not realy random! | RipJawWolfFang | Questions and Supports | 9 | 04-30-2009 06:03 AM |
What's New? |
What's Hot? |
What's Popular? |