• 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!
  • 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.

Need Help with Hoopa's problem

Diegou18

Forever Chandelure lover.
  • 75
    Posts
    7
    Years
    • Seen Aug 16, 2021
    I created a wild battle with Hoopa to catch it, but when I do and Hoopa is stored in the PC, this error appears.

    [PokeCommunity.com] Need Help with Hoopa's problem

    What is happening? I really need to catch this Pokémon to continue with the game's story.
     
    what is the exact script you used to start the battle?

    and it it doesn't need to be caught, you can add it directly to your party by using the following command:
    pbAddPokemon(:HOOPA,70)
    (i'm guessing you want him to be level 70 judging from the error code, otherwise you can change te number into something else)
     
    Last edited:
    The script that I used to start the battle is pbWildBattle. Besides, the level isn't the problem, because I proved with different levels and the error appears anyway. The issue occurs when the Pok?mon is added to my team or the PC (doesn't matter if I add it from the Debug or the pbAddPok?mon script).
     
    "cannot convert false into integer" sounds like the problem. I assume you've defined Hoopa in such a way that its form is "false" instead of "0".

    If you look at PSystem_Utilities line 855 you can see that form does have to be an integer because it's used to index into an array:
    Code:
    if formdata[species] && formdata[species][form] && formdata[species][form]>0

    If instead of "false" it was "0" you'd have successfully exited that function on line 853:
    Code:
    return species if form==0

    If you want to try and work out why form is "false" you probably want to read Pokemon_Forms and PokeBattle_Pokemon.
     
    Last edited:
    Thanks for help me. I was looking the scripts and I solved it. I think that I couldn't do it without your message. (Of course, thanks to dragonmaniac for answering too.)
     
    Last edited:
    I've just modified the Pokemon_Forms script. I deleted the section that allows to Hoopa-Unbound return to its initial form after 3 days, and I replace the whole script by an old version (v16.2) of the same Pok?mon. I don't know why the "time" part is giving problems, but it seems to be a common problem with Hoopa.
     
    Last edited:
    Back
    Top