• 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 Conquest 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.

[pokeemerald] Make trainer hill's trainers give xp and money

  • 13
    Posts
    1
    Years
    • Seen Mar 29, 2024
    I'm trying to make the trainer hill trainers give xp and money. The problem is, I don't know where to modify the code to do that. I know that the trainer hill battles are defined in data/scripts/trainer_hill.inc and that the main functions are defined in src/trainer_hill.c but I can't find anything related to money and xp. Does anybody have a clue on how to do that ?
     
    I'm trying to make the trainer hill trainers give xp and money. The problem is, I don't know where to modify the code to do that. I know that the trainer hill battles are defined in data/scripts/trainer_hill.inc and that the main functions are defined in src/trainer_hill.c but I can't find anything related to money and xp. Does anybody have a clue on how to do that ?
    You should look at the code that handles those mechanics and see how it behaves differently in trainer hill.
    For example Cmd_getexp has a check for not giving exp in the trainer hill and HandleEndTurn_BattleWon runs a different battle script for trainer hill which doesn't give you money.
     
    Back
    Top