• 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] The species number (no. 0 of 649) is invalid

Mewnair

Aka Regular Goat
10
Posts
7
Years
  • Here's the error message. Does anyone know how to fix this?

    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 17]

    Exception: RuntimeError

    Message: Script error within event 2 (coords 31,14), map 22 (Bherna Village):

    Exception: ArgumentError

    Message: PokeBattle_Pokemon:916:in `__mf_initialize'The species number (no. 0 of 649) is invalid.

    ***Full script:

    poke = PokeBattle_Pokemon.new(
    :MOOFAH, 5, $Trainer)
    pkmn.name="Moofy"
    poke.setAbility(2)
    poke.setNature(:ADAMANT)
    poke.form=1
    pkmn.makeFemale
    pkmn.happiness=180
    poke.ballused=20
    poke.calcStats
    pbAddToParty(poke)


    Interpreter:243:in `pbExecuteScript'

    Pokemon_Forms:43:in `initialize'

    (eval):1:in `new'

    (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: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:161:in `update'

    Scene_Map:159:in `loop'

    Scene_Map:168:in `update'

    Scene_Map:232:in `main'


    For reference, I edited the Pokemon.txt file as I was taught to by the Essentials Docs wiki. I added the Pokémon to the end of the Pokémon list. Is there another step I need to take or is there something I'm just not seeing in this whole mess?
    [650]
    Name=Moofah
    InternalName:MOOFAH
    Type1=NORMAL
    BaseStats=73,88,73,88,55,62
    GenderRate=Female50Percent
    GrowthRate=Medium
    BaseEXP=38
    EffortPoints=0,1,0,1,0,0
    Rareness=230
    Happiness=70
    Moves=1,TACKLE,3,NUZZLE,5,DOUBLEKICK,7,ASSIST,9,REST,13,STOMP,17,ROUND,19,METRONOME,23,HEADBUTT,26,TRIPLEKICK,28,SNORE,31,AGILITY,35,ATTRACT,39,SECRETPOWER,43,RETALIATE,45,HEARTSTAMP,48,BATONPASS,51,UTURN,55,IRONHEAD,62,ZENHEADBUTT,65,TRUMPCARD,70,DOUBLEEDGE,74,CLOSECOMBAT
    Compatibility=Field
    StepsToHatch=9000
    Height=0.4
    Weight=8
    Color=White
    Shape=8
    Kind=Fluffy
    Pokedex=A herbivore which is rarely found in the wild. They form a close bond with their shepherds.
    FormName=Normal
    Abilities=CUTECHARM,FRIENDGUARD
    HiddenAbility=FURCOAT
    EggMoves=ATTRACT,RETURN,DOUBLEKICK,HEADBUTT,COTTONGUARD,ZENHEADBUTT,TRUMPCARD,AGILITY
    Habitat=Grassland
    RegionalNumbers=650
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    Code:
    poke = PokeBattle_Pokemon.new(
    :MOOFAH, 5, $Trainer)
    pkmn.name="Moofy"
    poke.setAbility(2)
    poke.setNature(:ADAMANT)
    poke.form=1
    pkmn.makeFemale
    pkmn.happiness=180
    poke.ballused=20
    poke.calcStats
    pbAddToParty(poke)
    I'll also point out that you're making random use of both poke and pkmn. The Pokémon you created has been called poke. Be consistent.
     

    Mewnair

    Aka Regular Goat
    10
    Posts
    7
    Years
  • Oh yeah. I'm a novice at coding, sorry for wasting your time on this. I've been trying to follow the examples shown, but I can be really incompetent sometimes, hence my little issue here.
     
    Last edited:
    Back
    Top