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

Project1

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

[已经解决] 请问怎么增加队友上限,还有显示人物头像。

[复制链接]

Lv1.梦旅人

梦石
0
星屑
260
在线时间
1 小时
注册时间
2013-11-14
帖子
2
跳转到指定楼层
1
发表于 2013-11-14 13:56:12 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
第一,我想设置一个召唤师职业,技能是召唤宝宝协助自己作战,我希望可以增加队友上限,而不是四个人。不知道怎么设置。
第二,我希望战斗中可以显示队友头像,这样看着比较有感觉,只有名字什么的比较单调啊。
谢谢各位朋友们了,我还只是一名小小的新人。

Lv5.捕梦者

梦石
0
星屑
22391
在线时间
8597 小时
注册时间
2011-12-31
帖子
3364
2
发表于 2013-11-14 15:37:56 | 只看该作者
戦鬥中显示人物头像
  1. #==============================================================================
  2. # ■ VXAce-RGSS3-10 フロントビュー改 [Ver.1.0.0]            by Claimh
  3. #------------------------------------------------------------------------------
  4. # ・戦闘画面を顔グラフィック表示に変更します。
  5. # ・エネミー選択ウィンドウで残HPを表示します。
  6. #==============================================================================


  7. #==============================================================================
  8. # ■ Window_BattleStatus
  9. #==============================================================================
  10. class Window_BattleStatus < Window_Selectable
  11.   #--------------------------------------------------------------------------
  12.   # ● HP/MP/TPの行の高さ取得
  13.   #--------------------------------------------------------------------------
  14.   def gauge_line_height
  15.     return 16
  16.   end
  17.   #--------------------------------------------------------------------------
  18.   # ● 桁数の取得
  19.   #--------------------------------------------------------------------------
  20.   def col_max
  21.     return [item_max, 4].max
  22.   end
  23.   #--------------------------------------------------------------------------
  24.   # ● 横に項目が並ぶときの空白の幅を取得
  25.   #--------------------------------------------------------------------------
  26.   def spacing
  27.     return 0
  28.   end
  29.   #--------------------------------------------------------------------------
  30.   # ● 項目を描画する矩形の取得
  31.   #--------------------------------------------------------------------------
  32.   def item_rect(index)
  33.     rect = Rect.new
  34.     rect.width = item_width
  35.     rect.height = contents_height
  36.     rect.x = index % col_max * (item_width + spacing)
  37.     rect.y = index / col_max * contents_height
  38.     rect
  39.   end
  40.   #--------------------------------------------------------------------------
  41.   # ● 基本エリアの矩形を取得
  42.   #--------------------------------------------------------------------------
  43.   def basic_area_rect(index)
  44.     rect = item_rect_for_text(index)
  45.     rect.height -= gauge_area_height
  46.     rect
  47.   end
  48.   #--------------------------------------------------------------------------
  49.   # ● ゲージエリアの矩形を取得
  50.   #--------------------------------------------------------------------------
  51.   def gauge_area_rect(index)
  52.     rect = item_rect_for_text(index)
  53.     rect.y += contents_height - gauge_area_height - 8
  54.     rect.height = gauge_area_height
  55.     rect
  56.   end
  57.   #--------------------------------------------------------------------------
  58.   # ● ゲージエリアの高さを取得
  59.   #--------------------------------------------------------------------------
  60.   def gauge_area_height
  61.     return (gauge_line_height * ($data_system.opt_display_tp ? 3 : 2))
  62.   end
  63.   #--------------------------------------------------------------------------
  64.   # ● 基本エリアの描画
  65.   #--------------------------------------------------------------------------
  66.   def draw_basic_area(rect, actor)
  67. #    draw_actor_name(actor, rect.x, rect.y, 100)
  68.     draw_actor_face(actor, rect.x, rect.y, !actor.dead?)
  69.     draw_actor_icons(actor, rect.x, rect.y, rect.width+8)
  70.   end
  71.   #--------------------------------------------------------------------------
  72.   # ● ゲージエリアの描画(TP あり)
  73.   #--------------------------------------------------------------------------
  74.   def draw_gauge_area_with_tp(rect, actor)
  75.     draw_actor_hp(actor, rect.x, rect.y + gauge_line_height * 0, rect.width)
  76.     draw_actor_mp(actor, rect.x, rect.y + gauge_line_height * 1, rect.width)
  77.     draw_actor_tp(actor, rect.x, rect.y + gauge_line_height * 2, rect.width)
  78.   end
  79.   #--------------------------------------------------------------------------
  80.   # ● ゲージエリアの描画(TP なし)
  81.   #--------------------------------------------------------------------------
  82.   def draw_gauge_area_without_tp(rect, actor)
  83.     draw_actor_hp(actor, rect.x, rect.y + gauge_line_height * 1, rect.width)
  84.     draw_actor_mp(actor, rect.x, rect.y + gauge_line_height * 2, rect.width)
  85.   end
  86. end


  87. #==============================================================================
  88. # ■ Window_BattleEnemy
  89. #==============================================================================
  90. class Window_BattleEnemy < Window_Selectable
  91.   #--------------------------------------------------------------------------
  92.   # ● 項目の描画
  93.   #--------------------------------------------------------------------------
  94.   alias draw_item_fv draw_item
  95.   def draw_item(index)
  96.     draw_hp(index)
  97.     draw_item_fv(index)
  98.   end
  99.   #--------------------------------------------------------------------------
  100.   # ● HPの描画
  101.   #--------------------------------------------------------------------------
  102.   def draw_hp(index)
  103.     rect = item_rect_for_text(index)
  104.     w = rect.width - 60
  105.     x = rect.x + 30
  106.     hp = $game_troop.alive_members[index].hp_rate
  107.     draw_gauge(x, rect.y, w, hp, hp_gauge_color1, hp_gauge_color2)
  108.   end
  109. end
复制代码

评分

参与人数 1星屑 +132 收起 理由
熊喵酱 + 132 认可答案

查看全部评分

回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
260
在线时间
1 小时
注册时间
2013-11-14
帖子
2
3
 楼主| 发表于 2013-11-15 01:52:31 | 只看该作者
谢谢你!

评分

参与人数 1星屑 +15 收起 理由
熊喵酱 + 15 主動认可答案獎勵

查看全部评分

回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2025-2-23 01:58

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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