• 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] I tried to give a Pokémon to the player as a starter option and got this, I'll provide more event info if needed

R.L

11
Posts
3
Years
  • =================

    [2024-04-27 10:50:01 +0100]
    [Pokémon Essentials version 21.1]
    [v21.1 Hotfixes 1.0.9]

    Script error in event 1 (coords 3,3), map 2 (Lappet Town)
    Exception: RuntimeError
    Message: Unknown ID pkmn.

    ***Full script:
    pkmn = Pokemon.new(:BULBASAUR, 5)
    pkmn.ability = :PSIONICREVERSAL
    pkmn.cannot_release = true
    pkmn.iv[:DEFENSE] = 31
    pkmn.iv[:SPECIAL_DEFENSE] = 31
    pkmn.nature = :BASHFUL
    pkmn.owner.name = "???"
    pkmn.poke_ball = :STRANGEBALL
    pkmn.giveRibbon(:DESTINYMARK)
    pkmn.calc_stats
    pbAddPokemonSilent(:pkmn)

    Backtrace:
    GameData:103:in `get'
    Pokemon:1160:in `initialize'
    [Generation 9 Pack] [000] Pokemon.rb:45:in `initialize'
    [[MUI] Improved Mementos] [003] Data.rb:266:in `initialize'
    [[DBK] Terastallization] [005] Pokemon.rb:9:in `initialize'
    Utilities_Pokemon:80:in `new'
    Utilities_Pokemon:80:in `pbAddPokemonSilent'
    (eval):11:in `execute_script'
    Interpreter:138:in `eval'
    Interpreter:138:in `execute_script'
     
    1,682
    Posts
    8
    Years
    • Seen yesterday
    Don't put the : in pbAddPokemonSilent(:pkmn). it should just be pbAddPokemonSilent(pkmn)
     
    Back
    Top