• 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.

Help, how do i change rotom forms?

  • 23
    Posts
    10
    Years
    • Seen Dec 18, 2018
    For rotom what script do i need to have placed where, and how do i call it in pkmn essentials. All i have is this from an old post i found, and don't know where to place it or how to call it.

    # Start here
    def pbRotomForm1 # Defines the call method
    pkmn=pbFirstAblePokemon # get's the first pokemon that has 1hp+
    if pkmn!=479 # checks if the pokemon is rotom.
    Kernel.pbMessage(_INTL("Your text here if not rotom.")) # text if you don't have rotom first in your party.
    return false # exits the script as false
    end # ends the if branch
    Kernel.pbMessage(_INTL("Your text here if pokemon = rotom.")) # text if you have rotom in the first slot with 1+ hp.
    pkmn.form=1 # (change form by replacing x 0 is normal 1+ is different forms, it is different for each kit.)
    end # ends the script.
    ###End Script###
     
    Exception:RuntimeError
    message: Script error(ect,ect)
    Exception:NameError
    Message(eval):1:in 'pbExecuteScript'undefined local variavle pbRotomForm1 for#<interpreter:0xab4eb30>
    *** Full script:
    pbRotomForm1
    -----

    I pasted the original code in the first post i made into the script editor in a new section i called pbRotomForm1 and tried to call it in game with script called pbRotomForm1 and dont know what to do
     
    Last edited:
    That was a mistake when i typed into the fourm, the capitalization is fine in the scripts
     
    Back
    Top