Full-screen + Test play Health

I need some help. I am trying to change the keys for my players health because when i press F6 to change the screen ratio it puts my players health at 1. How do I change the keys for the players health?
That sounds like the test play function with yanfly's script. F5-F8 have functions with yanfly. Can't remember which script at the moment. I believe the battle script.
If you play the game outside of the editor, does it still happen?
That sounds like the test play function with yanfly's script. F5-F8 have functions with yanfly. Can't remember which script at the moment. I believe the battle script.
If you play the game outside of the editor, does it still happen?
It doesn't happen when i play the game outside of the editor. But is there a way to make that not happen in the editor test play?
But is there a way to make that not happen in the editor test play?
Code:
class Scene_Battle
  def update_debug
    return unless $TEST || $BTEST
    return unless Input.press?(:SHIFT)
    debug_heal_party if Input.trigger?(:F5)
    debug_damage_party if Input.trigger?(:F6)
    debug_fill_tp if Input.trigger?(:F7)
    debug_kill_all if Input.trigger?(:F8)
  end
end
Put this below yanfly's, and it will not happen unless you press SHIFT
Code:
class Scene_Battle
  def update_debug
    return unless $TEST || $BTEST
    return unless Input.press?(:SHIFT)
    debug_heal_party if Input.trigger?(:F5)
    debug_damage_party if Input.trigger?(:F6)
    debug_fill_tp if Input.trigger?(:F7)
    debug_kill_all if Input.trigger?(:F8)
  end
end
Put this below yanfly's, and it will not happen unless you press SHIFT
Thanks for the help.
Moved to: RGSSx Script Support
If this has solved your query to your satisfaction, please Report your post and ask for the thread to be closed. Mods may not see an individual post, but they will see a Report.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/full-screen-test-play-health.116638/