RMXP simple hud

hello, currently i came across this script

found in: centrorpg.com / HUD simples RMXP


credits to MAKERGAME2000 for creating it


it's a very simple hud

T6Kjgqp.png


I liked the script for its simplicity (I think it is a bit elegant) but it has a little problem, it only displays the hud of the first actor when it should show the whole party.

I don't know much about scripts and I tried to adjust it but I couldn't


who can help me I will be very grateful

PS:sorry my english
Line 20 of the script says it only draws the actor 0.
actor = $game_party.actors[0]

Here's the edited script. Just adjust the position as you want. Good luck! 🙂
PS: I added actors' name because you would want to know whose status it is.
Code:
#################################################################
#Este sistema foi criado a partir de um toturial na MRM e       #
#por isso está simples.                                         #
#Criado por Makergame2000 [MRM]                                 #
#################################################################
X= 0
Y = 0
Largura = 640
Altura = 120
class Hud < Window_Base
  def initialize
      super(X, Y, Largura, Altura)
      self.contents = Bitmap.new(width - 32, height - 32)
      #@actor = 0
      refresh
    end

  def refresh
    self.contents.clear
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      #Conteúdo:
      actor_x = i * 156 + 4
      y = 20
      draw_actor_name(actor, actor_x, y)
      draw_actor_hp(actor, actor_x, y + 24, 144)
      draw_actor_sp(actor, actor_x, y + 44, 144)
    end
  
#Fim 
    if $scene.is_a?(Scene_Menu)
      self.contents.clear
    end
    if $scene.is_a?(Scene_Battle)
      self.contents.clear
      self.visible = false
    end
  end

end
#Adiciona a janela a o mapa.
class Scene_Map
  alias hud_main main
  def main
    @Hud = Hud.new
    hud_main
    @Hud.dispose
  end
  alias hud_update update
  def update
    hud_update
    @Hud.update
    @Hud.refresh
  end
end
great! I loved it!
but there is no way to separate a window for each actor individually?
something like in the image below?:

Dqxz14Q.png



(merely illustrative image XD)
Due to my limited knowledge, I don’t know if it’s possible to split it into multiple windows either. Maybe someone else might help you.
But you can use an image as the background and draw it multiple times as you draw actors’ status.
great idea, I don't know how I didn't think about it XD, I can create intercessions in the window for pictures and activate for common events!

THANK YOU VERY MUCH

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-simple-hud.117989/