Visual hp/mp bar via event NOT script!?!

Since the sprites's template is a rectangular paper, how do i create a stand pose ANIMATED:? for battlers big
You will need to include RGSS scripts that modify the battle system.
link??
Google
I DOWNLOD the script for hp/mp bar taken in the link above, but it seems it don't work after i start the Rpg Maker it crashes with these error; what's the cause?
Post the link to the script or script demo or we won't be able to help you, Foxy.
Ecco qui; Grazie

[CODICE]classe Window_Base < Finestra
#------------------------------------------------- -------------------------
# * Disegna la barra inclinata (di SephirothSpawn)
#------------------------------------------------- -------------------------
def disegno_barra_inclinazione(x, y, min, max, larghezza = 152, altezza = 6,
bar_color = Colore.new(150, 0, 0, 255), end_color = Colore.new(255, 255, 60, 255))
# Disegna il bordo
per i in 0..altezza
self.contents.fill_rect(x + i, y + altezza - i, larghezza + 1, 1, Color.new(50, 50, 50, 255))
FINE
# Disegna lo sfondo
per i in 1..(altezza - 1)
r = 100 * (altezza - i) / altezza + 0 * i / altezza
g = 100 * (altezza - i) / altezza + 0 * i / altezza
b = 100 * (altezza - i) / altezza + 0 * i / altezza
a = 255 * (altezza - i) / altezza + 255 * i / altezza
self.contents.fill_rect(x + i, y + altezza - i, larghezza, 1, Color.new(r, b, g, a))
FINE
# Disegna la barra
for i in 1..( (min / max.to_f) * larghezza - 1)
per j in 1..(altezza - 1)
r = bar_color.red * (larghezza - i) / larghezza + end_color.red * i / larghezza
g = bar_color.green * (larghezza - i) / larghezza + end_color.green * i / larghezza
b = bar_color.blue * (larghezza - i) / larghezza + end_color.blue * i / larghezza
a = bar_color.alpha * (larghezza - i) / larghezza + end_color.alpha * i / larghezza
self.contents.fill_rect(x + i + j, y + altezza - j, 1, 1, Color.new(r, g, b, a))
FINE
FINE
FINE
FINE


classe Window_EnemyHP < Window_Base

def inizializzare
super(0, 0, 640, 480)
self.contents = Bitmap.new(larghezza - 32, altezza - 32)
self.opacità = 0
ricaricare
FINE

sicuramente aggiorna
self.contents.clear
per i in 0...$game_troop.enemies.size
@nemico = $game_troop.nemici
@percent = (@enemy.hp * 100) / @enemy.maxhp
a meno che @ nemico.hp == 0
draw_slant_bar(@enemy.screen_x - 55, @enemy.screen_y - 10, @enemy.hp, @enemy.maxhp, larghezza = 75, altezza = 6, bar_color = Color.new(150, 0, 0, 255), end_color = Colore.nuovo(255, 255, 60, 255))
self.contents.font.color = Colore.new(0,0,0)
self.contents.draw_text(@enemy.screen_x - 37, @enemy.screen_y - 24, 100, 32, "#{@percent}" + "%")
self.contents.draw_text(@enemy.screen_x - 43, @enemy.screen_y - 44, 100, 32, "#{@enemy.name}")
self.contents.font.color = colore_normale
self.contents.draw_text(@enemy.screen_x - 45, @enemy.screen_y - 42, 100, 32, "#{@enemy.name}")
self.contents.draw_text(@enemy.screen_x - 39, @enemy.screen_y - 22, 100, 32, "#{@percent}" + "%")
FINE
FINE
FINE
FINE

classe Scena_Battaglia

alias raz_update aggiornamento
alias raz_update_phase5 update_phase5
alias raz_update_phase4_step1 update_phase4_step1
alias raz_update_phase4_step5 update_phase4_step5
alias raz_enemy_hp_main principale

sicuramente principale
@troop_id = $game_temp.battle_troop_id
$game_troop.setup(@troop_id)
@enemy_window = Window_EnemyHP.new
@nemy_window.z = 95
raz_enemy_hp_main
@enemy_window.dispose
FINE


aggiornamento def
@enemy_window.update
raz_update
FINE

