• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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] How to change main character? (player can't choose)

  • 1
    Posts
    3
    Years
    • Seen Jan 18, 2022
    Hello!
    No judments needed lol, I was trying to follow a tutorial and it ended up bugging my game.
    I'm having a hard time changing the player sprite. The deal is: the player can't choose between genders. The player can't choose a name. ( The Character name is Alma)
    Also I made the walking cycle and uploaded to the characters folder.
    I clearly missed something because I bugged the Debug version.
    the error that appears is down below
    V

    "Exception `RuntimeError' at 366:Compiler:331 - Undefined value POKEMONTRAINER_Alma in GameData::TrainerType
    File PBS/metadata.txt, section 0, key PlayerA
    POKEMONTRAINER_Alma,trainer_POKEMONTRAINER_Leaf,girl_bike,girl_surf,girl_run,girl_surf,girl_fish_offset,girl

    My Metadata looks like this
    [000]
    Home = 3,7,5,8
    WildBattleBGM = Battle wild.mid
    TrainerBattleBGM = Battle trainer.mid
    WildVictoryME = Battle victory wild.ogg
    TrainerVictoryME = Battle victory trainer.ogg
    SurfBGM = Surfing.mid
    BicycleBGM = Bicycle.mid
    PlayerA = POKEMONTRAINER_Alma,trainer_POKEMONTRAINER_Leaf,girl_bike,girl_surf,girl_run,girl_surf,girl_fish_offset,girl_fish_offset


    I stop trying to fix it because I'm afraid to make things worse. I'm really greatfull if someone can help me out.... thanks in advance..
     
    The error says that there is no "POKEMONTRAINER_Alma" in your file trainertypes.txt (see the docs for more details) ^^
     
    Back
    Top