I'm using this plugin for my game and because of the actor faces part using the actor's current name to find a graphic, it doesn't work with an actor whose name was changed in the game unless I make versions of the image for every possible name that can be inputted. Is there some way to change the actor.name part so that it uses the actor's id or their name in the database instead?
Code:
class Window_Base < Window
def face
face = RPG::Cache.picture("")
end
def draw_face(actor,x,y)
face = RPG::Cache.picture(actor.name + "_face") rescue face
fw = face.width
fh = face.height
src_rect = Rect.new(0, 0, fw, fh)
self.contents.blt(x , y - fh, face, src_rect)
end
end