So I'm trying to give the player an egg that hatches into a rockruff that evolves into a dusk lycanroc but the problem I'm facing is that the code I'm using with spawning lycanroc is interfering with setting the form of the egg. So the code I have for rockruff to decide what lycanroc it evolves into is:
And the script I have in the event is:
What am I doing wrong? (and I should mention that dusk lycanroc is a form 2 and yes everything is stated correctly in the pokemonforms.text file and the battlers file. I've tested all and they work but for some reason I can't give the second form to it in both egg and gift if that makes sense)
Spoiler:
MultipleForms.register(:ROCKRUFF,{
"getForm"=>proc{|pokemon|
if PBDayNight.isDay?
next 0
else PBDayNight.isNight?
next 1
end
}
})
"getForm"=>proc{|pokemon|
if PBDayNight.isDay?
next 0
else PBDayNight.isNight?
next 1
end
}
})
And the script I have in the event is:
Spoiler:
egg=$Trainer.lastPokemon
egg.makeMale
egg.pbLearnMove(:TACKLE)
egg.pbLearnMove(:LEER)
egg.pbLearnMove(:FIREFANG)
egg.pbLearnMove(:THUNDERFANG)
egg.form=2
egg.calcStats
egg.makeMale
egg.pbLearnMove(:TACKLE)
egg.pbLearnMove(:LEER)
egg.pbLearnMove(:FIREFANG)
egg.pbLearnMove(:THUNDERFANG)
egg.form=2
egg.calcStats
What am I doing wrong? (and I should mention that dusk lycanroc is a form 2 and yes everything is stated correctly in the pokemonforms.text file and the battlers file. I've tested all and they work but for some reason I can't give the second form to it in both egg and gift if that makes sense)