• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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
    8
    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
     
    InternalName should also be set with an = and not with :
     
    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.
     
    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