def aggiornamento_fase5
# Se il conteggio delle attese è maggiore di 0
se @phase5_wait_count > 0
# Diminuisce il conteggio delle attese
@phase5_wait_count -= 1
# Se il conteggio delle attese raggiunge 0
se @phase5_wait_count == 0
@enemy_window.visible = falso
# Mostra la finestra dei risultati
@result_window.visible = vero
# Cancella il flag della fase principale
$game_temp.battle_main_phase = falso
# Aggiorna la finestra di stato
@status_window.refresh
@enemy_window.refresh
FINE
ritorno
FINE
raz_update_phase5
FINE

def aggiornamento_fase4_passaggio1
raz_update_phase4_step1
@enemy_window.refresh
FINE

def aggiornamento_fase4_passaggio5
# Nascondi la finestra della guida
@help_window.visible = falso
# Aggiorna la finestra di stato
@status_window.refresh
@enemy_window.refresh
raz_update_phase4_step5
FINE
FINE

classe Window_BattleStatus < Window_Base
#------------------------------------------------- -------------------------
# * Inizializzazione dell'oggetto
#------------------------------------------------- -------------------------
def inizializzare
super(0, 320, 640, 160)
self.contents = Bitmap.new(larghezza - 32, altezza - 32)
@level_up_flags =
ricaricare
FINE
#------------------------------------------------- -------------------------
# * Smaltisci
#------------------------------------------------- -------------------------
sicuramente smaltire
super
FINE
#------------------------------------------------- -------------------------
# * Imposta la bandiera per salire di livello
# actor_index: indice dell'attore
#------------------------------------------------- -------------------------
def livello_up(indice_attore)
@level_up_flags = vero
FINE
#------------------------------------------------- -------------------------
# * Ricaricare
#------------------------------------------------- -------------------------
sicuramente aggiorna
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
attore = $game_party.attori
attore_x = i*160 + 4
draw_slant_bar(actor_x, 55, actor.hp, actor.maxhp, 120)
draw_slant_bar(actor_x, 88, actor.sp, actor.maxsp, 120, 6, bar_color = Color.new(150, 0, 150, 255), end_color = Color.new(0, 0, 255, 255))
draw_actor_name(attore, attore_x, 0)
draw_actor_hp(attore, attore_x, 32, 120)
draw_actor_sp(attore, attore_x, 64, 120)
se @level_up_flags
self.contents.font.color = colore_normale
self.contents.draw_text(actor_x, 96, 120, 32, "SALI DI LIVELLO!")
altro
draw_actor_state(attore, attore_x, 96)
FINE
FINE
FINE
#------------------------------------------------- -------------------------
# * Aggiornamento fotogramma
#------------------------------------------------- -------------------------
aggiornamento def
super
# Livello di opacità leggermente inferiore durante la fase principale
se $game_temp.battle_main_phase
self.contents_opacity -= 4 se self.contents_opacity > 191
altro
self.contents_opacity += 4 se self.contents_opacity < 255
FINE
FINE
fine[/CODICE]
May I ask you why did you make Google translate pretty much the whole script into Italian?
It makes it extremely awkward to work with it. Seriously.

Plus you type code=ruby inside the first brackets [] and then /code inside the second brackets [], you know.
I apologies and i translated the entire Script into english and now the previous showed error didn't occur, now it occurs these error🙁image below)
this is the script;
Ruby:
class Window_Base < Window
#--------------------------------------------------------------------------
# * Draw Slant Bar(by SephirothSpawn)
#--------------------------------------------------------------------------
def draw_slant_bar(x, y, min, max, width = 152, height = 6,
bar_color = Color.new(150, 0, 0, 255), end_color = Color.new(255, 255, 60, 255))
# Draw Border
for i in 0..height
self.contents.fill_rect(x + i, y + height - i, width + 1, 1, Color.new(50, 50, 50, 255))
end
# Draw Background
for i in 1..(height - 1)
r = 100 * (height - i) / height + 0 * i / height
g = 100 * (height - i) / height + 0 * i / height
b = 100 * (height - i) / height + 0 * i / height
a = 255 * (height - i) / height + 255 * i / height
self.contents.fill_rect(x + i, y + height - i, width, 1, Color.new(r, b, g, a))
end
# Draws Bar
for i in 1..( (min / max.to_f) * width - 1)
for j in 1..(height - 1)
r = bar_color.red * (width - i) / width + end_color.red * i / width
g = bar_color.green * (width - i) / width + end_color.green * i / width
b = bar_color.blue * (width - i) / width + end_color.blue * i / width
a = bar_color.alpha * (width - i) / width + end_color.alpha * i / width
self.contents.fill_rect(x + i + j, y + height - j, 1, 1, Color.new(r, g, b, a))
end
end
end
end


