• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
    5
    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
     

    WolfPP

    Spriter/ Pixel Artist
  • 1,309
    Posts
    5
    Years
    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.
     
  • 7
    Posts
    5
    Years
    • Seen Jul 12, 2021
    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'
     

    Poq

  • 144
    Posts
    6
    Years
    • Seen Aug 28, 2021
    Can you show what your event command to generate the battle looks like?
     
    Back
    Top