Hey all, I'm at a bit of a loss. I have a Pokemon with 4 default forms (randomized), and depending on the form, I want it to mega evolve into its respective form.
I've used Rot8er_ConeX 's Castform as an example (thread: https://www.pokecommunity.com/threads/352261) as well as a similar thread with condensed code (https://www.pokecommunity.com/threads/375737), but no matter what I try, my Pokemon is always mega evolving into Form 4 (aka the first mega form).
Here's my current code, written under the Pokemon_Forms script:
And my pokemonforms.txt PBS file:
I have regular Sableye set up as "Felsic" to correspond with its mega.
Not entirely sure where it's going wrong? As I said, every time I mega evolve any of the base forms, they all mega evolve into Mega Sableye (Felsic).
I've used Rot8er_ConeX 's Castform as an example (thread: https://www.pokecommunity.com/threads/352261) as well as a similar thread with condensed code (https://www.pokecommunity.com/threads/375737), but no matter what I try, my Pokemon is always mega evolving into Form 4 (aka the first mega form).
Here's my current code, written under the Pokemon_Forms script:
Code:
MultipleForms.register(:SABLEYE,{
"getMegaForm"=>proc{|pokemon|
next 4 if isConst?(pokemon.item,PBItems,:SABLENITE) && pokemon.form==0
next 5 if isConst?(pokemon.item,PBItems,:SABLENITE) && pokemon.form==1
next 6 if isConst?(pokemon.item,PBItems,:SABLENITE) && pokemon.form==2
next 7 if isConst?(pokemon.item,PBItems,:SABLENITE) && pokemon.form==3
next
},
"getUnmegaForm"=>proc{|pokemon|
next 0 if pokemon.form==4
next 1 if pokemon.form==5
next 2 if pokemon.form==6
next 3 if pokemon.form==7
}
})
And my pokemonforms.txt PBS file:
Code:
[SABLEYE-1]
FormName=Mafic
#-------------------------------
[SABLEYE-2]
FormName=Bismuth
#-------------------------------
[SABLEYE-3]
FormName=Amethyst
#-------------------------------
[SABLEYE-4]
FormName=Mega Sableye (Felsic)
MegaStone=SABLENITE
BaseStats=50,85,125,85,115,20
Abilities=MAGICBOUNCE
#-------------------------------
[SABLEYE-5]
FormName=Mega Sableye (Mafic)
MegaStone=SABLENITE
BaseStats=50,85,125,85,115,20
Abilities=MAGICBOUNCE
#-------------------------------
[SABLEYE-6]
FormName=Mega Sableye (Bismuth)
MegaStone=SABLENITE
BaseStats=50,85,125,85,115,20
Abilities=MAGICBOUNCE
#-------------------------------
[SABLEYE-7]
FormName=Mega Sableye (Amethyst)
MegaStone=SABLENITE
BaseStats=50,85,125,85,115,20
Abilities=MAGICBOUNCE
I have regular Sableye set up as "Felsic" to correspond with its mega.
Not entirely sure where it's going wrong? As I said, every time I mega evolve any of the base forms, they all mega evolve into Mega Sableye (Felsic).
Last edited: