• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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] Help with form

  • 158
    Posts
    6
    Years
    Hi! I need some help with a Pokemon form! It's for Illumifly, which is like Meowstic's form. But everytime I evolve a female Buzlite, it evolves into a male form Illumifly instead!

    Here's the code:
    Code:
    MultipleForms.register(:BUZLITE,{
    "getFormOnCreation"=>proc{|pokemon|
       next 1 if pokemon.isFemale?      #Female
       next 0                           #Male        
    }
    })
    
    MultipleForms.copy(:BUZLITE,:ILLUMIFLY)

    What am I doing wrong?!
     
    Hi! I need some help with a Pokemon form! It's for Illumifly, which is like Meowstic's form. But everytime I evolve a female Buzlite, it evolves into a male form Illumifly instead!

    Here's the code:
    Code:
    MultipleForms.register(:BUZLITE,{
    "getFormOnCreation"=>proc{|pokemon|
       next 1 if pokemon.isFemale?      #Female
       next 0                           #Male        
    }
    })
    
    MultipleForms.copy(:BUZLITE,:ILLUMIFLY)

    What am I doing wrong?!

    Notice how Espurr's code is slightly different. Maybe altering it to be more like this would fix it?:
    Code:
    MultipleForms.register(:ESPURR,{
    "getFormOnCreation"=>proc{|pokemon|
       if pokemon.isFemale?
         pokemon.form=1
       else
         pokemon.form=0
       end
    }
    })
     
    It's working but now male Buzlite evolves into female Illumifly!

    That's odd. Assuming you kept "MultipleForms.copy(:BUZLITE,:ILLUMIFLY)", it should work. Try testing different things in the code if it still isn't working and check that it's correctly defined in pokemonforms.txt.
     
    That's odd. Assuming you kept "MultipleForms.copy(:BUZLITE,:ILLUMIFLY)", it should work. Try testing different things in the code if it still isn't working and check that it's correctly defined in pokemonforms.txt.

    Here's the code in pokemonforms.txt BTW:
    Spoiler:
     
    Try:
    Code:
    MultipleForms.register(:BUZLITE,{
    "getFormOnCreation"=>proc{|pokemon|
       if pokemon.isFemale?
         pokemon.form=1
       else
         pokemon.form=0
       end
    }
    })
    MultipleForms.register(:ILLUMIFLY,{
    "getFormOnCreation"=>proc{|pokemon|
       if pokemon.isFemale?
         pokemon.form=1
       else
         pokemon.form=0
       end
    }
    })
     
    Try:
    Code:
    MultipleForms.register(:BUZLITE,{
    "getFormOnCreation"=>proc{|pokemon|
       if pokemon.isFemale?
         pokemon.form=1
       else
         pokemon.form=0
       end
    }
    })
    MultipleForms.register(:ILLUMIFLY,{
    "getFormOnCreation"=>proc{|pokemon|
       if pokemon.isFemale?
         pokemon.form=1
       else
         pokemon.form=0
       end
    }
    })

    Isn't that the same as Multiple Form Copy?
     
    Actually, I think I figured out the problem! I've been using Debug to change the gender and therefore it's messing with the forms!
     
    Back
    Top