• 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!
  • 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] I'm getting a strange error when running a battle.

  • 68
    Posts
    6
    Years
    • Seen Sep 19, 2023
    So I'm making the player battle a wild Fearow and I'm getting this error.
    Spoiler:

    Can someone please help me? I have no idea what that means.
     
    Have you made any changes to PSystem_PokemonUtilities?
    Specifically near line 237? Running the script

    Code:
    pbWildBattle(:FEAROW,20)
    in a vanilla version of essentials doesn't bring up any errors.
    Also, are you using EBS?

    My (first) suggestion would be to copy and paste the entirety of PSystem_PokemonUtilities from a clean version of essentials and try encountering the wild battle event again.

    Here's what my def pbSeenForm looks like, you can c&p it over your own if you'd like to try,

    Code:
    def pbSeenForm(poke,gender=0,form=0)
      $Trainer.formseen     = [] if !$Trainer.formseen
      $Trainer.formlastseen = [] if !$Trainer.formlastseen
      if poke.is_a?(String) || poke.is_a?(Symbol)
        poke = getID(PBSpecies,poke)
      end
      if poke.is_a?(PokeBattle_Pokemon)
        gender  = poke.gender
        form    = (poke.form rescue 0)
        species = poke.species
      else
        species = poke
      end
      return if !species || species<=0
      gender = 0 if gender>1
      formname = pbGetMessage(MessageTypes::FormNames,pbGetFSpeciesFromForm(species,form))
      form = 0 if !formname || formname==""
      $Trainer.formseen[species] = [[],[]] if !$Trainer.formseen[species]
      $Trainer.formseen[species][gender][form] = true
      $Trainer.formlastseen[species] = [] if !$Trainer.formlastseen[species]
      $Trainer.formlastseen[species] = [gender,form] if $Trainer.formlastseen[species]==[]
    end
     
    Last edited:
    Surprisingly, no, I'm not using EBS, and no, I haven't made any changes to PSystem_PokemonUtilities. Do you think there's any other issues?
     
    But, I will try to paste the clean version and get back to you if it works. BTW, I put the pbWildBattle(:FEAROW,20) on its own separate event and it worked fine, so I think that something in the Event I have is causing it not to work. If you want, I can send a picture of the event
     
    Last edited:
    But, I will try to paste the clean version and get back to you if it works. BTW, I put the event on its own separate event and it worked fine, so I think that something in the Event I have is causing it not to work. If you want, I can send a picture of the event

    Yeah definitely, sounds like there's something else interacting with it - let's see what that event page looks like!
     
    Back
    Top