Thread: [Essentials Script] Pokemon Birthsigns
View Single Post
  #204    
Old October 3rd, 2018 (6:11 AM). Edited October 3rd, 2018 by Marin.
Marin's Avatar
Marin Marin is offline
Not Bored
 
Join Date: Nov 2016
Age: 16
Gender: Other
Posts: 792
By overwrites PokeBattle_Pokemon's constructor, the potential call to "getFormOnCreation" is overwritten. This causes Pokémon that would normally have a different form upon creation to have form 0.

This could be fixed either by aliasing the constructor to add your instance variables in, or to add the missing code (can originally be found in Pokemon_Forms, line 42) to your overwritten constructor:
Code:
    f=MultipleForms.call("getFormOnCreation",self)
    if f
      self.form=f
      self.resetMoves
    end
I'd highly suggest aliasing though. By overwriting the constructor, you break all other scripts that touch it (regardless of whether they alias or overwrite).

Sorry if I'm speaking too technical terms, I can clarify further if you'd like.
Reply With Quote