VXAce A skill that inspects an enemy to get a description of it and its stats

Title. This is a bit of an extension of my previous post. What I want this skill to do is to target one enemy, and depending on what enemy it is, it will bring up a large text box that has the enemy's stats and special properties.
I have no idea how to make this. 'w'
Yanfly Engine Ace - Enemy Target Info v1.02
If that's not what you want then I think I remember one other one, linked to a bestiary.
I was thinking more of it bringing up a text box that brings up custom text that I write myself, instead of just the stats that the enemy has.
I was thinking more of it bringing up a text box that brings up custom text that I write myself, instead of just the stats that the enemy has.
The pastebin link doesn't work. 'n'
The pastebin link doesn't work. 'n'
neon black folder
I found the script, and it's working great! I have one issue though.
Even when I decrease the text size, it creates new lines.
Screenshot 2026-01-11 141659.png

This is an example. Even if there's enough space to keep going, it automatically makes a new line.
This really sucks 'n'
Try this
Ruby:
class Window_ScanBio < Window_Selectable
  def bio
    temp = enemy.bio
    result = ""; line = ""
    temp.split(/ /).each do |word|
      sz = contents.text_size(line).width + contents.text_size("#{word}").width
      if sz > contents.width - 2
        result += "#{line}\n"
        if word.include?("\n")
          word.gsub!(/\r\n/){""}
        end
        line = "#{word} "
        next
      else
        if word.include?("\n")
          result += "#{line}"
          line = ""
        end
        line += "#{word} "
      end
    end
    result += "#{line}"
    return result
  end
end
Where should i put this?
Where should i put this?
below the other script. Or if you are more inclined you can replace the existing bio method with this one

Original thread: https://forums.rpgmakerweb.com/threads/a-skill-that-inspects-an-enemy-to-get-a-description-of-it-and-its-stats.181875/