• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
    4
    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