Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to make rarity affect baby's species?
the adoptables on my site are going to have a few tiers of rarity:
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? |
#2
|
||||
|
||||
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?
__________________
|
#3
|
|||
|
|||
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? @@
|
#4
|
||||
|
||||
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.
__________________
|
#5
|
|||
|
|||
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. |
|
|
What's New? |
What's Hot? |
What's Popular? |