Project1

标题: 帮忙改个脚本 [打印本页]

作者: 小小西    时间: 2016-3-24 11:06
标题: 帮忙改个脚本
帮忙把显示经验值改成显示幸运值,谢谢{:2_282:}
RUBY 代码复制
  1. #==============================================================================
  2. # F06 - 队伍状态窗口显示改造 - By芙蕾娅
  3. #------------------------------------------------------------------------------
  4. #  ★ - 新增  ☆ - 修改  ■ - 删除 ● - 无变更
  5. #==============================================================================
  6. module Freya
  7.   ExpGaugeColor1 = Color.new(192,128,255)
  8.   ExpGaugeColor2 = Color.new(204,192,255)
  9. end
  10. #==============================================================================
  11. # ■ Window_Base
  12. #------------------------------------------------------------------------------
  13. #  游戏中所有窗口的父类
  14. #==============================================================================
  15. class Window_Base < Window
  16.   #--------------------------------------------------------------------------
  17.   # ● 绘制等级
  18.   #--------------------------------------------------------------------------
  19.   def draw_actor_level(actor, x, y)
  20.     a = actor.next_level_exp - actor.current_level_exp
  21.     b = actor.next_level_exp - actor.exp
  22.     rate = 1 - (b.to_f / a)
  23.     draw_gauge(x, y, 96, rate,Freya::ExpGaugeColor1, Freya::ExpGaugeColor2)
  24.     change_color(system_color)
  25.     draw_text(x, y, 32, line_height, Vocab::level_a)
  26.     change_color(normal_color)
  27.     draw_text(x + 32, y, 24, line_height, actor.level, 2)
  28.   end
  29.   #--------------------------------------------------------------------------
  30.   # ● 绘制简单的状态
  31.   #--------------------------------------------------------------------------
  32.   def draw_actor_simple_status(actor, x, y)
  33.     draw_actor_name(actor, x, y)
  34.     draw_actor_level(actor, x, y + line_height * 1)
  35.     draw_actor_icons(actor, x - 107, y + line_height * 2 + 12)
  36.     draw_actor_class(actor, x + 120, y)
  37.     draw_actor_hp(actor, x + 120, y + line_height * 1)
  38.     draw_actor_mp(actor, x + 120, y + line_height * 2)
  39.   end
  40. end

作者: H·H·Y    时间: 2016-3-24 23:51
本帖最后由 H·H·Y 于 2016-3-24 23:53 编辑

胡乱改的……

RUBY 代码复制
  1. #==============================================================================
  2. # F06 - 队伍状态窗口显示改造 - By芙蕾娅
  3. #------------------------------------------------------------------------------
  4. #  ★ - 新增  ☆ - 修改  ■ - 删除 ● - 无变更
  5. #==============================================================================
  6. #==============================================================================
  7. # ■ Window_Base
  8. #------------------------------------------------------------------------------
  9. #  游戏中所有窗口的父类
  10. #==============================================================================
  11. class Window_Base < Window
  12.   #--------------------------------------------------------------------------
  13.   # ● 绘制等级
  14.   #--------------------------------------------------------------------------
  15.   def draw_actor_level(actor, x, y)
  16.     change_color(system_color)
  17.     draw_text(x, y, 32, line_height, "幸运")
  18.     change_color(normal_color)
  19.     draw_text(x + 32, y, 24, line_height, actor.luk, 2)
  20.   end
  21.   #--------------------------------------------------------------------------
  22.   # ● 绘制简单的状态
  23.   #--------------------------------------------------------------------------
  24.   def draw_actor_simple_status(actor, x, y)
  25.     draw_actor_name(actor, x, y)
  26.     draw_actor_level(actor, x, y + line_height * 1)
  27.     draw_actor_icons(actor, x - 107, y + line_height * 2 + 12)
  28.     draw_actor_class(actor, x + 120, y)
  29.     draw_actor_hp(actor, x + 120, y + line_height * 1)
  30.     draw_actor_mp(actor, x + 120, y + line_height * 2)
  31.   end
  32. end





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