class Window_EnemyHP < Window_Base

def initialize
super(0, 0, 640, 480)
self.contents = Bitmap.new(width - 32, height - 32)
self.opacity = 0
refresh
end

def refresh
self.contents.clear
for i in 0...$game_troop.enemies.size
@enemy = $game_troop.enemies
[I]@percent = (@enemy.hp * 100) / @enemy.maxhp
unless @enemy.hp == 0
draw_slant_bar(@enemy.screen_x - 55, @enemy.screen_y - 10, @enemy.hp, @enemy.maxhp, width = 75, height = 6, bar_color = Color.new(150, 0, 0, 255), end_color = Color.new(255, 255, 60, 255))
self.contents.font.color = Color.new(0,0,0)
self.contents.draw_text(@enemy.screen_x - 37, @enemy.screen_y - 24, 100, 32, "#{@percent}" + "%")
self.contents.draw_text(@enemy.screen_x - 43, @enemy.screen_y - 44, 100, 32, "#{@enemy.name}")
self.contents.font.color = normal_color
self.contents.draw_text(@enemy.screen_x - 45, @enemy.screen_y - 42, 100, 32, "#{@enemy.name}")
self.contents.draw_text(@enemy.screen_x - 39, @enemy.screen_y - 22, 100, 32, "#{@percent}" + "%")
end
end
end
end

class Scene_Battle

alias raz_update update
alias raz_update_phase5 update_phase5
alias raz_update_phase4_step1 update_phase4_step1
alias raz_update_phase4_step5 update_phase4_step5
alias raz_enemy_hp_main main

def main
@troop_id = $game_temp.battle_troop_id
$game_troop.setup(@troop_id)
@enemy_window = Window_EnemyHP.new
@enemy_window.z = 95
raz_enemy_hp_main
@enemy_window.dispose
end


def update
@enemy_window.update
raz_update
end

def update_phase5
# If wait count is larger than 0
if @phase5_wait_count > 0
# Decrease wait count
@phase5_wait_count -= 1
# If wait count reaches 0
if @phase5_wait_count == 0
@enemy_window.visible = false
# Show result window
@result_window.visible = true
# Clear main phase flag
$game_temp.battle_main_phase = false
# Refresh status window
@status_window.refresh
@enemy_window.refresh
end
return
end
raz_update_phase5
end

def update_phase4_step1
raz_update_phase4_step1
@enemy_window.refresh
end

def update_phase4_step5
# Hide help window
@help_window.visible = false
# Refresh status window
@status_window.refresh
@enemy_window.refresh
raz_update_phase4_step5
end
end

class Window_BattleStatus < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(0, 320, 640, 160)
self.contents = Bitmap.new(width - 32, height - 32)
@level_up_flags =
refresh
end
#--------------------------------------------------------------------------
# * Dispose
#--------------------------------------------------------------------------
def dispose
super
end
#--------------------------------------------------------------------------
# * Set Level Up Flag
# actor_index : actor index
#--------------------------------------------------------------------------
def level_up(actor_index)
@level_up_flags = true
end
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...$game_party.actors.size
actor = $game_party.actors[I]
actor_x = i * 160 + 4
draw_slant_bar(actor_x, 55, actor.hp, actor.maxhp, 120)
draw_slant_bar(actor_x, 88, actor.sp, actor.maxsp, 120, 6, bar_color = Color.new(150, 0, 150, 255), end_color = Color.new(0, 0, 255, 255))
draw_actor_name(actor, actor_x, 0)
draw_actor_hp(actor, actor_x, 32, 120)
draw_actor_sp(actor, actor_x, 64, 120)
if @level_up_flags[I]
self.contents.font.color = normal_color
self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
else
draw_actor_state(actor, actor_x, 96)
end
end
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
super
# Slightly lower opacity level during main phase
if $game_temp.battle_main_phase
self.contents_opacity -= 4 if self.contents_opacity > 191
else
self.contents_opacity += 4 if self.contents_opacity < 255
end
end
end
[/I][/I][/I]
Did you "destranslated" the Script?! You could notice a line break and the removal of spacing that helps to organize.
And these [/I] at the end were probably created by fors that were reading the values from some Array...
In Arrays within the Script, the letter I, which should be lowercase, was transformed into uppercase due to the conversion to BBCODe.

