• 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] adding multitype to a pokemon that Isn't Arceus

11
Posts
5
Years
    • Seen May 19, 2019
    Hi, I'm trying to add Silvally to my essentials game, but instead of using its canon ability, im trying to give it multitype so it can use plates.

    as of now, Silvally works fine and even changes color when it's holding a plate, but does not change type. I'm testing it using a pidgey that knows tackle and right now that pidgey can damage silvally while they are holding the ghost plate.

    code in pokebattle_battler after arceus in def pbCheckForm
    # Silvally
    if isConst?(self.ability,PBAbilities,:MULTITYPE) &&
    isConst?(self.species,PBSpecies,:SILVALLY)
    if [email protected]
    [email protected]
    transformed=true
    end
    end
    in pokemon forms, again after arceus's entry
    MultipleForms.register(:SILVALLY,{
    "getForm"=>proc{|pokemon|
    next 1 if isConst?(pokemon.item,PBItems,:FISTPLATE)
    next 2 if isConst?(pokemon.item,PBItems,:SKYPLATE)
    next 3 if isConst?(pokemon.item,PBItems,:TOXICPLATE)
    next 4 if isConst?(pokemon.item,PBItems,:EARTHPLATE)
    next 5 if isConst?(pokemon.item,PBItems,:STONEPLATE)
    next 6 if isConst?(pokemon.item,PBItems,:INSECTPLATE)
    next 7 if isConst?(pokemon.item,PBItems,:SPOOKYPLATE)
    next 8 if isConst?(pokemon.item,PBItems,:IRONPLATE)
    next 10 if isConst?(pokemon.item,PBItems,:FLAMEPLATE)
    next 11 if isConst?(pokemon.item,PBItems,:SPLASHPLATE)
    next 12 if isConst?(pokemon.item,PBItems,:MEADOWPLATE)
    next 13 if isConst?(pokemon.item,PBItems,:ZAPPLATE)
    next 14 if isConst?(pokemon.item,PBItems,:MINDPLATE)
    next 15 if isConst?(pokemon.item,PBItems,:ICICLEPLATE)
    next 16 if isConst?(pokemon.item,PBItems,:DRACOPLATE)
    next 17 if isConst?(pokemon.item,PBItems,:DREADPLATE)
    next 18 if isConst?(pokemon.item,PBItems,:PIXIEPLATE)
    next 0
    }
    })
     

    Poq

    144
    Posts
    6
    Years
    • Seen Aug 28, 2021
    So this might be an unnecessarily basic question, but I'm starting with the simplest explanation - do you have the different forms defined in the pokemonforms PBS file? The code doesn't actually do anything otherwise.
     
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    Okay, so Silvally is changing form but not type? Really stupid question, did you set different types for each form?

    EDIT: Poq beat me to it! Snap!
     
    Last edited:
    Back
    Top