• 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!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Need help with form changing held item script

  • 1
    Posts
    8
    Years
    • Seen Apr 22, 2024
    So, I began a new pokemon game with essentials. I tried to make a script in v16.2 that makes my test pok?mon change his form when he has a specific item, with the extra effect of the defence or attack stats raising by 50. The problem is that I tried to use Arceus' Plate transformations. I also tried Giratina's Griseous Orb transformation. But when I tried it, It didn't work. This is my current script...
    Code:
    MultipleForms.register(:WHISCASH,{
    "getBaseStats"=>proc{|pokemon|
       next if pokemon.form==0
       case pokemon.form
       when 2; next [110,78,123,60,76,121] # Armored
       when 3; next [110,128,73,60,126,71] # Weaponed
       else;   next                        # Normal
       end
    },
    "getForm"=>proc{|pokemon|
         next 2  if isConst?(pokemon.item,PBItems,:WHISCASHARMOR)
         next 3  if isConst?(pokemon.item,PBItems,:WHISCASHWEAPON)
         next 0
    }
    })
    Whiscash is just a template for everything tryout. Also I need to use forms 2 and 3 for this, because it also has a mega. Can anyone smart help me out and explain what I did wrong?
     
    Back
    Top