Project1

标题: VA如何修改HP血条的颜色 [打印本页]

作者: 初学者ax    时间: 2017-3-12 20:50
标题: VA如何修改HP血条的颜色
貌似以前看到过,结果现在搜索好久都没找到……比如我想改成绿色,帮助一下谢谢大家……
作者: duzine    时间: 2017-3-12 21:13

請慢用

  1. #==============================================================================
  2. #■ 姨媽自訂計量條顏色   by姨媽
  3. #
  4. # 欲配合姨媽功能型戰鬥介面使用,請將該腳本內的GAUGE_COLOR_HAVE設為true
  5. # ・2014/01/25:單獨擁有字體對齊
  6. #==============================================================================


  7. module YM_GAUGE_COLOR
  8.   
  9. #HP顏色1(左端RGB顏色)
  10. HP_COLOR1 = Color.new(255,65,15)

  11. #HP顏色2(右端RGB顏色)
  12. HP_COLOR2 = Color.new(255,105,15)

  13. #MP顏色1(左端RGB顏色)
  14. MP_COLOR1 = Color.new(50,100,255)

  15. #MP顏色2(右端RGB顏色)
  16. MP_COLOR2 = Color.new(55,130,255)

  17. #TP顏色1(左端RGB顏色)
  18. TP_COLOR1 = Color.new(105,225,70)

  19. #TP顏色2(右端RGB顏色)
  20. TP_COLOR2 = Color.new(130,210,65)

  21. end



  22. class Window_Base < Window
  23.   #--------------------------------------------------------------------------
  24.   #  HP
  25.   #--------------------------------------------------------------------------
  26.   def draw_actor_hp(actor, x, y, width = 124)
  27.     draw_gauge(x, y, width, actor.hp_rate, YM_GAUGE_COLOR::HP_COLOR1, YM_GAUGE_COLOR::HP_COLOR2)
  28.     change_color(system_color)
  29.     contents.font.name="VL Gothic"
  30.     draw_text(x, y, 30, line_height, Vocab::hp_a)
  31.     draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
  32.     hp_color(actor), normal_color)
  33.     contents.font.name=Font.default_name
  34.   end
  35.   #--------------------------------------------------------------------------
  36.   #  MP
  37.   #--------------------------------------------------------------------------
  38.   def draw_actor_mp(actor, x, y, width = 124)
  39.     draw_gauge(x, y, width, actor.mp_rate, YM_GAUGE_COLOR::MP_COLOR1, YM_GAUGE_COLOR::MP_COLOR2)
  40.     change_color(system_color)
  41.     contents.font.name="VL Gothic"
  42.     draw_text(x, y, 30, line_height, Vocab::mp_a)
  43.     draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
  44.     mp_color(actor), normal_color)
  45.     contents.font.name=Font.default_name
  46.   end
  47.   #--------------------------------------------------------------------------
  48.   #  TP
  49.   #--------------------------------------------------------------------------
  50.   def draw_actor_tp(actor, x, y, width = 124)
  51.     draw_gauge(x, y, width, actor.tp_rate, YM_GAUGE_COLOR::TP_COLOR1, YM_GAUGE_COLOR::TP_COLOR2)
  52.     change_color(system_color)
  53.     contents.font.name="VL Gothic"
  54.     draw_text(x, y, 30, line_height, Vocab::tp_a)
  55.     change_color(tp_color(actor))
  56.     draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2)
  57.     contents.font.name=Font.default_name
  58.   end
  59. end
复制代码

作者: 七重    时间: 2017-3-12 23:37
框体素材window.png右下的部分。
第三行的第5,6,7,8个小色块分别代表的就是血条,蓝条的颜色。
想改成绿色,就直接将这个素材的3行,5,6格都改成绿色就好了。
作者: 初学者ax    时间: 2017-3-13 14:25
七重 发表于 2017-3-12 23:37
框体素材window.png右下的部分。
第三行的第5,6,7,8个小色块分别代表的就是血条,蓝条的颜色。
想改成绿色 ...

没想到还有这种方法!能否详细说一下(或者有什么帖子),其他那么多的色块有什么作用,那两个色块是只对HP起作用不影响其他的吗?感谢!
作者: 七重    时间: 2017-3-13 14:49
初学者ax 发表于 2017-3-13 14:25
没想到还有这种方法!能否详细说一下(或者有什么帖子),其他那么多的色块有什么作用,那两个色块是只对 ...

调用到这些色块的地方。

主动调用的话,应该只有显示文字的 /c[] 命令。
作用是改变显示文字的颜色。

其他颜色,在脚本中有默认定义的就只有第3,4行,还有第一行的第一个白色。

第三行8格:
# 系统
# 危险
# 无法战斗
# 值槽背景
# HP 值槽 1
# HP 值槽 2
# MP 值槽 1
# MP 值槽 2

第四行前6格:
# 消费 TP
# 能力值提升(更换装备时)
# 能力值降低(更换装备时)
# TP 值槽 1
# TP 值槽 2
# 消费 TP

那两个色块是只对HP起作用,不影响其他的。


作者: 初学者ax    时间: 2017-3-13 15:07
七重 发表于 2017-3-13 14:49
调用到这些色块的地方。

主动调用的话,应该只有显示文字的 /c[] 命令。

感谢,给你32个赞
作者: CHAOSCLOUD    时间: 2017-3-13 16:17
LZ再给你一个东西,这个是graphic/system下,windows文件右下角块的所有系统用到的颜色,其中HP,MP的颜色调用的就是这些色号ID,你找出对应的色号就可以在Photoshop里改颜色了,很方便

color ID.png (7.13 KB, 下载次数: 30)

color ID.png





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