How can I make a skill that displays a target's remaining HP?

Still not enough room even after pressing enter after =

My script command window is tiny in comparison Capture.JPG
Then you have to either buy RPG Maker or use Hime's Method
or this
Code:
var = $game_variables[22]

$game_variables[23] =
$game_troop.members[var].name

$game_variables[24] =
$game_troop.members[var].hp
Which version of the engine are you using? I mean, the one that appears if you click on Help > About...

Edited Version of my scriptlet...

Ruby:
# * Instructions - Updated 2023-05-06 * #
# First type this line of code in the Skill's Damage Formula Box as Ron had suggested:
# Let us say that it will be Game Variable #1...
# $game_variables[1] = b; 0

# * Script Calls * #
# - Storing an Enemy's Name and Current HP
# store_enemy_name_hp(EnemyVarID, NameVarID, HPVarID)
# Example: store_enemy_name_hp(1, 2, 3)

# - Clearing those Game Variables: Add as Many Variables as Needed
# Example: $game_variables.clear_vars(1, 2, 3)

class Game_Variables
  def clear_vars(*var_ids)
    var_ids.each{|var_id| @data[var_id] = 0 }
  end
end

class Game_Interpreter
  def store_enemy_name_hp(enemy_var, name_var, hp_var)
    return if enemy_var.nil? or enemy_var == 0
    enemy = $game_variables[enemy_var]
    return unless enemy
    $game_variables[name_var] = enemy.name
    $game_variables[hp_var] = enemy.hp
  end
end

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-make-a-skill-that-displays-a-targets-remaining-hp.157248/