I'm using Ace Save Engine with this addon snippet:
It displays first actor in the party's name on each savefile
What I want instead is to use the nth actor in the database. Not sure how to do that.
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
Code:
text = sprintf(header[:party].members[0].name)