Help with Galv’s group manager

Currently using galv’s group manager: https://galvs-scripts.com/2012/11/19/group-manager/

I have two group: standby and recovery. Would it be possible to make the actors in recovery slowly gain hp/ recover while in this group
Should not be a problem.
Would the recover be controlled by party steps or actual time. So you would just stand there and they would heal.
I personally think it should be by party steps.
I agree, sorry should have specified. Party steps would be best.
Try this, untested
Spoiler: recover party
Ruby:
# use script command to specify that the reserve party will recover
# group_recover_start(ID)
# use group_recover_stop(ID) to stop the recovery

module Galv_Split
  # if true the recovery will be controlled by party steps
  # if false the recovery will be controlled by gameplay frames
  RECOVER_BY_STEPS = true

  # specify if recovering by a point or percentage. true equals points
  AMOUNT_RECOVER = false
  # amount that is recovered. MHP * 0.05
  RECOVER_PERCENT = 0.01
  # recover 1 point of health.
  RECOVER_POINTS = 1
  
  # recover amount if a specific amount has been calculated
  RECOVER_DIVIDE = true
  # recover every X number of steps. not really but will do a division
  # and if it equal 0 then add health.
  RECOVER_DIV = 10 # when steps is divied by 10 and the remainder equals 0
                   # then recover health
end
  
class Game_Party < Game_Unit
  attr_accessor :group_recover
   
  alias r2_partyrecover_init init_groups
  def init_groups
    r2_partyrecover_init
    @group_recover = {}
    @no_groups.times { |i|
      @group_recover[i] = false
    }
  end
    
  alias r2_increase_steps_recovery_group  increase_steps
  def increase_steps
    r2_increase_steps_recovery_group
    return if Galv_Split::RECOVER_BY_STEPS == false
    recover_group
  end
  
  def recover_group
    @group.each { |gp, ind|
      next if @group_recover[gp] == false
      ind.each { |mem|
        next if mem.nil?
        actor = $game_actors[mem]
        hp = actor.mhp
        add = 0
        frame = Graphics.frame_count
        if Galv_Split::RECOVER_DIVIDE
          if Galv_Split::AMOUNT_RECOVER
            add = Galv_Split::RECOVER_POINTS if @steps % Galv_Split::RECOVER_DIV == 0
          else
            add = (hp * Galv_Split::RECOVER_PERCENT).to_i if frame % Galv_Split::RECOVER_DIV == 0
          end
        else
          if Galv_Split::AMOUNT_RECOVER
            add = Galv_Split::RECOVER_POINTS
          else
            add = (hp * Galv_Split::RECOVER_PERCENT).to_i
          end
        end
        actor.hp += add; actor.hp = actor.mhp if actor.hp > actor.mhp
      }
    }
  end
end

class Game_Interpreter
  def group_recover_start(id)
    $game_party.group_recover[id-1] = true
  end
  def group_recover_stop(id)
    $game_party.group_recover[id-1] = false
  end
  def group_clear(id)
    $game_party.group[id-1] = []
    $game_party.group_recover[id-1] = false
  end
end

class Scene_Map < Scene_Base
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  alias r2_update_recovery_party_group  update
  def update
    r2_update_recovery_party_group
    return if Galv_Split::RECOVER_BY_STEPS == true
    $game_party.recover_group
  end
end
Thank you!Will test this out. So in my game I have an item that calls the galv script. My question is where do I put the script call (the one in your script) to start the process of recovering? Should I do it when the item is used?
I currently have it set so that you specify what group. So after you set up your groups you would use the command the specify which group the recovery would work for.
If this doesn't work, I can try to think of another way to do this.
I currently have it set so that you specify what group. So after you set up your groups you would use the command the specify which group the recovery would work for.
If this doesn't work, I can try to think of another way to do this.
Ya I meant in the script on line 2 it shows the command to do it but I wanted to know where would it be best to use the command, like when I call the galv script or beginning on the game, etc
Ya I meant in the script on line 2 it shows the command to do it but I wanted to know where would it be best to use the command, like when I call the galv script or beginning on the game, etc
After you add members to the recovery party. However/whenever you do that is up to you.
Of course you can turn it on at the beginning of the game (should work)
Great, thanks!
Great, thanks!
testing now and it has errors. the data is not the way I thought it would be. working on it.

*update. fixed and updated
testing now and it has errors. the data is not the way I thought it would be. working on it.

*update. fixed and updated
Thanks! Will give it a go
Tested it out, the issue I found was that even I took a few steps the characters hp [in recovery] fully healed.
Tested it out, the issue I found was that even I took a few steps the characters hp [in recovery] fully healed.
How much hp do they have?
The calculation is doing a 5% heal.
Should it be a literal number instead?
How much hp do they have?
The calculation is doing a 5% heal.
Should it be a literal number instead?
The character had 106/204 and within a few steps it was completely healed. I may turn it down to 1% heal.
The character had 106/204 and within a few steps it was completely healed. I may turn it down to 1% heal.
I just updated it so now there are more options
Awesome, thanks

Original thread: https://forums.rpgmakerweb.com/threads/help-with-galvs-group-manager.171526/