• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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] Help with WildBattle script

  • 7
    Posts
    6
    Years
    • Seen Jul 12, 2021
    Hello everyone, I was testing some pokemon battlers in essentials and suddenly this message occured:
    Message: Script error within event 45 (coords 19,12), map 2 (Alvorada Town):
    Exception: NoMethodError
    Message: Section101:948:in `pbGenerateWildPokemon'undefined method `gender=' for #<PokeBattle_Pokemon:0xed35278>
    ***Full script:
    pbWildBattle(:GOLBAT,30)

    Interpreter:243:in `pbExecuteScript'
    PField_Field:1001:in `pbWildBattle'
    (eval):1:in `pbExecuteScript'
    Interpreter:1606:in `eval'
    Interpreter:243:in `pbExecuteScript'
    Interpreter:1606:in `command_355'
    Interpreter:494:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'

    Interpreter:276:in `pbExecuteScript'
    Interpreter:1606:in `command_355'
    Interpreter:494:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'

    I guess it error occurs only when the pokémon is a male because when it's female it doesn'ts show, so I tried to replace the interpreter script but I haven't solved anything, can someone help me? Thanks
     
    Hello everyone, I was testing some pokemon battlers in essentials and suddenly this message occured:
    Spoiler:

    I guess it error occurs only when the pokémon is a male because when it's female it doesn'ts show, so I tried to replace the interpreter script but I haven't solved anything, can someone help me? Thanks

    How was lookin your pokemon.txt?
    Spoiler:


    Also, to make a encounter edition you need to put it in 'PField_EncounterModifiers', and inside to code insert 'pokemon.makeFemale'. Like:
    Spoiler:


    I do not know if its possible to make edition in-game.
     
    Hi, thanks for the answer but it didn't work. Now it shows this
    Exception: RuntimeError
    Message: Script error within event 45 (coords 19,12), map 2 (Alvorada Town):
    Exception: NoMethodError
    Message: Section122:848:in `__mf_baseStats'undefined method `fSpecies' for #<PokeBattle_Pokemon:0xf715bf8>
    ***Full script:
    pbWildBattle(:GOLBAT,30)

    Interpreter:243:in `pbExecuteScript'
    Pokemon_MultipleForms:109:in `baseStats'
    PokeBattle_Pokemon:884:in `calcStats'
    PokeBattle_Pokemon:965:in `__mf_initialize'
    Pokemon_MultipleForms:161:in `initialize'
    PField_Field:923:in `new'
    PField_Field:923:in `pbGenerateWildPokemon'
    PField_Field:1001:in `pbWildBattle'
    (eval):1:in `pbExecuteScript'
    Interpreter:1606:in `eval'

    Interpreter:276:in `pbExecuteScript'
    Interpreter:1606:in `command_355'
    Interpreter:494:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'
     
    Can you show what your event command to generate the battle looks like?
     
    Back
    Top