Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-16-2017, 06:28 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 95,955
Dinocanid is on a distinguished road
Default

It shouldn't be too difficult. In class_breeding.php, there is a section called "public function breeding()" where this would go. Inside could be something like:
PHP Code:
$mother_base =  $this->female->base
$father_base =  $this->male->base
$mother_eyes =  $this->female->eyes
$father_eyes =  $this->male->eyes
//so on and so forth for the variables...

$choose rand(1,2); //50% chance of inheriting from mother or father
if($choose == 1){$base $mother_base}
else{
$base $father_base
After that, you would modify the "mysidia->db->insert" to include the markings and such. So inside the array you would put:
PHP Code:
"base" => $base"eyes" => $eyes
And keep going for however many things you want to pass down through breeding.

Once you do that, you have to go into class_ownedadoptable.php and add things like this:
PHP Code:
public $base;
    public 
$eyes;
    public 
$marking1;
//etc...

public function getBase(){
        return 
$this->base;
    }
//do this for every variable you added 
I can help more if you get stuck anywhere.
__________________
Reply With Quote
Reply

Thread Tools
Display Modes

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


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

Currently Active Users: 12189 (0 members and 12189 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636