Sorry, but I can't think of anything other than that you were too lazy to look for the author's original topic to copy again without errors, probably the script has problems because you kept using the translator.
Problem Solved!

Ruby:
class Window_Base < Window
  #--------------------------------------------------------------------------
  # * Draw Slant Bar(by SephirothSpawn)
  #--------------------------------------------------------------------------
  BORDER_COLOR = Color.new(50, 50, 50, 255)
  BAR_COLOR = Color.new(150, 0, 0, 255)
  END_COLOR = Color.new(255, 255, 60, 255)
  def draw_slant_bar(x, y, min, max, width = 152, height = 6,
    bar_color = BAR_COLOR, end_color = END_COLOR)
    # Draw Border
    for i in 0..height
      contents.fill_rect(x + i, y + height - i, width + 1, 1, BORDER_COLOR)
    end
    # Draw Background
    for i in 1..(height - 1)
      r = 100 * (height - i) / height + 0 * i / height
      g = 100 * (height - i) / height + 0 * i / height
      b = 100 * (height - i) / height + 0 * i / height
      a = 255 * (height - i) / height + 255 * i / height
      contents.fill_rect(x + i, y + height - i, width, 1, Color.new(r, b, g, a))
    end
    # Draws Bar
    for i in 1..( (min / max.to_f) * width - 1)
      for j in 1..(height - 1)
        r = bar_color.red * (width - i) / width + end_color.red * i / width
        g = bar_color.green * (width - i) / width + end_color.green * i / width
        b = bar_color.blue * (width - i) / width + end_color.blue * i / width
        a = bar_color.alpha * (width - i) / width + end_color.alpha * i / width
        new_color = Color.new(r, g, b, a)
        contents.fill_rect(x + i + j, y + height - j, 1, 1, new_color)
      end
    end
  end
end

class Window_EnemyHP < Window_Base
  def initialize
    super(0, 0, 640, 480)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.opacity = 0
    refresh
  end

  def refresh
    self.contents.clear
    for i in 0...$game_troop.enemies.size
      @enemy = $game_troop.enemies[i]
      @percent = (@enemy.hp * 100) / @enemy.maxhp
      unless @enemy.hp == 0
        ex = @enemy.screen_x
        ey = @enemy.screen_y
        draw_slant_bar(ex - 55, ey - 10, @enemy.hp, @enemy.maxhp, 75, 6)
        self.contents.font.color = Color.new(0,0,0)
        self.contents.draw_text(ex - 37, ey - 24, 100, 32, "#{@percent}" + "%")
        self.contents.draw_text(ex - 43, ey - 44, 100, 32, "#{@enemy.name}")
        self.contents.font.color = normal_color
        self.contents.draw_text(ex - 45, ey - 42, 100, 32, "#{@enemy.name}")
        self.contents.draw_text(ex - 39, ey - 22, 100, 32, "#{@percent}" + "%")
      end
    end
  end
end

