• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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 ME!!!

Rayquaza.

Lead Dev in Pokémon Order and Chaos
  • 702
    Posts
    13
    Years
    As many people know I have no scripting knowledge whatsoever, so it was inevitable that when I tried to add stuff to the multiple forms script I get a syntax (or worse).

    Luckily all I got was a syntax instead of screwing up the entire game, while trying to input a bit for KYUREM's new forms this came up (See attachment).

    If you know how to fix the highlighted part that'd be great.

    also if you want to try to edit this in your RMXP here is the script I tried to input:
    Code:
    MultipleForms.register(:KYUREM,{
    "ability"=>proc{|pokemon|
     if pokemon.form==0
      next getID(PBAbilities,:PRESSURE)
     else
      next getID(PBAbilities,:MOLDBREAKER)
     end
    },
    "getForm"=>proc{|pokemon|
     if isConst?(pokemon.item,PBItems,:ICEORB)
      next 1
     if isConst?(pokemon.item,PBItems,:VOLTORB)
      next 2
      next 0 
    },
    "getBaseStats"=>proc{|pokemon|
     case pokemon.form
      # White Forme
      when 1; next [170,160,140,120,140,140]
      # Black Forme
      when 2; next [170,170,150,110,140,150]
      # Normal Forme
      else;   next [150,100,120,90,100,120]
     end
    }
    })
     

    Attachments

    • [PokeCommunity.com] HELP ME!!!
      Script Error.png
      35.2 KB · Views: 12
    Last edited:
    See the big ol' Pokemon Essentials section? That's where this belongs, so I'm gonna go ahead and move this over there, any Pokemon Essentials related questions go there. This section is just for tutorials and resources.

    Moved.
     
    Code:
    MultipleForms.register(:KYUREM,{
    "ability"=>proc{|pokemon|
       if pokemon.form==0
         next getID(PBAbilities,:PRESSURE)
       else
         next getID(PBAbilities,:MOLDBREAKER)
       end
    },
    "getForm"=>proc{|pokemon|
       if isConst?(pokemon.item,PBItems,:ICEORB)
         next 1
       [COLOR=Red]end[/COLOR]
       if isConst?(pokemon.item,PBItems,:VOLTORB)
         next 2
       [COLOR=Red]end[/COLOR]
       next 0 
    },
    "getBaseStats"=>proc{|pokemon|
       case pokemon.form
         # White Forme
         when 1; next [170,160,140,120,140,140]
         # Black Forme
         when 2; next [170,170,150,110,140,150]
         # Normal Forme
         else;   next [150,100,120,90,100,120]
       end
    }
    })
    The red parts. There are ways to neaten it up, but that's just aesthetic.
     
    Back
    Top