加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
作者是Deathmock5。 大概是偶尔改变一次头像,以后所有的对话框里的头像都自动更换成这个的脚本, 挺省事的
头像图片定义为用Party、 Party1……到Party4这样命名
为毛Party.png的时候是好用的 然后Party1开始就 产生错误啊 Σ( ° △ °|||)︴不明觉厉 …… 找F1日文帮助脑仁疼
谢谢指教!
#====================================================================== #================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
#======================================================================
#================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
|