Project1

标题: 怎样能在战斗界面只显示成员血条而不显示hp的具体数字 [打印本页]

作者: kitarr    时间: 2020-1-4 17:56
标题: 怎样能在战斗界面只显示成员血条而不显示hp的具体数字
怎样能在战斗界面只显示成员血条而不显示hp的具体数字
作者: KB.Driver    时间: 2020-1-4 23:19
本帖最后由 KB.Driver 于 2020-1-4 23:20 编辑

RUBY 代码复制
  1. class Window_BattleStatus
  2.   def draw_current_and_max_values(x, y, width, current, max, color1, color2)
  3.   end
  4. end



作者: kitarr    时间: 2020-1-5 10:11
KB.Driver 发表于 2020-1-4 23:19
class Window_BattleStatus
  def draw_current_and_max_values(x, y, width, current, max, color1, color ...

太感谢了!完美解决!!
作者: kitarr    时间: 2020-1-5 12:18
KB.Driver 发表于 2020-1-4 23:19
class Window_BattleStatus
  def draw_current_and_max_values(x, y, width, current, max, color1, color ...

大佬,还有一个问题请教

我用事件变量好像只能显示出某一角色ID的当前HP值
如下
变量操作:【0001】=【001艾里克】的体力值

怎么样才能显示出当前队伍中第一个成员,也就是队长的HP值?
如下
变量操作:【0001】=【第1个队员】的体力值
作者: kitarr    时间: 2020-1-5 14:35
我试了$game_variables[1] = $game_actors[$game_party.leader].hp
和$game_variables[1] = $game_actors[$game_variables[变量ID]].hp
都不行
作者: kitarr    时间: 2020-1-5 14:40

我不抱任何希望尝试了一下
$game_variables[1] = $game_party.leader.hp

这样居然就可以了
看来是我搞复杂了




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1