• 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!
  • Cyndy, May, Hero (Conquest), or Wes - 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.

[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