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 01-12-2017, 04:00 PM
bisexuowl bisexuowl is offline
x3 furry trash x3
 
Join Date: Sep 2015
Location: California
Posts: 22
Gender: Male
Credits: 4,675
bisexuowl is on a distinguished road
Default How to make rarity affect baby's species?

the adoptables on my site are going to have a few tiers of rarity:
  • Mythical
  • Very Rare
  • Uncommon
  • Common
I want to make it so when two adoptables of different rarities breed, it's much harder to get the more rare species (when you breed a common and uncommon, its a 75% chance to get a common. When you breed a common to a very rare it's a 85% chance to get a common, etc) I already have this rarity system set up thanks to the Mysidia community (!!!), but now I need help implementing the breeding part T_T

I've been looking through the various files and I can't tell exactly how species is being determined (i'm a beginner in PHP), but I think it's in class_breeding.php around line 31?
Reply With Quote
  #2  
Old 01-12-2017, 04:24 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 65,180
Dinocanid is on a distinguished road
Default

You could do this without doing any coding, like when creating breed adopts in the AdminCP. For example, you create a new breed adopt and set the parents. (one being the uncommon species and the other being common). Then you set the probability for that new common breed adopt to 75. Then you can create another breed adopt with the same parents, but make the probability lower. That way when you breed the two parents, there is a small chance of getting that rarer adoptable; that's how I do it anyway.

Unless you meant something different?
__________________
Reply With Quote
  #3  
Old 01-12-2017, 05:20 PM
bisexuowl bisexuowl is offline
x3 furry trash x3
 
Join Date: Sep 2015
Location: California
Posts: 22
Gender: Male
Credits: 4,675
bisexuowl is on a distinguished road
Default

Unless coding rarity to affect baby's species is extremely difficult, I think manually creating a breed adopt for every species and adding every rarity probability would be much harder lol. I'm not trying to make rare hybrid adopts. For an example of what I want, let's take a Zerth (which is common) and an Owla (which is uncommon). When they breed, I want the two possibilities for the child to be either Zerth or Owla, with a higher chance of it being a Zerth. Does that explain it? @@
Reply With Quote
  #4  
Old 01-12-2017, 05:40 PM
Dinocanid's Avatar
Dinocanid Dinocanid is offline
Member
 
Join Date: Aug 2016
Location: Maryland, USA
Posts: 516
Gender: Unknown/Other
Credits: 65,180
Dinocanid is on a distinguished road
Default

Breed adopts aren't only for making hybrids, and can be used to set which (or what) species of offspring will appear when breeding two adoptables that aren't the same species. Like this:




I see what you mean though, since you would need to fill out the form for each outcome, which can take a lot of time to do for every species on your site. I hope someone else will be able to help though! I don't know how to work with the breeding code.
__________________
Reply With Quote
  #5  
Old 01-25-2017, 05:12 PM
bisexuowl bisexuowl is offline
x3 furry trash x3
 
Join Date: Sep 2015
Location: California
Posts: 22
Gender: Male
Credits: 4,675
bisexuowl is on a distinguished road
Default

yea, that's what i meant, sorry im bad at communicating ;n;

i'm still looking for help with this, if anyone has any ways to point me in the right direction.
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


All times are GMT -5. The time now is 02:45 AM.

Currently Active Users: 9657 (0 members and 9657 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