View Single Post
  #53  
Old 01-29-2010, 12:26 PM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 11,506
Quillink
Default RE: Breeding System - Complete!

Quote:
Originally Posted by Seapyramid
Quote:
Originally Posted by Roconza
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.
basically you would have to make a new table with say 1-10 being possible for 1xb breeding ... 11-20 being possible for yxz breeding.. then set up limits on a random for each breeding pair possible... thne set those randoms to the ids in the table.. then when a randon is right have it insert into the owned_adoptables table...


Have Fun :)
Wouldn't adding a "group" column to the owned_adoptable table and a random number generator in the breeding script work just as well?

E.g.
  • if ($dadgroup == $momgroup){

    $pickspecies = rand(1,2);
    if $pickspecies = 1 { $babyspecies = $dadspecies }
    else { $babyspecies = $momspecies }

    }
    else{
    return die("What were you thinking?? A walrus and a DUCK??")
    }


Btw, do NOT copy/paste this. This is NOT real php, just an example. :P
Real php syntax would take me a lot longer to write - time I don't like to use at 2:30am. :S
Reply With Quote