![]() |
|
#1
|
||||
|
||||
![]()
Is it possible to make it so that the adopts may or may not breed?
|
#2
|
||||
|
||||
![]()
As in an adoptable in class 'Avian' has a 50/50 change of being able to breed with other 'Avian' class adoptables?
__________________
Coder/Marketer/Etc Super busy, lack of time for computer related things for awhile. Current Mods: Slim Profile | Disallow unfreezing adoptable Longer Shoutbox | IP Tracking/Account Limiter Colorblast | Flux Series In the works: Integrated Forum (Very unlikely to be a free public mod, at first anyways)15% Better admin control panel (current one is terrible) Couple Themes Few other things. |
#3
|
||||
|
||||
![]()
yep that's what I mean...
|
#4
|
||||
|
||||
![]()
You COULD always make a little bit of script that picks a random number, and adds it to the end of 'Avian' like 'Avian9385' or 'Avian2468' Then theres what.... 1 in 10,000 chance that same person would HAPPEN to get the same numbered 'Avian' class.
__________________
Coder/Marketer/Etc Super busy, lack of time for computer related things for awhile. Current Mods: Slim Profile | Disallow unfreezing adoptable Longer Shoutbox | IP Tracking/Account Limiter Colorblast | Flux Series In the works: Integrated Forum (Very unlikely to be a free public mod, at first anyways)15% Better admin control panel (current one is terrible) Couple Themes Few other things. |
#5
|
||||
|
||||
![]()
wait. what?
|
#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. |
#7
|
||||
|
||||
![]()
I can code... but I'm not advanced yet... could you help me write that?
|
#8
|
||||
|
||||
![]()
Alright I will rewrite the breeding.php for you later this week.
__________________
![]() 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? |