• 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.
  • 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] Add new pokemon form metod?

PiT

  • 10
    Posts
    20
    Years
    • Seen Oct 28, 2016
    Hello

    I have question , how to add new form metod to essentials scripts?
    I create pokemon which changes form to diffrent form when specyfic pokemon has in a party.

    example:

    My pokemon normal form + Deoxys in Party - my pokemon have DNA form

    sorry for my english :d
     
    Last edited by a moderator:
    In Pokemon_MultipleForms, this code will help you out:
    Code:
    MultipleForms.register(:SPECIESX,{ [COLOR=DarkGreen]# placeholder species name
    [COLOR=Black]"getForm"=>proc{|pokemon|
       for i in 0...$Trainer.party.length
         [/COLOR][/COLOR][COLOR=DarkGreen][COLOR=Black][COLOR=DarkGreen][COLOR=Black][COLOR=DarkGreen][COLOR=Black]next 1 [/COLOR][/COLOR][/COLOR][/COLOR]if isConst?($Trainer.party[i].species,PBSpecies,:SPECIESY) [/COLOR][/COLOR][COLOR=DarkGreen][COLOR=Black][COLOR=DarkGreen]# placeholder species name
    [COLOR=Black]   end
       next 0
    },
    "onSetForm"=>proc{|pokemon|
       pbSeenForm(pokemon)
    }
    })[/COLOR][/COLOR][/COLOR][/COLOR]

     
    Last edited:
    Back
    Top