Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #81  
Old 12-09-2010, 09:21 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,342
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default RE: Breeding System - Complete!

The only way I know to do a time variable is by Cronjobs. But you could have it so a female needs so many more clicks before it can breed again. Just as an idea to throw out there.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #82  
Old 12-10-2010, 02:54 PM
Plague Plague is offline
Member
 
Join Date: Nov 2010
Posts: 50
Gender: Unknown/Other
Credits: 3,102
Plague is an unknown quantity at this point
Default RE: Breeding System - Complete!

That actually sounds like a fantastic idea. It would create more variety and require the user to actively play more to try to re-breed desired creatures. Other games seem to go off the time variable, but it's like I breed all my creatures, got nothing, I'll sign on in a week when I can breed them again. And that route, for me any way, gets boring after awhile.
Reply With Quote
  #83  
Old 01-16-2011, 12:12 PM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 45,934
RoconzaArt is an unknown quantity at this point
Default

What do I add to make it so let's say I make a cat and a dog but they can't breed with each other only there own species?
Reply With Quote
  #84  
Old 01-16-2011, 01:22 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,027
Hall of Famer is on a distinguished road
Default

I wonder how you define the pet types on your site, but you may try this. Now find the following lines:

PHP Code:
if ($male_level OR $female_level 2){ //this is if they can't breed
            
$article_content $article_content."Sorry, one of your adoptables don't have the minimum level to breed. Keep feeding them so they can grow.";    
        } 
Add below:

PHP Code:
else if ($male_type != $female_type){
//this examines if they are not the same species
$article_content $article_content."Sorry, a cat cant breed with a dog, please select again!";

Basically you will have to define the condition for breeding to occur. You may delete some of the lines in the else statement, since there's no need for the script to decide the species of your baby pet through random variables. You may just leave it like this too, it is not likely to cause you any fatal errors anyway. Keep in mind that you will have to modify the script significantly if you actually define cat and dog as a category, or a class/object.

Hall of Famer
Reply With Quote
  #85  
Old 01-16-2011, 03:01 PM
RoconzaArt's Avatar
RoconzaArt RoconzaArt is offline
Member
 
Join Date: Jan 2011
Location: NJ Shore (and proud of it)
Posts: 479
Gender: Female
Credits: 45,934
RoconzaArt is an unknown quantity at this point
Default

Thank you you HOF the code works great. I want to code away to add adoptable to a group like "dogs", "cats" and etc so that different dog breed can breed with each other but not with things like foxes or cats. To put it in a pokemon fans example like how in pokemon only pokemon in the same set groups (monster, water, fairy, etc) can breed.

I just need to do some studying.
Reply With Quote
  #86  
Old 01-16-2011, 03:07 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,027
Hall of Famer is on a distinguished road
Default

Well this is what I thought right from the beginning. To do this, you will need to create a new database column called 'group' in the table adoptable and owned_adoptables. The group can have two values, namely cat and dog. The script will check if the adoptables belong to the same species group, and execute the codes for both cases. It will require a lot more work, and you may need to modify nadopt.php and doadopt.php too.
Reply With Quote
  #87  
Old 01-30-2011, 06:23 PM
Rozel Rozel is offline
Member
 
Join Date: Jun 2010
Posts: 144
Credits: 10,662
Rozel
Default

Hi. I was wondering about some sort of limitation, and saw on the last page about having to get more clicks before you can breed again. That'd be lovely, but I don't know if that's been worked on or not at the moment XD It says that it was said back in November 2010, a little while ago, still curious if it's being worked on. Otherwise I'd like to request that. :P
Reply With Quote
  #88  
Old 01-30-2011, 08:08 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 32,342
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

You may want to contact Arianna and ask. I know she's working on a breeding script, but I'm not sure if it's an upgrade of this one or a completely different one.
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote
  #89  
Old 01-30-2011, 10:18 PM
Rozel Rozel is offline
Member
 
Join Date: Jun 2010
Posts: 144
Credits: 10,662
Rozel
Default

Okay, I shall do that. 83
Reply With Quote
  #90  
Old 01-30-2011, 10:42 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 334,027
Hall of Famer is on a distinguished road
Default

umm I am sure Arianna is quite busy at this moment, but maybe it wont hurt to ask.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation Complete: Site is Completely Blank? Bhavani Questions and Supports 3 09-14-2014 06:43 PM
a more advanced breeding system needed maximillion Questions and Supports 11 06-28-2011 02:37 PM
Help me with the breeding system of Arianna Sensacionsk8 Questions and Supports 2 03-21-2011 11:54 AM
Breeding System Steelghost600 Questions and Supports 4 10-25-2009 02:38 PM
How to make a breeding System? SieghartZeke Questions and Supports 23 10-19-2009 06:11 PM


All times are GMT -5. The time now is 11:27 AM.

Currently Active Users: 9767 (0 members and 9767 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636