#1
|
||||
|
||||
Last Alt Form Question
I have a question about the last alt form... because for me is not working...
or maybe Im doing something wrong. all of my adopts have an alt version, and have 7 levels being level 5,6 and 7 hatchling, young and adult. after I updated the site, I started to create the alt form for each adopt, after i finished adding the 3 alt forms for one of them I tested them for the first alt form I set a chance of 30, then for the second and third added the last alt form id and set the chance to 1 because I was thinking/hopping that even if the chance is 1 they would be selected because the adopt was already using the first alt form... but dint, once I level up the test adopt the image that appeared was the default one. I don't want the alt2 and alt3 to appear after the "normal" level 5 evolves to the level 6 or a "normal" level 6 evolve in a alt adult but the problem is that after I change the chance to 100 even the normal 5 evolves to an alternate 6 and if I reset the chance to 1 the alternate 5 evolves to a normal 6... So I want to ask is this normal?? For me it feels like the alternate code don't take in mind the last alt form when choosing... because like I said, the normal level 5 evolved to an alternate level 6 and I had set a last alt form so I had the idea that if a "normal" (0) evolved the alt for the next level wont be chosen because the adopt don't have the last alt form. For now I had to revert/re-add the codes I edited to create my alternates, and re-add tables that were deleted/edited with the update... if this is the normal behavior of the code then just ignore me, and I will keep using the one I made, and will use this one only for the adults. |
#2
|
||||
|
||||
I think the last alt form also takes the chance into consideration. If you set the chance to be 1, it will only be selected 1 out of 100 times. I dont quite understand the problem you are having though. Does the new alt form get selected even if the last alt form is not the specified ID? If so, its a bug and I need to fix. But if the new alt form isnt selected even if you have set the last alt form, then it is normal assuming you have set chance to be less than 100.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
Sorry English is not my native language so I have some troubles understanding or explaining but i think this will show my problem:
the first alt1 starts at level5 and has a chance of 30(level4 and below are egg and use the same images for both normal and alt). I set alt2 and alt3 a chance of 100% and also set the Last alt form id: alt2 last form id is 1 and for alt3 last form id is 2 So when the egg "hatches" I was hopping this: -> -> default-> default-> default -> -> alt1-> alt2-> alt3 but I get this: -> -> default-> alt2-> alt3 or this: -> -> default-> default-> alt3 For me the code don't check if the adopt has the last alt form id to evolve it to the next alt form. Once the default level5 evolves to level6 it becomes alt2, same as those default that level up to level7, they became alt3 I hope I made sense... |
#4
|
||||
|
||||
So you are saying that, the last alt ID field does not even work at all? Even if the chance is 100 from alt2 to alt 3(with alt2 specified as last alt for alt 3)?
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#5
|
||||
|
||||
ID: 1 Alt1 appear at level5 chance of 30 no last alt form selected
Id: 2 Alt2 appear at level6 chance of 100 last alt form: ID 1 ID: 3 Alt3 appear at level7 chance of 100 last alt form: ID 2 What i understood was that if You set a last alt form for an alt, that alt Will only be selected if the adopt is using the defined ID that You set in the last alt form. this is the problem I have, the code does not check if the adoptable level5 is using alt1 or not. it simply changes everyone to alt2 form once they reach level6 and with those who are at level6 the same thing happens, it does not check whether or not they are using alt2, once they reach level7 they all become alt3. At the end there is no adoptable left using the default form. they are all alts In My case: yes the last alt form field don't work, all the adopt of that breed becomes alts Last edited by kristhasirah; 01-16-2021 at 04:25 PM. |
#6
|
||||
|
||||
I see, I will look into it. On my demo site the adoptables have only 1 adult form(other than the egg form), so it was never a problem. Guess I need to take a look for more complex situations.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
|
|
What's New? |
What's Hot? |
What's Popular? |