• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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.

[Error] pbOnStartUse error

  • 2
    Posts
    6
    Years
    • Seen Aug 4, 2019
    Hi Guys

    First of all, I just discovered Pokemon essentials and LOVE having the opportunity to make my own pokemon game, thank you everyone for developing and maintaining such a cool system!

    I ran into a strange error while editing some of the script to implement psychic terrain. I was jumping around to insert all the effects, and testing now and again, when I started getting the below error on startup:

    Script 'PokeBattle_Clauses' line 161:NameError occurred.
    undefined method 'pbOnStartUse' for class 'PokeBattle_Move_0E0'

    When I check out the script line, it seems to be the script for Seldestruct. No idea why that started acting up as I didn't edit it at all, unless I did something by mistake?

    Anyone have any ideas? Maybe compare the lines of text in your version with the version I have (screenshots attahed) to see what the difference is.
    My only guess is I added the move "Psychic Terrain" right under Grassy Terrain and the move ID (159) may have affected it somehow?

    Any ideas would be appreciated
     

    Attachments

    • [PokeCommunity.com] pbOnStartUse error
      Clauses line161 error.PNG
      117.4 KB · Views: 12
    • [PokeCommunity.com] pbOnStartUse error
      PKMNRPGXP startuperror.PNG
      21.7 KB · Views: 7
    I could not really tell you. It looks the same as mine. Maybe it is the Psychic Terrain script. Can we see it?
     
    Thanks for the response, you can see the script here:
     

    Attachments

    • [PokeCommunity.com] pbOnStartUse error
      psychicterrainscript.PNG
      282.3 KB · Views: 6
    I'm sorry, I don't know why you have an error. You said that you get the error on start up. Were you adding other moves? Maybe something else is the problem.
    You Psychic Terrain looks like mine, and I don't have a problem.

    Code:
    649,PSYCHICTERRAIN,Psychic Terrain,159,0,PSYCHIC,Status,0,10,0,01,0,,"Protects Pokémon on the ground from priority moves and boost Psychic-type moves for five turns."
     
    Back
    Top