Display Actor's Name By ID

I'm using Ace Save Engine with this addon snippet:
Spoiler: Code
Code:
class Window_FileList < Window_Selectable
  def draw_item(index)
    header = DataManager.load_header(index)
    enabled = !header.nil?
    rect = item_rect(index)
    rect.width -= 4
    draw_icon(save_icon?(header), rect.x, rect.y, enabled)
    change_color(normal_color, enabled)
    header = DataManager.load_header(index)
    if header.nil?
      text = sprintf(YEA::SAVE::SLOT_NAME, (index + 1).group)
    else
      text = sprintf(header[:party].members[0].name)
    end
    draw_text(rect.x+24, rect.y, rect.width-24, line_height, text)
  end
end
It displays first actor in the party's name on each savefile
Code:
text = sprintf(header[:party].members[0].name)
What I want instead is to use the nth actor in the database. Not sure how to do that.
Bump
The object/variable that the game loads stuff from the Database files into are all named "$data_xxxx" (you can see where this is set up in the DataManager).

You are looking to reference "$data_actors[n]" rather than "header[party].members[n]".

Just a caveat - the actors in $data_actors are indexed starting from 1 instead of 0. So while $game_party.members[0] returns the first member in the party, you will need to use $data_actors[1] for the first actor in the database.
Thank you, this works.
As it turned out though, I actually needed the name from the current game session rather than database, where the player renamed it, so I switched it to "$game_actors[n]"

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/display-actors-name-by-id.130197/