• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Need Help With Pokemon Form Depending On Happiness

  • 158
    Posts
    6
    Years
    Okay so I have a Pokemon for a fangame I am making called Emomoth, which can change its forms depending on its happiness. I know that Pokemon forms in Pokemon Essentials are defined mostly in the Script Editor, and that is what I am having trouble with!

    Here's what I want:

    Form 0 (Neutral form) is Emomoth's default form.

    Form 1 (Happy form) is the form Emomoth changes into if it has 255/max happiness.

    Form 2 (Sad form) is the form Emomoth changes into if it has 0 happiness.

    Please help!
     
    Look inside _Forms script and find pbGetForm (Keldeo haves that code to change to Resolute Form). Now, copy and paste a new code for your pokemon.
    To edit like you want just put:
    next 1 if pokemon.happyness>254
    next 2 if pokemon.happyness<1
    next 0

    Like this:
    Code:
    MultipleForms.register(:EMOMOTH,{
    "getForm"=>proc{|pokemon|
       next 2 if pokemon.happyness<1
       next 1 if pokemon.happyness>254
       next 0                                  
    }
    })

    P.S: You need to add them (forms 1 and 2) inside pokemonform.txt.
     
    Last edited:
    Back
    Top