查看: 2684|回复: 2

[已经解决] 怎么在战斗中显示框里显示主角头像

[复制链接]
梦石
0
星屑
250
在线时间
9 小时
注册时间
2013-1-3
回帖
0
发表于 2013-1-8 14:41:53 | 显示全部楼层 |阅读模式

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

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

×
怎么在战斗中显示框里显示主角头像虚心求教...??
梦石
0
星屑
50
在线时间
687 小时
注册时间
2012-10-29
回帖
1526
发表于 2013-1-8 16:45:17 | 显示全部楼层
比较快的方式是搜索“脸图战斗”脚本或直接找战斗系统脚本来用,
芙蕾娅小脚本合集有一个脸图的,但是裁切成细条形的,不是完整头像,
而且如果想要像 xp 那样横排的,或者战斗图的,肯定是要换脚本。

评分

参与人数 1星屑 +100 收起 理由
Mic_洛洛 + 100 我很赞同

查看全部评分

修改劇本中,仔細審查原來的劇情大綱,覺得有點不太滿意,嘗試編寫不同主角不同主線的劇情,希望能寫得出來。
回复

使用道具 举报

虚空人形

梦石
0
星屑
4866
在线时间
2037 小时
注册时间
2011-8-11
回帖
3260

贵宾

发表于 2013-1-8 17:10:38 | 显示全部楼层
这套脚本是否符合要求?应该是把头像显示在状态栏左边的。
  1. #encoding:utf-8
  2. #==============================================================================
  3. # ■ Window_BattleStatus
  4. #------------------------------------------------------------------------------
  5. #  战斗画面中,显示“队伍成员状态”的窗口。
  6. #==============================================================================

  7. class Window_BattleStatus
  8.   #--------------------------------------------------------------------------
  9.   # ● 刷新
  10.   #--------------------------------------------------------------------------
  11.   alias super_refresh refresh
  12.   def refresh
  13.     super_refresh
  14.     draw_face_emiya(@index) if @index >= 0
  15.   end
  16.   #--------------------------------------------------------------------------
  17.   # ● 绘制人物头像
  18.   #--------------------------------------------------------------------------
  19.   def draw_face_emiya(index)
  20.     rect = Rect.new(0, 0, 96, 96)
  21.     self.contents.clear_rect(rect)
  22.     actor = $game_party.battle_members[index]
  23.     draw_actor_face(actor, 0, 0, true)
  24.   end
  25.   #--------------------------------------------------------------------------
  26.   # ● 获取项目的绘制矩形
  27.   #--------------------------------------------------------------------------
  28.   alias super_item_rect item_rect
  29.   def item_rect(index)
  30.     rect = super_item_rect(index)
  31.     if @index >= 0
  32.       rect.width - 100;
  33.       rect.x += 100
  34.     end
  35.     return rect
  36.   end
  37.   #--------------------------------------------------------------------------
  38.   # ● 获取值槽区域的矩形
  39.   #--------------------------------------------------------------------------
  40.   alias super_gauge_area_rect gauge_area_rect
  41.   def gauge_area_rect(index)
  42.     rect = super_gauge_area_rect(index)
  43.     rect.x -= 100 if @index >= 0
  44.     return rect
  45.   end
  46.   #--------------------------------------------------------------------------
  47.   # ● 更新光标
  48.   #--------------------------------------------------------------------------
  49.   alias super_update_cursor update_cursor
  50.   def update_cursor
  51.     super_update_cursor
  52.     refresh
  53.   end
  54. end
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部