• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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 set Partner Trainers healing player's party to a switch

  • 2
    Posts
    5
    Years
    • Seen May 20, 2020
    Hello, I'm somewhat new to Pokémon Essentials so this might be something that's common knowledge, but I was wondering if there was a way to make it so that a partner trainer only heals your party after every battle if a switch is set to on.
    If context is needed for why this would be desired, I wanted to make my partner trainers feel more distinct, such as some being more helpful in battle (stronger Pokémon), while others would be more helpful outside of battle (heal after every fight) so the player would need to weigh which partner they wanted to bring along.
     
    I don't know if it's built-in, but if not you should be able to add that feature pretty easily, all you need to do is find the line of code where your partner heals your party, and wrap it in something like:
    Code:
    if $game_switches[X]
      ...
    end
    Where "X" is whatever switch number you want to use, and "..." is the bit of code that does the healing.
     
    Back
    Top