Game Development Your number one stop for anything related to creating games (except ROM hacks). You can even make your own!

Draconius GO
Reply
 
Thread Tools
  #1    
Old September 26th, 2017 (8:44 PM).
Tantinoctus Tantinoctus is offline
     
    Join Date: Sep 2017
    Posts: 4
    My game's returning an error when allies and opponents use Spite. The error is pbSetPP is undefined. I haven't really messed around in there... anyone experience this before? Hopefully there's a quick fix.
    Reply With Quote

    Relevant Advertising!

      #2    
    Old September 26th, 2017 (11:27 PM).
    Marin's Avatar
    Marin Marin is online now
    Not Bored
    • Moderator
     
    Join Date: Nov 2016
    Location: The Netherlands
    Gender: Male
    Nature: Bashful
    Posts: 599
    Quote:
    Originally Posted by Tantinoctus View Post
    My game's returning an error when allies and opponents use Spite. The error is pbSetPP is undefined. I haven't really messed around in there... anyone experience this before? Hopefully there's a quick fix.
    It'd help if you'd show the full error.
    __________________
    Reply With Quote
      #3    
    Old September 28th, 2017 (4:10 PM). Edited September 28th, 2017 by Tantinoctus.
    Tantinoctus Tantinoctus is offline
       
      Join Date: Sep 2017
      Posts: 4
      Quote:
      Originally Posted by Marin View Post
      It'd help if you'd show the full error.
      Haha, good point. Image attached, couldn't post the whole error message here.
      Attached Thumbnails
      Capture.PNG‎  
      Reply With Quote
        #4    
      Old September 28th, 2017 (5:03 PM).
      Vendily's Avatar
      Vendily Vendily is online now
         
        Join Date: Aug 2015
        Gender: Female
        Nature: Calm
        Posts: 733
        def pbSetPP is a method on PokeBattle_Battler, not PokeBattle_Move.
        It takes the move and the new pp as arguments.
        Looking at the line, it looks like it should be
        Code:
        opponent.pbSetPP(i,i.pp-reduction)
        __________________
        Resources for ROM hackers has moved.

        Reply With Quote
        Reply

        Quick Reply

        Join the conversation!

        Create an account to post a reply in this thread, participate in other discussions, and more!

        Create a PokéCommunity Account

        Sponsored Links
        Thread Tools

        Posting Rules
        You may not post new threads
        You may not post replies
        You may not post attachments
        You may not edit your posts

        BB code is On
        Smilies are On
        [IMG] code is On
        HTML code is Off

        Forum Jump


        All times are GMT -8. The time now is 1:43 PM.