| 赞 | 7 |
| VIP | |
| 好人卡 | |
| 积分 | 15 |
| 经验 | |
| 最后登录 | 2026-6-20 |
| 在线时间 | 815 小时 |
- 梦石
- 0
- 星屑
- 1461
- 在线时间
- 815 小时
- 注册时间
- 2013-8-3
- 回帖
- 355
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
这是个菜单界面显示每个角色的运气值脚本,怎么改成显示xx变量值?
要求:每个角色显示独立的变量值。
(例如:角色1显示的变量是001,角色2显示的变量就是002)
脚本- #==============================================================================
- # *饥饿显示槽 *
- #==============================================================================
- module Freya
- QWE = Color.new(192,128,255)
- QWE = Color.new(-255,255,-255)
- end
- #==============================================================================
- class Window_Base < Window
- #--------------------------------------------------------------------------
- # ● 绘制饥饿
- #--------------------------------------------------------------------------
- def draw_actor_level(actor, x, y)
- a = 100 #最大值上限
- b = 100 - actor.luk
- rate = 1 - (b.to_f / a)
- draw_gauge(x + 195, y + 36, 58, rate,Freya::QWE, Freya::QWE)
- change_color(system_color)
- draw_text(x + 195, y + 36, 26, line_height, "")
- change_color(normal_color)
- draw_text(x + 22, y, 24, line_height, actor.level, 2)
- draw_icon(1850, x + 190, y + 36, true)
- end
- end
复制代码 |
评分
-
查看全部评分
|