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)
-   -   How to make rarity affect baby's species? (http://www.mysidiaadoptables.com/forum/showthread.php?t=5332)

bisexuowl 01-12-2017 04:00 PM

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?

Dinocanid 01-12-2017 04:24 PM

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?

bisexuowl 01-12-2017 05:20 PM

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? @@

Dinocanid 01-12-2017 05:40 PM

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:

http://www.clipular.com/c/5041575745...UoB1dj4HW4UPRc
http://www.clipular.com/c/5179605659...vBcWKn8-ZHaqdo

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.

bisexuowl 01-25-2017 05:12 PM

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.


All times are GMT -5. The time now is 02:08 PM.

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