- 注册时间
- 2006-4-20
- 最后登录
- 2007-10-15
超级版主
传说中的Bunny火神~!
 
- 积分
- 1
|
发表于 2007-5-19 04:30:39
|
显示全部楼层
如果没有人脸的话会出错的,因为该脚本修改并未加入对没有素材时的判断。需要加入这个判断的话只要把Window_Base的修改部分:
- ###########################################################################
- #--------------------------------------------------------------------------
- # ● 战斗时图形的描绘
- # actor : 角色
- # x : 描画目标 X 坐标
- # y : 描画目标 Y 坐标
- #--------------------------------------------------------------------------
- def draw_battle_actor(actor, x, y)
- bitmap=Bitmap.new("Graphics/Pictures/#{actor.id}")
- cw = bitmap.width
- ch = bitmap.height
- src_rect = Rect.new(0, 0, cw, ch)
- self.contents.blt(x - cw/20, y - ch, bitmap, src_rect)
- end
- ###########################################################################
- 改成:
- ###########################################################################
- #--------------------------------------------------------------------------
- # ● 战斗时图形的描绘
- # actor : 角色
- # x : 描画目标 X 坐标
- # y : 描画目标 Y 坐标
- #--------------------------------------------------------------------------
- def draw_battle_actor(actor, x, y)
- if FileTest.exist?("Graphics/Pictures/#{actor.id}")
- bitmap=Bitmap.new("Graphics/Pictures/#{actor.id}")
- cw = bitmap.width
- ch = bitmap.height
- src_rect = Rect.new(0, 0, cw, ch)
- self.contents.blt(x - cw/20, y - ch, bitmap, src_rect)
- end
- end
- ###########################################################################
复制代码 |
|