设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 1834|回复: 0
打印 上一主题 下一主题

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
163
在线时间
445 小时
注册时间
2013-7-18
帖子
109
跳转到指定楼层
1
发表于 2014-4-7 23:27:28 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

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

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

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


谢谢指教!

RUBY 代码复制
  1. #======================================================================
  2. #================Deathmock5's Actor face changer=======================
  3. #Makes text more dynamic by changeinf the face graphic to match the actor
  4. #for partmembers and player, change the face graphics to ones in party.png
  5. #then while in game they will change dynamicly.
  6. #place Party.png in the /faces/ folder
  7. #for partys larger then 8 place a Party1.png in the /faces/ folder.
  8. #if more is needed add 1. so Party2, Party3, ext.
  9. #next update: if charicter is missing, prevent crash
  10. #======================================================================
  11. class Window_Message < Window_Base
  12.   FINDER_NAME = 'Party'
  13.   def new_page(text, pos)
  14.         contents.clear
  15.         if ($game_message.face_name.include? 'Party')
  16.           $finder_set = $game_message.face_name[5..-1]
  17.           if ($finder_set != '')
  18.                 actor = $game_party.members[$game_message.face_index + $finder_set.to_i * 8]
  19.                 draw_face(actor.face_name, actor.face_index, 0, 0)
  20.           else
  21.                 actor = $game_party.members[$game_message.face_index]
  22.                 draw_face(actor.face_name, actor.face_index, 0, 0)
  23.           end
  24.         else
  25.                 draw_face($game_message.face_name, $game_message.face_index, 0, 0)
  26.         end
  27.         reset_font_settings
  28.         pos[:x] = new_line_x
  29.         pos[:y] = 0
  30.         pos[:new_x] = new_line_x
  31.         pos[:height] = calc_line_height(text)
  32.         clear_flags
  33.   end
  34. end
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-25 05:34

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表