• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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.

[Scripting Question] Trainer card script error

  • 7
    Posts
    3
    Years
    • Seen Apr 12, 2022
    When I try to open the trainer card I get the error

    [Pokémon Essentials version 19.1]
    Exception: NoMethodError
    Message: undefined method `width' for nil:NilClass
    Backtrace:
    279:UI_TrainerCard:30:in `pbStartScene'
    279:UI_TrainerCard:107:in `pbStartScreen'
    268:UI_PauseMenu:217:in `block (2 levels) in pbStartPokemonMenu'
    080:MessageConfig:566:in `pbFadeOutIn'
    268:UI_PauseMenu:214:in `block in pbStartPokemonMenu'
    268:UI_PauseMenu:147:in `loop'
    268:UI_PauseMenu:147:in `pbStartPokemonMenu'
    032:Scene_Map:102:in `call_menu'
    032:Scene_Map:197:in `update'
    032:Scene_Map:218:in `block in main'

    I must have accidentally removed the definition of width somewhere but I'm having trouble finding it by comparing my script to the unedited script. Can anyone help?
     
    I believe it's because you don't have your player's trainer sprite in the Trainers folder
     
    Back
    Top