查看: 2151|回复: 0

[已经过期] 改变头像脚本请教,到底是哪里不对…

[复制链接]
梦石
0
星屑
163
在线时间
445 小时
注册时间
2013-7-18
回帖
90
发表于 2014-4-7 23:27:28 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
作者是Deathmock5。 大概是偶尔改变一次头像,以后所有的对话框里的头像都自动更换成这个的脚本, 挺省事的
头像图片定义为用Party、 Party1……到Party4这样命名
为毛Party.png的时候是好用的  然后Party1开始就 产生错误啊   Σ( ° △ °|||)︴不明觉厉 ……   找F1日文帮助脑仁疼
error.png

谢谢指教!

[pre lang="ruby" line="1"]#======================================================================
#================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[/pre]
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部