• 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!
  • Akari, Selene, Mint, Solana - 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.

Crash when using Toxic

  • 5
    Posts
    9
    Years
    So for some reason Toxic seems to be bugging out whenever I used it. Here's a screencap of the error message and the text by itself incase that doesn't work.
    To be more precise, the game will continue to run but it'll repeat using toxic right after and toxic will act like regular poison instead of badly poisoned.
    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: NoMethodError
    Message: private method `gsub' called for true:TrueClass
    DrawText:215:in `toUnformattedText'
    DrawText:225:in `unformattedTextLength'
    SpriteWindow:3558:in `setText'
    SpriteWindow:3531:in `text='
    PokeBattle_Scene:1422:in `pbDisplayMessage'
    PokeBattle_Battle:2423:in `pbDisplay'
    PokeBattle_BattlerEffects:206:in `pbPoison'
    PokeBattle_MoveEffects:234:in `pbEffect'
    PokeBattle_Battler:2705:in `pbProcessMoveAgainstTarget'
    PokeBattle_Battler:2661:in `each'
     

    Attachments

    • [PokeCommunity.com] Crash when using Toxic
      Error.png
      17.7 KB · Views: 10
    here's lines 1417-1447

    Code:
      def pbDisplayMessage(msg,brief=false)
        pbWaitMessage
        pbRefresh
        pbShowWindow(MESSAGEBOX)
        cw=@sprites["messagewindow"]
        cw.text=msg
        i=0
        loop do
          pbGraphicsUpdate
          pbInputUpdate
          pbFrameUpdate(cw)
          if i==40
            cw.text=""
            cw.visible=false
            return
          end
          if Input.trigger?(Input::C) || @abortable
            if cw.pausing?
              pbPlayDecisionSE() if !@abortable
              cw.resume
            end
          end
          if !cw.busy?
            if brief
              @briefmessage=true
              return
            end
            i+=1
          end
        end
      end

    sorry, can't seem to get the indentations to work properly ~_~
     
    Last edited:
    Back
    Top