#======================================================================
#================Deathmock5's Actor face changer=======================
#Makes text more dynamic by changeinf the face graphic to match the actor
#for partmembers and player, change the face graphics to ones in party.png
#then while in game they will change dynamicly.
#place Party.png in the /faces/ folder
#for partys larger then 8 place a Party1.png in the /faces/ folder.
#if more is needed add 1. so Party2, Party3, ext.
#next update: if charicter is missing, prevent crash
#======================================================================
class Window_Message < Window_Base
FINDER_NAME = 'Party'
def new_page(text, pos)
contents.clear
if ($game_message.face_name.include? 'Party')
$finder_set = $game_message.face_name[5..-1]
if ($finder_set != '')
actor = $game_party.members[$game_message.face_index + $finder_set.to_i * 8]
draw_face(actor.face_name, actor.face_index, 0, 0)
else
actor = $game_party.members[$game_message.face_index]
draw_face(actor.face_name, actor.face_index, 0, 0)
end
else
draw_face($game_message.face_name, $game_message.face_index, 0, 0)
end
reset_font_settings
pos[:x] = new_line_x
pos[:y] = 0
pos[:new_x] = new_line_x
pos[:height] = calc_line_height(text)
clear_flags
end
end