赞 | 0 |
VIP | 0 |
好人卡 | 110 |
积分 | 1 |
经验 | 24791 |
最后登录 | 2013-6-25 |
在线时间 | 687 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 687 小时
- 注册时间
- 2012-10-29
- 帖子
- 1543
|
a000b1745 发表于 2013-3-19 23:06 ![]()
休息下...太挫折了
晕.....@@|||
因为您给的那些没有按照顺序排列,还包含了 xparam 和 sparam 两种,所以也不能用 6.times 递回来做,只能单项来做,
反正也没别的脚本会用到,何不直接在 6.times 下面用 draw_text 来搞定:
change_color(system_color)
draw_text(x + 180, y, 120, line_height, "成功率")
change_color(normal_color)
draw_text(x + 300, y, 36, line_height, @actor.xparam(0), 2)
change_color(system_color)
draw_text(x + 180, y + line_height * 1, 120, line_height, "回避率")
change_color(normal_color)
draw_text(x + 300, y + line_height * 1, 36, line_height, @actor.xparam(1), 2)
change_color(system_color)
draw_text(x + 180, y + line_height * 2, 120, line_height, "回避魔法率")
change_color(normal_color)
draw_text(x + 300, y + line_height * 2, 36, line_height, @actor.xparam(4), 2)
change_color(system_color)
draw_text(x + 180, y + line_height * 3, 120, line_height, "会心率")
change_color(normal_color)
draw_text(x + 300, y + line_height * 3, 36, line_height, @actor.xparam(2), 2)
change_color(system_color)
draw_text(x + 180, y + line_height * 4, 120, line_height, "会心回避率")
change_color(normal_color)
draw_text(x + 300, y + line_height * 4, 36, line_height, @actor.xparam(3), 2)
change_color(system_color)
draw_text(x + 180, y + line_height * 5, 120, line_height, "受击率")
change_color(normal_color)
draw_text(x + 300, y + line_height * 5, 36, line_height, @actor.sparam(0), 2)
x + 180 是中文字的 X 座标位置,x + 300 是数字的 X 座标位置,实际正确调整您自己来做吧。
本来是想照搬 6.times 的方式,但没按顺序,直接做没有传递 @actor 参数,不能用 actor.xparam(0) 所以用 @actor.xparam(0) 了,
我想这样应该可以做出来了吧。
|
|