• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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 with encounter modifier

  • 10
    Posts
    12
    Years
    • Seen Sep 11, 2016
    When having one pokemon in my party and when using encounter modifiers: an error will occur if the average of my party is only the level one pokemon. The random level modifier will error out due to dropping to level 0 or below.

    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: ArgumentError

    Message: The level number (-1) is invalid.

    PokeBattle_Pokemon:128:in `level='

    PField_EncounterModifiers:31

    PField_EncounterModifiers:28:in `call'

    Event:54:in `trigger'

    Event:49:in `each'

    Event:49:in `trigger'

    PField_Field:865:in `pbGenerateWildPokemon'

    PField_Field:892:in `pbWildBattle'

    PField_Field:1371:in `pbBattleOnStepTaken'

    PField_Field:1395:in `pbOnStepTaken'



    This exception was logged in

    C:\Users\Alex\Saved Games/Pokemon Essentials/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
     
    Last edited by a moderator:
    I am using v 16.2 and it is not fixed

    I will try and look through to see if I am doing something wrong

    My mistake. I thought I was using the new version but I was using 16.1.

    mej71 is there a way to update my current version of 16.1 to 16.2 but without losing any custom scripting I may have done. When I copy the whole script file it will erase my older one with changes I have made.
     
    Last edited by a moderator:
    It's best to just go through and copy every custom script you've added over.
    When I updated I made a copy of my game and upgraded only one. I then had two tabs of RPGMaker XP open so I could quickly transfer the custom scripts from the old version to the new one.
     
    Back
    Top