Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Is this possible? (http://www.mysidiaadoptables.com/forum/showthread.php?t=4540)

gloryKAT 06-16-2014 09:26 PM

Is this possible?
 
Is it possible to code in a lineage feature for adoptables? If so, is there a code I can use to do so?

Hwona 06-16-2014 09:56 PM

Umm I think this will only show an adoptable's mother and father, but you could try adding 2 columns to the owned_adoptables table that are titled something like "mother" and "father". When an adoptable is bred, you can try getting the parents' ids and then placing thme into the columns. Then you can go to the levelup page and get the adoptable's parent columns' values which you could put into variables. Then, try puting a link to 2 adoptables on the page and instead of putting an adoptable id, replace the id with the variables that contain the parents' ids. Do I even make any sense? I'm sure there's a better way to do this, but this is what worked for me on something similar. :3

gloryKAT 06-16-2014 10:03 PM

That might work. I'll have to try that .w.

Hwona 06-16-2014 10:06 PM

Oh, you can actually go several generations back... you'll just need to get the parents of the mother and father and add more columns... but I'm not sure how to display this on another page. :L


All times are GMT -5. The time now is 09:42 AM.

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