Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   Breeding System - Complete! (http://www.mysidiaadoptables.com/forum/showthread.php?t=1156)

Arianna 12-24-2009 01:50 AM

RE: Breeding System - Complete!
 
Thanks. :) I'm glad you got it working. The problem for me is I have so many columns in the database (dates, parents, lots of other stuff) that it's hard to make the code work for everyone on the first try.

Ashje 12-24-2009 02:06 AM

RE: Breeding System - Complete!
 
Lol. Well, thanks for all the help. +repped. :D

Arianna 12-24-2009 04:01 AM

RE: Breeding System - Complete!
 
Thanks. :)

SieghartZeke 12-24-2009 04:24 PM

RE: Breeding System - Complete!
 
Uhm...i have a question..is possible to make different character from the breeding?
Becuase in my site i want make a little difference...

For esample:
Elesis
http://www.gca.netai.net/picuploads/...eb263c7fac.gif
+
Ronan
http://www.gca.myadopts.com/picuploa...c7a07ebf8d.gif
=
http://www.gca.myadopts.com/picuploa...f72551de84.gif
???

Arianna 12-25-2009 03:15 AM

RE: Breeding System - Complete!
 
I don't think so, no. Sorry.

bokkun 12-26-2009 09:25 AM

RE: Breeding System - Complete!
 
Actually, it is possible, but requires quite a big code addition
probably it would be best to create a function which looks up the combination of the id's
like pet 2+7 gives back pet 9
but that means you have to save those combinations somewhere(preferable the database)
and when there is no combination it should say that the pets won't mate
I'll take a look at it, but it seems to be annoyingly time-taking

Arianna 12-26-2009 09:41 AM

RE: Breeding System - Complete!
 
The point is - if you have 20 pets, that's an additional 400 pets you need to make. And what about if those 400 kinds can breed?
I won't code something like it, it's simply to hard. I guess you could check for certain situations (if ($kind="Kind1")) and then determine it, but I'm not in the mood for that.

bokkun 12-26-2009 11:48 AM

RE: Breeding System - Complete!
 
Yes, it would be pretty hard
It's just an idea, maybe there's some sort of way...
I'll play with the code a bit, maybe I'll find some way
anyway nice script, seems to work flawless on my server.

mapleblade 12-26-2009 11:51 AM

RE: Breeding System - Complete!
 
maybe ill make in the future a nod on this mod to let the eggs breed once, im not sre if its gonna succeed but ill maybe gonna try :D

Roconza 01-22-2010 12:00 PM

RE: Breeding System - Complete!
 
Ok, here is a question that has to do with the above asked question:

Can I in theory make a "group" if you will as a new attribute like "gender" or "species" and tell the script instead of species the parents from this "group" can breed despite species and produce a egg that's a random choice of the one of the parents species?

I want to try this out it should work in theory but my php skill are very limited.


All times are GMT -5. The time now is 01:00 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.