RPG Maker Forums

I have discovered a facet of the default way that Ace handles the regen function which I don't like.
The Help file clearly states that the HRG, MRG and TRG restores at the end of each turn. However, I've discovered that walking around does the same thing as Ace considers that to be a 'turn'. The end result is that if you walk around between visible encounters you can heal yourself.

I know how to correct this with 2 small edits directly to the default scripts, but that's not best practice to alter them, so I am asking if someone can do a little stand alone snippet which does it.

The 2 places where the edits would be if I were doing it directly are as follows:
In Game_Battler

Between the section "Processing at end of turn" and the section "Processing at end of battle" Add (at around line 804) this new section.
Code:
  #--------------------------------------------------------------------------
  # * Processing at End of Turn EDIT MAP no regenerate_all
  #--------------------------------------------------------------------------
  def on_turn_end_map
    @result.clear
    update_state_turns
    update_buff_turns
    remove_states_auto(2)
  end
The second place is in Game_Actor where there would be an addition to line 631 so that it reads:
Code:
 #--------------------------------------------------------------------------
  # * End of Turn Processing on Map Screen
  #--------------------------------------------------------------------------
  def turn_end_on_map
    if $game_party.steps % steps_for_turn == 0
      on_turn_end_map
      perform_map_damage_effect if @result.hp_damage > 0
    end
  end
I hope this is clear.
Thank you.

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top