• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
19
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:
    188
    Posts
    9
    Years
    • Seen Jan 21, 2024
    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