class Scene_Battle
  alias :raz_update :update
  alias :raz_update_phase5 :update_phase5
  alias :raz_update_phase4_step1 :update_phase4_step1
  alias :raz_update_phase4_step5 :update_phase4_step5
  alias :raz_enemy_hp_main :main

  def main
    @troop_id = $game_temp.battle_troop_id
    $game_troop.setup(@troop_id)
    @enemy_window = Window_EnemyHP.new
    @enemy_window.z = 95
    raz_enemy_hp_main
    @enemy_window.dispose
  end

  def update
    @enemy_window.update
    raz_update
  end

  def update_phase5
    # If wait count is larger than 0
    if @phase5_wait_count > 0
      # Decrease wait count
      @phase5_wait_count -= 1
      # If wait count reaches 0
      if @phase5_wait_count == 0
        @enemy_window.visible = false
        # Show result window
        @result_window.visible = true
        # Clear main phase flag
        $game_temp.battle_main_phase = false
        # Refresh status window
        @status_window.refresh
        @enemy_window.refresh
      end
      return
    end
    raz_update_phase5
  end

  def update_phase4_step1
    raz_update_phase4_step1
    @enemy_window.refresh
  end

  def update_phase4_step5
    # Hide help window
    @help_window.visible = false
    # Refresh status window
    @status_window.refresh
    @enemy_window.refresh
    raz_update_phase4_step5
  end
end

class Window_BattleStatus < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 320, 640, 160)
    self.contents = Bitmap.new(width - 32, height - 32)
    @level_up_flags = []
    refresh
  end
  #--------------------------------------------------------------------------
  # * Dispose
  #--------------------------------------------------------------------------
  def dispose
    super
  end
  #--------------------------------------------------------------------------
  # * Set Level Up Flag
  # actor_index : actor index
  #--------------------------------------------------------------------------
  def level_up(actor_index)
    @level_up_flags[actor_index] = true
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    @item_max = $game_party.actors.size
    for i in 0...$game_party.actors.size
      actor = $game_party.actors[i]
      actor_x = i * 160 + 4
      draw_slant_bar(actor_x, 55, actor.hp, actor.maxhp, 120)
      draw_slant_bar(actor_x, 88, actor.sp, actor.maxsp, 120, 6)
      draw_actor_name(actor, actor_x, 0)
      draw_actor_hp(actor, actor_x, 32, 120)
      draw_actor_sp(actor, actor_x, 64, 120)
      if @level_up_flags[i]
        self.contents.font.color = normal_color
        self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
      else
        draw_actor_state(actor, actor_x, 96)
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    # Slightly lower opacity level during main phase
    if $game_temp.battle_main_phase
      self.contents_opacity -= 4 if self.contents_opacity > 191
    else
      self.contents_opacity += 4 if self.contents_opacity < 255
    end
  end
end

battle_slant_bars.jpg
Tha Lycan ABS clairly says that if you equip sword in the menu then you can attack on the map too so it's possible? its possible to create a hp bar under the actor on the map whenever you attack not necessarily through scripting?
is MV or MZ more simple tool compared to rpgmaker xp? Can you do stuff there more easily?
Double-post notice: @Foxy1

In case you're unfamiliar with the term, double posting is posting two or more times in a row without another poster coming between. Any new thoughts or responses should be edited in using the 'edit' prompt at the bottom of your most recent post.

1704131317278.png
I would definitely not call MV/Z simpler tools compared to XP, but there are a lot more current users and therefore a lot more ways to get guidance. I personally find a lot of things more frustrating to do in MV/Z, but your mileage may vary.
The problem here is that the OP is like the people Trihan's last option mentions in his recent poll: wants something that will make the dream game automatically while the OP is asleep.

I know why I am saying this here. This is not the only time the OP wants everything done for the OP without even learning the basics of how any of the RM engines actually work.

This becomes self evident whenever the OP wants to quickly implement complex battle system when the OP doesn't even understand anything about script compatibility and other matters.

The OP's rush and impatience and inability to properly describe the situations are the real issues here.
I’m not rushing, is you that are attacking me for nothing.
You are in a rush. There's no doubt about it. So be patient, very patient. Things take time either to learn or to explain them properly.
Read the help file that comes with RMXP so you can get an idea of what XP offers by default. And also get familiar with every button's function in the menu bar.

For instance, I've never used the Lycan ABS but I know that it was made for RMXP only.
If you really wanna know how to use, contact DerVVulfman directly. Ask very specific questions or tell him that you need a help file or something for his battle system so you can start playing with its configuration.

Original thread: https://forums.rpgmakerweb.com/threads/visual-hp-mp-bar-via-event-not-script.164288/